Subnet (Azure SDK for Java Reference Documentation)
Robert Harper
Updated on May 09, 2026
Constructor Summary
Constructors Constructor and Description Subnet()
Constructor Detail
Subnet
public Subnet()
Method Detail
withId
public Subnet withId(String id)
Set the id property: Resource ID of Virtual Network Subnet.
- Parameters:
id- the id value to set.- Returns:
- the Subnet object itself.
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException- thrown if the instance is not valid.
Copyright © 2020 Microsoft Corporation. All rights reserved.