Class ContainerServiceNetworkProfile

java.lang.Object
com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerServiceNetworkProfile>

public final class ContainerServiceNetworkProfile extends Object implements com.azure.json.JsonSerializable<ContainerServiceNetworkProfile>
Profile of network configuration.
  • Constructor Details

    • ContainerServiceNetworkProfile

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

    • networkPlugin

      public NetworkPlugin networkPlugin()
      Get the networkPlugin property: Network plugin used for building the Kubernetes network.
      Returns:
      the networkPlugin value.
    • withNetworkPlugin

      public ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlugin)
      Set the networkPlugin property: Network plugin used for building the Kubernetes network.
      Parameters:
      networkPlugin - the networkPlugin value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • networkPluginMode

      public NetworkPluginMode networkPluginMode()
      Get the networkPluginMode property: The mode the network plugin should use.
      Returns:
      the networkPluginMode value.
    • withNetworkPluginMode

      public ContainerServiceNetworkProfile withNetworkPluginMode(NetworkPluginMode networkPluginMode)
      Set the networkPluginMode property: The mode the network plugin should use.
      Parameters:
      networkPluginMode - the networkPluginMode value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • networkPolicy

      public NetworkPolicy networkPolicy()
      Get the networkPolicy property: Network policy used for building the Kubernetes network.
      Returns:
      the networkPolicy value.
    • withNetworkPolicy

      public ContainerServiceNetworkProfile withNetworkPolicy(NetworkPolicy networkPolicy)
      Set the networkPolicy property: Network policy used for building the Kubernetes network.
      Parameters:
      networkPolicy - the networkPolicy value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • networkMode

      public NetworkMode networkMode()
      Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.
      Returns:
      the networkMode value.
    • withNetworkMode

      public ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode)
      Set the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.
      Parameters:
      networkMode - the networkMode value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • networkDataplane

      public NetworkDataplane networkDataplane()
      Get the networkDataplane property: Network dataplane used in the Kubernetes cluster.
      Returns:
      the networkDataplane value.
    • withNetworkDataplane

      public ContainerServiceNetworkProfile withNetworkDataplane(NetworkDataplane networkDataplane)
      Set the networkDataplane property: Network dataplane used in the Kubernetes cluster.
      Parameters:
      networkDataplane - the networkDataplane value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • advancedNetworking

      public AdvancedNetworking advancedNetworking()
      Get the advancedNetworking property: Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking.
      Returns:
      the advancedNetworking value.
    • withAdvancedNetworking

      public ContainerServiceNetworkProfile withAdvancedNetworking(AdvancedNetworking advancedNetworking)
      Set the advancedNetworking property: Advanced Networking profile for enabling observability and security feature suite on a cluster. For more information see aka.ms/aksadvancednetworking.
      Parameters:
      advancedNetworking - the advancedNetworking value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • podCidr

      public String podCidr()
      Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.
      Returns:
      the podCidr value.
    • withPodCidr

      public ContainerServiceNetworkProfile withPodCidr(String podCidr)
      Set the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.
      Parameters:
      podCidr - the podCidr value to set.
      Returns:
      the ContainerServiceNetworkProfile 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 ContainerServiceNetworkProfile 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 ContainerServiceNetworkProfile 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 ContainerServiceNetworkProfile 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 ContainerServiceNetworkProfile object itself.
    • outboundType

      public OutboundType outboundType()
      Get the outboundType property: This can only be set at cluster creation time and cannot be changed later. For more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype).
      Returns:
      the outboundType value.
    • withOutboundType

      public ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType)
      Set the outboundType property: This can only be set at cluster creation time and cannot be changed later. For more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype).
      Parameters:
      outboundType - the outboundType value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • loadBalancerSku

      public LoadBalancerSku loadBalancerSku()
      Get the loadBalancerSku property: The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between load balancer SKUs.
      Returns:
      the loadBalancerSku value.
    • withLoadBalancerSku

      public ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)
      Set the loadBalancerSku property: The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between load balancer SKUs.
      Parameters:
      loadBalancerSku - the loadBalancerSku value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • loadBalancerProfile

      public ManagedClusterLoadBalancerProfile loadBalancerProfile()
      Get the loadBalancerProfile property: Profile of the cluster load balancer.
      Returns:
      the loadBalancerProfile value.
    • withLoadBalancerProfile

      public ContainerServiceNetworkProfile withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile)
      Set the loadBalancerProfile property: Profile of the cluster load balancer.
      Parameters:
      loadBalancerProfile - the loadBalancerProfile value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • natGatewayProfile

      public ManagedClusterNatGatewayProfile natGatewayProfile()
      Get the natGatewayProfile property: Profile of the cluster NAT gateway.
      Returns:
      the natGatewayProfile value.
    • withNatGatewayProfile

      public ContainerServiceNetworkProfile withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile)
      Set the natGatewayProfile property: Profile of the cluster NAT gateway.
      Parameters:
      natGatewayProfile - the natGatewayProfile value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • staticEgressGatewayProfile

      public ManagedClusterStaticEgressGatewayProfile staticEgressGatewayProfile()
      Get the staticEgressGatewayProfile property: The profile for Static Egress Gateway addon. For more details about Static Egress Gateway, see https://aka.ms/aks/static-egress-gateway.
      Returns:
      the staticEgressGatewayProfile value.
    • withStaticEgressGatewayProfile

      public ContainerServiceNetworkProfile withStaticEgressGatewayProfile(ManagedClusterStaticEgressGatewayProfile staticEgressGatewayProfile)
      Set the staticEgressGatewayProfile property: The profile for Static Egress Gateway addon. For more details about Static Egress Gateway, see https://aka.ms/aks/static-egress-gateway.
      Parameters:
      staticEgressGatewayProfile - the staticEgressGatewayProfile value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • podCidrs

      public List<String> podCidrs()
      Get the podCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking.
      Returns:
      the podCidrs value.
    • withPodCidrs

      public ContainerServiceNetworkProfile withPodCidrs(List<String> podCidrs)
      Set the podCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking.
      Parameters:
      podCidrs - the podCidrs value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • serviceCidrs

      public List<String> serviceCidrs()
      Get the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges.
      Returns:
      the serviceCidrs value.
    • withServiceCidrs

      public ContainerServiceNetworkProfile withServiceCidrs(List<String> serviceCidrs)
      Set the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges.
      Parameters:
      serviceCidrs - the serviceCidrs value to set.
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • ipFamilies

      public List<IpFamily> ipFamilies()
      Get the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6.
      Returns:
      the ipFamilies value.
    • withIpFamilies

      public ContainerServiceNetworkProfile withIpFamilies(List<IpFamily> ipFamilies)
      Set the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6.
      Parameters:
      ipFamilies - the ipFamilies value to set.
      Returns:
      the ContainerServiceNetworkProfile 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<ContainerServiceNetworkProfile>
      Throws:
      IOException
    • fromJson

      public static ContainerServiceNetworkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContainerServiceNetworkProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContainerServiceNetworkProfile 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 ContainerServiceNetworkProfile.