Class VnetConfiguration

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

public final class VnetConfiguration extends Object implements com.azure.json.JsonSerializable<VnetConfiguration>
Configuration properties for apps environment to join a Virtual Network.
  • Constructor Details

    • VnetConfiguration

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

    • internal

      public Boolean internal()
      Get the internal property: Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide infrastructureSubnetId if enabling this property.
      Returns:
      the internal value.
    • withInternal

      public VnetConfiguration withInternal(Boolean internal)
      Set the internal property: Boolean indicating the environment only has an internal load balancer. These environments do not have a public static IP resource. They must provide infrastructureSubnetId if enabling this property.
      Parameters:
      internal - the internal value to set.
      Returns:
      the VnetConfiguration object itself.
    • infrastructureSubnetId

      public String infrastructureSubnetId()
      Get the infrastructureSubnetId property: Resource ID of a subnet for infrastructure components. Must not overlap with any other provided IP ranges.
      Returns:
      the infrastructureSubnetId value.
    • withInfrastructureSubnetId

      public VnetConfiguration withInfrastructureSubnetId(String infrastructureSubnetId)
      Set the infrastructureSubnetId property: Resource ID of a subnet for infrastructure components. Must not overlap with any other provided IP ranges.
      Parameters:
      infrastructureSubnetId - the infrastructureSubnetId value to set.
      Returns:
      the VnetConfiguration object itself.
    • dockerBridgeCidr

      public String dockerBridgeCidr()
      Get the dockerBridgeCidr property: CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges.
      Returns:
      the dockerBridgeCidr value.
    • withDockerBridgeCidr

      public VnetConfiguration withDockerBridgeCidr(String dockerBridgeCidr)
      Set the dockerBridgeCidr property: CIDR notation IP range assigned to the Docker bridge, network. Must not overlap with any other provided IP ranges.
      Parameters:
      dockerBridgeCidr - the dockerBridgeCidr value to set.
      Returns:
      the VnetConfiguration object itself.
    • platformReservedCidr

      public String platformReservedCidr()
      Get the platformReservedCidr property: IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other provided IP ranges.
      Returns:
      the platformReservedCidr value.
    • withPlatformReservedCidr

      public VnetConfiguration withPlatformReservedCidr(String platformReservedCidr)
      Set the platformReservedCidr property: IP range in CIDR notation that can be reserved for environment infrastructure IP addresses. Must not overlap with any other provided IP ranges.
      Parameters:
      platformReservedCidr - the platformReservedCidr value to set.
      Returns:
      the VnetConfiguration object itself.
    • platformReservedDnsIp

      public String platformReservedDnsIp()
      Get the platformReservedDnsIp property: An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.
      Returns:
      the platformReservedDnsIp value.
    • withPlatformReservedDnsIp

      public VnetConfiguration withPlatformReservedDnsIp(String platformReservedDnsIp)
      Set the platformReservedDnsIp property: An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.
      Parameters:
      platformReservedDnsIp - the platformReservedDnsIp value to set.
      Returns:
      the VnetConfiguration 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<VnetConfiguration>
      Throws:
      IOException
    • fromJson

      public static VnetConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VnetConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VnetConfiguration 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 VnetConfiguration.