java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.NetworkProfile

public final class NetworkProfile extends Object
NetworkProfile - Profile of network configuration.
  • Constructor Details

    • NetworkProfile

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

    • loadBalancerProfile

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

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

      public LoadBalancerSku loadBalancerSku()
      Get the loadBalancerSku property: LoadBalancerSku - The load balancer sku for the provisioned cluster. Possible values: 'unstacked-haproxy', 'stacked-kube-vip', 'stacked-metallb', 'unmanaged'. The default is 'unmanaged'.
      Returns:
      the loadBalancerSku value.
    • withLoadBalancerSku

      public NetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)
      Set the loadBalancerSku property: LoadBalancerSku - The load balancer sku for the provisioned cluster. Possible values: 'unstacked-haproxy', 'stacked-kube-vip', 'stacked-metallb', 'unmanaged'. The default is 'unmanaged'.
      Parameters:
      loadBalancerSku - the loadBalancerSku value to set.
      Returns:
      the NetworkProfile object itself.
    • dnsServiceIp

      public String dnsServiceIp()
      Get the dnsServiceIp property: DNSServiceIP - 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 NetworkProfile withDnsServiceIp(String dnsServiceIp)
      Set the dnsServiceIp property: DNSServiceIP - 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 NetworkProfile object itself.
    • networkPolicy

      public NetworkPolicy networkPolicy()
      Get the networkPolicy property: NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'calico', 'flannel'. Default is 'calico'.
      Returns:
      the networkPolicy value.
    • withNetworkPolicy

      public NetworkProfile withNetworkPolicy(NetworkPolicy networkPolicy)
      Set the networkPolicy property: NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'calico', 'flannel'. Default is 'calico'.
      Parameters:
      networkPolicy - the networkPolicy value to set.
      Returns:
      the NetworkProfile object itself.
    • podCidr

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

      public NetworkProfile withPodCidr(String podCidr)
      Set the podCidr property: PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used.
      Parameters:
      podCidr - the podCidr value to set.
      Returns:
      the NetworkProfile object itself.
    • podCidrs

      public List<String> podCidrs()
      Get the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs. 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 NetworkProfile withPodCidrs(List<String> podCidrs)
      Set the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs. 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 NetworkProfile object itself.
    • serviceCidr

      public String serviceCidr()
      Get the serviceCidr property: ServiceCidr - 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 NetworkProfile withServiceCidr(String serviceCidr)
      Set the serviceCidr property: ServiceCidr - 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 NetworkProfile object itself.
    • serviceCidrs

      public List<String> serviceCidrs()
      Get the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs. 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 NetworkProfile withServiceCidrs(List<String> serviceCidrs)
      Set the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs. 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 NetworkProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.