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 Details

    • AksNetworkingConfiguration

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

    • subnetId

      public String subnetId()
      Get the subnetId property: Virtual network subnet resource ID the compute nodes belong to.
      Returns:
      the subnetId value.
    • withSubnetId

      public AksNetworkingConfiguration withSubnetId(String subnetId)
      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

      public String 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

      public AksNetworkingConfiguration withServiceCidr(String serviceCidr)
      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

      public String 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

      public AksNetworkingConfiguration withDnsServiceIp(String dnsServiceIp)
      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

      public String 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

      public AksNetworkingConfiguration withDockerBridgeCidr(String dockerBridgeCidr)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.