ContainerGroupSubnetId Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ContainerGroupSubnetId
- com.
Implements
public final class ContainerGroupSubnetId
implements JsonSerializable<ContainerGroupSubnetId>
Container group subnet information.
Constructor Summary
Constructor | Description |
---|---|
ContainerGroupSubnetId() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
String |
id()
Get the id property: Resource ID of virtual network and subnet. |
String |
name()
Get the name property: Friendly name for the subnet. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container |
withId(String id)
Set the id property: Resource ID of virtual network and subnet. |
Container |
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:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID of virtual network and subnet.
Returns:
name
public String name()
Get the name property: Friendly name for the subnet.
Returns:
toJson
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:
Returns:
withName
public ContainerGroupSubnetId withName(String name)
Set the name property: Friendly name for the subnet.
Parameters:
Returns:
Applies to
Azure SDK for Java