ContainerGroupSubnetId Class

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

Implements

public final class ContainerGroupSubnetId
implements JsonSerializable<ContainerGroupSubnetId>

Container group subnet information.

Constructor Summary

Constructor Description
ContainerGroupSubnetId()

Creates an instance of ContainerGroupSubnetId class.

Method Summary

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

Reads an instance of ContainerGroupSubnetId from the JsonReader.

String id()

Get the id property: Resource ID of virtual network and subnet.

String name()

Get the name property: Friendly name for the subnet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerGroupSubnetId withId(String id)

Set the id property: Resource ID of virtual network and subnet.

ContainerGroupSubnetId withName(String name)

Set the name property: Friendly name for the subnet.

Methods inherited from java.lang.Object

Constructor Details

ContainerGroupSubnetId

public ContainerGroupSubnetId()

Creates an instance of ContainerGroupSubnetId class.

Method Details

fromJson

public static ContainerGroupSubnetId fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupSubnetId from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerGroupSubnetId 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: Resource ID of virtual network and subnet.

Returns:

the id value.

name

public String name()

Get the name property: Friendly name for the subnet.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ContainerGroupSubnetId withId(String id)

Set the id property: Resource ID of virtual network and subnet.

Parameters:

id - the id value to set.

Returns:

the ContainerGroupSubnetId object itself.

withName

public ContainerGroupSubnetId withName(String name)

Set the name property: Friendly name for the subnet.

Parameters:

name - the name value to set.

Returns:

the ContainerGroupSubnetId object itself.

Applies to