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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dockerBridgeCidr property: CIDR notation IP range assigned to the Docker bridge, network.static VnetConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VnetConfiguration from the JsonReader.Get the infrastructureSubnetId property: Resource ID of a subnet for infrastructure components.internal()
Get the internal property: Boolean indicating the environment only has an internal load balancer.Get the platformReservedCidr property: IP range in CIDR notation that can be reserved for environment infrastructure IP addresses.Get the platformReservedDnsIp property: An IP address from the IP range defined by platformReservedCidr that will be reserved for the internal DNS server.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDockerBridgeCidr
(String dockerBridgeCidr) Set the dockerBridgeCidr property: CIDR notation IP range assigned to the Docker bridge, network.withInfrastructureSubnetId
(String infrastructureSubnetId) Set the infrastructureSubnetId property: Resource ID of a subnet for infrastructure components.withInternal
(Boolean internal) Set the internal property: Boolean indicating the environment only has an internal load balancer.withPlatformReservedCidr
(String platformReservedCidr) Set the platformReservedCidr property: IP range in CIDR notation that can be reserved for environment infrastructure IP addresses.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VnetConfiguration
public VnetConfiguration()Creates an instance of VnetConfiguration class.
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VnetConfiguration>
- Throws:
IOException
-
fromJson
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.
-