Class PrivateAccessVirtualNetwork

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

public final class PrivateAccessVirtualNetwork extends Object implements com.azure.json.JsonSerializable<PrivateAccessVirtualNetwork>
Description of a Virtual Network that is useable for private site access.
  • Constructor Details

    • PrivateAccessVirtualNetwork

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

    • name

      public String name()
      Get the name property: The name of the Virtual Network.
      Returns:
      the name value.
    • withName

      public PrivateAccessVirtualNetwork withName(String name)
      Set the name property: The name of the Virtual Network.
      Parameters:
      name - the name value to set.
      Returns:
      the PrivateAccessVirtualNetwork object itself.
    • key

      public Integer key()
      Get the key property: The key (ID) of the Virtual Network.
      Returns:
      the key value.
    • withKey

      public PrivateAccessVirtualNetwork withKey(Integer key)
      Set the key property: The key (ID) of the Virtual Network.
      Parameters:
      key - the key value to set.
      Returns:
      the PrivateAccessVirtualNetwork object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: The ARM uri of the Virtual Network.
      Returns:
      the resourceId value.
    • withResourceId

      public PrivateAccessVirtualNetwork withResourceId(String resourceId)
      Set the resourceId property: The ARM uri of the Virtual Network.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the PrivateAccessVirtualNetwork object itself.
    • subnets

      public List<PrivateAccessSubnet> subnets()
      Get the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
      Returns:
      the subnets value.
    • withSubnets

      public PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets)
      Set the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.
      Parameters:
      subnets - the subnets value to set.
      Returns:
      the PrivateAccessVirtualNetwork 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<PrivateAccessVirtualNetwork>
      Throws:
      IOException
    • fromJson

      public static PrivateAccessVirtualNetwork fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PrivateAccessVirtualNetwork from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PrivateAccessVirtualNetwork if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the PrivateAccessVirtualNetwork.