Class AgentPoolNetworkProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AgentPoolNetworkProfile>
public final class AgentPoolNetworkProfile
extends Object
implements com.azure.json.JsonSerializable<AgentPoolNetworkProfile>
Network settings of an agent pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AgentPoolNetworkProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedHostPorts property: The port ranges that are allowed to access.Get the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.static AgentPoolNetworkProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AgentPoolNetworkProfile from the JsonReader.Get the nodePublicIpTags property: IPTags of instance-level public IPs.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllowedHostPorts(List<PortRange> allowedHostPorts) Set the allowedHostPorts property: The port ranges that are allowed to access.withApplicationSecurityGroups(List<String> applicationSecurityGroups) Set the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.withNodePublicIpTags(List<IpTag> nodePublicIpTags) Set the nodePublicIpTags property: IPTags of instance-level public IPs.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
-
AgentPoolNetworkProfile
public AgentPoolNetworkProfile()Creates an instance of AgentPoolNetworkProfile class.
-
-
Method Details
-
nodePublicIpTags
Get the nodePublicIpTags property: IPTags of instance-level public IPs.- Returns:
- the nodePublicIpTags value.
-
withNodePublicIpTags
Set the nodePublicIpTags property: IPTags of instance-level public IPs.- Parameters:
nodePublicIpTags- the nodePublicIpTags value to set.- Returns:
- the AgentPoolNetworkProfile object itself.
-
allowedHostPorts
Get the allowedHostPorts property: The port ranges that are allowed to access. The specified ranges are allowed to overlap.- Returns:
- the allowedHostPorts value.
-
withAllowedHostPorts
Set the allowedHostPorts property: The port ranges that are allowed to access. The specified ranges are allowed to overlap.- Parameters:
allowedHostPorts- the allowedHostPorts value to set.- Returns:
- the AgentPoolNetworkProfile object itself.
-
applicationSecurityGroups
Get the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.- Returns:
- the applicationSecurityGroups value.
-
withApplicationSecurityGroups
public AgentPoolNetworkProfile withApplicationSecurityGroups(List<String> applicationSecurityGroups) Set the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.- Parameters:
applicationSecurityGroups- the applicationSecurityGroups value to set.- Returns:
- the AgentPoolNetworkProfile 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<AgentPoolNetworkProfile>- Throws:
IOException
-
fromJson
public static AgentPoolNetworkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AgentPoolNetworkProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AgentPoolNetworkProfile 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 AgentPoolNetworkProfile.
-