SubnetReference Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. SubnetReference
- com.
Implements
public final class SubnetReference
implements JsonSerializable<SubnetReference>
A reference to a subnet resource.
Constructor Summary
| Constructor | Description |
|---|---|
| SubnetReference() |
Creates an instance of Subnet |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Subnet |
fromJson(JsonReader jsonReader)
Reads an instance of Subnet |
| String |
id()
Get the id property: The ARM resource ID of the subnet. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Subnet |
withId(String id)
Set the id property: The ARM resource ID of the subnet. |
Methods inherited from java.lang.Object
Constructor Details
SubnetReference
public SubnetReference()
Creates an instance of SubnetReference class.
Method Details
fromJson
public static SubnetReference fromJson(JsonReader jsonReader)
Reads an instance of SubnetReference from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The ARM resource ID of the subnet. The caller must have `Microsoft.Network/virtualNetworks/subnets/join/action` permission on this subnet (enforced via a linked access check at create/update time).
Returns:
toJson
validate
public void validate()
Validates the instance.
withId
public SubnetReference withId(String id)
Set the id property: The ARM resource ID of the subnet. The caller must have `Microsoft.Network/virtualNetworks/subnets/join/action` permission on this subnet (enforced via a linked access check at create/update time).
Parameters:
Returns: