Class ManagedClusterLoadBalancerProfileManagedOutboundIPs
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterLoadBalancerProfileManagedOutboundIPs>
public final class ManagedClusterLoadBalancerProfileManagedOutboundIPs
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterLoadBalancerProfileManagedOutboundIPs>
Desired managed outbound IPs for the cluster load balancer.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterLoadBalancerProfileManagedOutboundIPs class. -
Method Summary
Modifier and TypeMethodDescriptioncount()Get the count property: The desired number of IPv4 outbound IPs created/managed by Azure for the cluster load balancer.Get the countIPv6 property: The desired number of IPv6 outbound IPs created/managed by Azure for the cluster load balancer.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterLoadBalancerProfileManagedOutboundIPs from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the count property: The desired number of IPv4 outbound IPs created/managed by Azure for the cluster load balancer.withCountIPv6(Integer countIPv6) Set the countIPv6 property: The desired number of IPv6 outbound IPs created/managed by Azure for the cluster load balancer.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
-
ManagedClusterLoadBalancerProfileManagedOutboundIPs
public ManagedClusterLoadBalancerProfileManagedOutboundIPs()Creates an instance of ManagedClusterLoadBalancerProfileManagedOutboundIPs class.
-
-
Method Details
-
count
Get the count property: The desired number of IPv4 outbound IPs created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.- Returns:
- the count value.
-
withCount
Set the count property: The desired number of IPv4 outbound IPs created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.- Parameters:
count- the count value to set.- Returns:
- the ManagedClusterLoadBalancerProfileManagedOutboundIPs object itself.
-
countIPv6
Get the countIPv6 property: The desired number of IPv6 outbound IPs created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 0 for single-stack and 1 for dual-stack.- Returns:
- the countIPv6 value.
-
withCountIPv6
Set the countIPv6 property: The desired number of IPv6 outbound IPs created/managed by Azure for the cluster load balancer. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 0 for single-stack and 1 for dual-stack.- Parameters:
countIPv6- the countIPv6 value to set.- Returns:
- the ManagedClusterLoadBalancerProfileManagedOutboundIPs 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<ManagedClusterLoadBalancerProfileManagedOutboundIPs>- Throws:
IOException
-
fromJson
public static ManagedClusterLoadBalancerProfileManagedOutboundIPs fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterLoadBalancerProfileManagedOutboundIPs from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterLoadBalancerProfileManagedOutboundIPs 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 ManagedClusterLoadBalancerProfileManagedOutboundIPs.
-