Class AgentPoolGatewayProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.AgentPoolGatewayProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AgentPoolGatewayProfile>
public final class AgentPoolGatewayProfile
extends Object
implements com.azure.json.JsonSerializable<AgentPoolGatewayProfile>
Profile of the managed cluster gateway agent pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AgentPoolGatewayProfile class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentPoolGatewayProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AgentPoolGatewayProfile from the JsonReader.Get the publicIpPrefixSize property: The Gateway agent pool associates one public IPPrefix for each static egress gateway to provide public egress.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublicIpPrefixSize(Integer publicIpPrefixSize) Set the publicIpPrefixSize property: The Gateway agent pool associates one public IPPrefix for each static egress gateway to provide public egress.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
-
AgentPoolGatewayProfile
public AgentPoolGatewayProfile()Creates an instance of AgentPoolGatewayProfile class.
-
-
Method Details
-
publicIpPrefixSize
Get the publicIpPrefixSize property: The Gateway agent pool associates one public IPPrefix for each static egress gateway to provide public egress. The size of Public IPPrefix should be selected by the user. Each node in the agent pool is assigned with one IP from the IPPrefix. The IPPrefix size thus serves as a cap on the size of the Gateway agent pool. Due to Azure public IPPrefix size limitation, the valid value range is [28, 31] (/31 = 2 nodes/IPs, /30 = 4 nodes/IPs, /29 = 8 nodes/IPs, /28 = 16 nodes/IPs). The default value is 31.- Returns:
- the publicIpPrefixSize value.
-
withPublicIpPrefixSize
Set the publicIpPrefixSize property: The Gateway agent pool associates one public IPPrefix for each static egress gateway to provide public egress. The size of Public IPPrefix should be selected by the user. Each node in the agent pool is assigned with one IP from the IPPrefix. The IPPrefix size thus serves as a cap on the size of the Gateway agent pool. Due to Azure public IPPrefix size limitation, the valid value range is [28, 31] (/31 = 2 nodes/IPs, /30 = 4 nodes/IPs, /29 = 8 nodes/IPs, /28 = 16 nodes/IPs). The default value is 31.- Parameters:
publicIpPrefixSize- the publicIpPrefixSize value to set.- Returns:
- the AgentPoolGatewayProfile 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<AgentPoolGatewayProfile>- Throws:
IOException
-
fromJson
public static AgentPoolGatewayProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AgentPoolGatewayProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AgentPoolGatewayProfile 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 AgentPoolGatewayProfile.
-