Partager via


AgentPoolNetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile

Implements

public final class AgentPoolNetworkProfile
implements JsonSerializable<AgentPoolNetworkProfile>

Network settings of an agent pool.

Constructor Summary

Constructor Description
AgentPoolNetworkProfile()

Creates an instance of AgentPoolNetworkProfile class.

Method Summary

Modifier and Type Method and Description
List<PortRange> allowedHostPorts()

Get the allowedHostPorts property: The port ranges that are allowed to access.

List<String> applicationSecurityGroups()

Get the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.

static AgentPoolNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolNetworkProfile from the JsonReader.

List<IpTag> nodePublicIpTags()

Get the nodePublicIpTags property: IPTags of instance-level public IPs.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AgentPoolNetworkProfile withAllowedHostPorts(List<PortRange> allowedHostPorts)

Set the allowedHostPorts property: The port ranges that are allowed to access.

AgentPoolNetworkProfile withApplicationSecurityGroups(List<String> applicationSecurityGroups)

Set the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.

AgentPoolNetworkProfile withNodePublicIpTags(List<IpTag> nodePublicIpTags)

Set the nodePublicIpTags property: IPTags of instance-level public IPs.

Methods inherited from java.lang.Object

Constructor Details

AgentPoolNetworkProfile

public AgentPoolNetworkProfile()

Creates an instance of AgentPoolNetworkProfile class.

Method Details

allowedHostPorts

public List allowedHostPorts()

Get the allowedHostPorts property: The port ranges that are allowed to access. The specified ranges are allowed to overlap.

Returns:

the allowedHostPorts value.

applicationSecurityGroups

public List applicationSecurityGroups()

Get the applicationSecurityGroups property: The IDs of the application security groups which agent pool will associate when created.

Returns:

the applicationSecurityGroups value.

fromJson

public static AgentPoolNetworkProfile fromJson(JsonReader jsonReader)

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.

nodePublicIpTags

public List nodePublicIpTags()

Get the nodePublicIpTags property: IPTags of instance-level public IPs.

Returns:

the nodePublicIpTags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedHostPorts

public AgentPoolNetworkProfile withAllowedHostPorts(List allowedHostPorts)

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.

withApplicationSecurityGroups

public AgentPoolNetworkProfile withApplicationSecurityGroups(List 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.

withNodePublicIpTags

public AgentPoolNetworkProfile withNodePublicIpTags(List nodePublicIpTags)

Set the nodePublicIpTags property: IPTags of instance-level public IPs.

Parameters:

nodePublicIpTags - the nodePublicIpTags value to set.

Returns:

the AgentPoolNetworkProfile object itself.

Applies to