Class VnetConfiguration

java.lang.Object
com.azure.resourcemanager.appcontainers.models.VnetConfiguration

public final class VnetConfiguration extends Object
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 runtimeSubnetId and 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 runtimeSubnetId and 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. This subnet must be in the same VNET as the subnet defined in runtimeSubnetId. 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. This subnet must be in the same VNET as the subnet defined in runtimeSubnetId. Must not overlap with any other provided IP ranges.
      Parameters:
      infrastructureSubnetId - the infrastructureSubnetId value to set.
      Returns:
      the VnetConfiguration object itself.
    • runtimeSubnetId

      public String runtimeSubnetId()
      Get the runtimeSubnetId property: Resource ID of a subnet that Container App containers are injected into. This subnet must be in the same VNET as the subnet defined in infrastructureSubnetId. Must not overlap with any other provided IP ranges.
      Returns:
      the runtimeSubnetId value.
    • withRuntimeSubnetId

      public VnetConfiguration withRuntimeSubnetId(String runtimeSubnetId)
      Set the runtimeSubnetId property: Resource ID of a subnet that Container App containers are injected into. This subnet must be in the same VNET as the subnet defined in infrastructureSubnetId. Must not overlap with any other provided IP ranges.
      Parameters:
      runtimeSubnetId - the runtimeSubnetId 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.
    • outboundSettings

      public ManagedEnvironmentOutboundSettings outboundSettings()
      Get the outboundSettings property: Configuration used to control the Environment Egress outbound traffic.
      Returns:
      the outboundSettings value.
    • withOutboundSettings

      public VnetConfiguration withOutboundSettings(ManagedEnvironmentOutboundSettings outboundSettings)
      Set the outboundSettings property: Configuration used to control the Environment Egress outbound traffic.
      Parameters:
      outboundSettings - the outboundSettings value to set.
      Returns:
      the VnetConfiguration object itself.
    • validate

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