Class ContainerGroupSubnetId

java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerGroupSubnetId
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerGroupSubnetId>

public final class ContainerGroupSubnetId extends Object implements com.azure.json.JsonSerializable<ContainerGroupSubnetId>
Container group subnet information.
  • Constructor Details

    • ContainerGroupSubnetId

      public ContainerGroupSubnetId()
      Creates an instance of ContainerGroupSubnetId class.
  • Method Details

    • id

      public String id()
      Get the id property: Resource ID of virtual network and subnet.
      Returns:
      the id value.
    • 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.
    • name

      public String name()
      Get the name property: Friendly name for the subnet.
      Returns:
      the name value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ContainerGroupSubnetId>
      Throws:
      IOException
    • fromJson

      public static ContainerGroupSubnetId fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ContainerGroupSubnetId.