SubnetReference Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.SubnetReference

Implements

public final class SubnetReference
implements JsonSerializable<SubnetReference>

A reference to a subnet resource.

Constructor Summary

Constructor Description
SubnetReference()

Creates an instance of SubnetReference class.

Method Summary

Modifier and Type Method and Description
static SubnetReference fromJson(JsonReader jsonReader)

Reads an instance of SubnetReference from the JsonReader.

String id()

Get the id property: The ARM resource ID of the subnet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SubnetReference 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:

jsonReader - The JsonReader being read.

Returns:

An instance of SubnetReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

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:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

id - the id value to set.

Returns:

the SubnetReference object itself.

Applies to