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 Summary
Constructors Constructor Description VnetConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
dockerBridgeCidr()
Get the dockerBridgeCidr property: CIDR notation IP range assigned to the Docker bridge, network.String
infrastructureSubnetId()
Get the infrastructureSubnetId property: Resource ID of a subnet for infrastructure components.Boolean
internal()
Get the internal property: Boolean indicating the environment only has an internal load balancer.String
platformReservedCidr()
Get the platformReservedCidr property: IP range in CIDR notation that can be reserved for environment infrastructure IP addresses.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.String
runtimeSubnetId()
Get the runtimeSubnetId property: Resource ID of a subnet that Container App containers are injected into.void
validate()
Validates the instance.VnetConfiguration
withDockerBridgeCidr(String dockerBridgeCidr)
Set the dockerBridgeCidr property: CIDR notation IP range assigned to the Docker bridge, network.VnetConfiguration
withInfrastructureSubnetId(String infrastructureSubnetId)
Set the infrastructureSubnetId property: Resource ID of a subnet for infrastructure components.VnetConfiguration
withInternal(Boolean internal)
Set the internal property: Boolean indicating the environment only has an internal load balancer.VnetConfiguration
withPlatformReservedCidr(String platformReservedCidr)
Set the platformReservedCidr property: IP range in CIDR notation that can be reserved for environment infrastructure IP addresses.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.VnetConfiguration
withRuntimeSubnetId(String runtimeSubnetId)
Set the runtimeSubnetId property: Resource ID of a subnet that Container App containers are injected into.
-
-
-
Method Detail
-
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, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId 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, must provide ControlPlaneSubnetResourceId and AppSubnetResourceId 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-