Class AksNetworkingConfiguration
java.lang.Object
com.azure.resourcemanager.machinelearning.models.AksNetworkingConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AksNetworkingConfiguration>
public final class AksNetworkingConfiguration
extends Object
implements com.azure.json.JsonSerializable<AksNetworkingConfiguration>
Advance configuration for AKS networking.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AksNetworkingConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.Get the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network.static AksNetworkingConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AksNetworkingConfiguration from the JsonReader.Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.subnetId()Get the subnetId property: Virtual network subnet resource ID the compute nodes belong to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDnsServiceIp(String dnsServiceIp) Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.withDockerBridgeCidr(String dockerBridgeCidr) Set the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network.withServiceCidr(String serviceCidr) Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.withSubnetId(String subnetId) Set the subnetId property: Virtual network subnet resource ID the compute nodes belong to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AksNetworkingConfiguration
public AksNetworkingConfiguration()Creates an instance of AksNetworkingConfiguration class.
-
-
Method Details
-
subnetId
Get the subnetId property: Virtual network subnet resource ID the compute nodes belong to.- Returns:
- the subnetId value.
-
withSubnetId
Set the subnetId property: Virtual network subnet resource ID the compute nodes belong to.- Parameters:
subnetId- the subnetId value to set.- Returns:
- the AksNetworkingConfiguration object itself.
-
serviceCidr
Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.- Returns:
- the serviceCidr value.
-
withServiceCidr
Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.- Parameters:
serviceCidr- the serviceCidr value to set.- Returns:
- the AksNetworkingConfiguration object itself.
-
dnsServiceIp
Get the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.- Returns:
- the dnsServiceIp value.
-
withDnsServiceIp
Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.- Parameters:
dnsServiceIp- the dnsServiceIp value to set.- Returns:
- the AksNetworkingConfiguration object itself.
-
dockerBridgeCidr
Get the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.- Returns:
- the dockerBridgeCidr value.
-
withDockerBridgeCidr
Set the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.- Parameters:
dockerBridgeCidr- the dockerBridgeCidr value to set.- Returns:
- the AksNetworkingConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AksNetworkingConfiguration>- Throws:
IOException
-
fromJson
public static AksNetworkingConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AksNetworkingConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AksNetworkingConfiguration 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 AksNetworkingConfiguration.
-