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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerServiceNetworkProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the advancedNetworking property: Advanced Networking profile for enabling observability and security feature suite on a cluster.Get the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerServiceNetworkProfile from the JsonReader.Get the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters.Get the loadBalancerProfile property: Profile of the cluster load balancer.Get the loadBalancerSku property: The default is 'standard'.Get the natGatewayProfile property: Profile of the cluster NAT gateway.Get the networkDataplane property: Network dataplane used in the Kubernetes cluster.Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.Get the networkPlugin property: Network plugin used for building the Kubernetes network.Get the networkPluginMode property: The mode the network plugin should use.Get the networkPolicy property: Network policy used for building the Kubernetes network.Get the outboundType property: This can only be set at cluster creation time and cannot be changed later.podCidr()Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.podCidrs()Get the podCidrs property: One IPv4 CIDR is expected for single-stack networking.Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.Get the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking.Get the staticEgressGatewayProfile property: The profile for Static Egress Gateway addon.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdvancedNetworking(AdvancedNetworking advancedNetworking) Set the advancedNetworking property: Advanced Networking profile for enabling observability and security feature suite on a cluster.withDnsServiceIp(String dnsServiceIp) Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.withIpFamilies(List<IpFamily> ipFamilies) Set the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters.withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile) Set the loadBalancerProfile property: Profile of the cluster load balancer.withLoadBalancerSku(LoadBalancerSku loadBalancerSku) Set the loadBalancerSku property: The default is 'standard'.withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile) Set the natGatewayProfile property: Profile of the cluster NAT gateway.withNetworkDataplane(NetworkDataplane networkDataplane) Set the networkDataplane property: Network dataplane used in the Kubernetes cluster.withNetworkMode(NetworkMode networkMode) Set the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.withNetworkPlugin(NetworkPlugin networkPlugin) Set the networkPlugin property: Network plugin used for building the Kubernetes network.withNetworkPluginMode(NetworkPluginMode networkPluginMode) Set the networkPluginMode property: The mode the network plugin should use.withNetworkPolicy(NetworkPolicy networkPolicy) Set the networkPolicy property: Network policy used for building the Kubernetes network.withOutboundType(OutboundType outboundType) Set the outboundType property: This can only be set at cluster creation time and cannot be changed later.withPodCidr(String podCidr) Set the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.withPodCidrs(List<String> podCidrs) Set the podCidrs property: One IPv4 CIDR is expected for single-stack networking.withServiceCidr(String serviceCidr) Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.withServiceCidrs(List<String> serviceCidrs) Set the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking.withStaticEgressGatewayProfile(ManagedClusterStaticEgressGatewayProfile staticEgressGatewayProfile) Set the staticEgressGatewayProfile property: The profile for Static Egress Gateway addon.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
-
ContainerServiceNetworkProfile
public ContainerServiceNetworkProfile()Creates an instance of ContainerServiceNetworkProfile class.
-
-
Method Details
-
networkPlugin
Get the networkPlugin property: Network plugin used for building the Kubernetes network.- Returns:
- the networkPlugin value.
-
withNetworkPlugin
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
Get the networkPluginMode property: The mode the network plugin should use.- Returns:
- the networkPluginMode value.
-
withNetworkPluginMode
Set the networkPluginMode property: The mode the network plugin should use.- Parameters:
networkPluginMode- the networkPluginMode value to set.- Returns:
- the ContainerServiceNetworkProfile object itself.
-
networkPolicy
Get the networkPolicy property: Network policy used for building the Kubernetes network.- Returns:
- the networkPolicy value.
-
withNetworkPolicy
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
Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.- Returns:
- the networkMode value.
-
withNetworkMode
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
Get the networkDataplane property: Network dataplane used in the Kubernetes cluster.- Returns:
- the networkDataplane value.
-
withNetworkDataplane
Set the networkDataplane property: Network dataplane used in the Kubernetes cluster.- Parameters:
networkDataplane- the networkDataplane value to set.- Returns:
- the ContainerServiceNetworkProfile object itself.
-
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
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
Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.- Returns:
- the podCidr value.
-
withPodCidr
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
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 ContainerServiceNetworkProfile 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 ContainerServiceNetworkProfile object itself.
-
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
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
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
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
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
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
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
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
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
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-