InitialAgentPoolConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.InitialAgentPoolConfiguration

Implements

public final class InitialAgentPoolConfiguration
implements JsonSerializable<InitialAgentPoolConfiguration>

InitialAgentPoolConfiguration specifies the configuration of a pool of virtual machines that are initially defined with a Kubernetes cluster.

Constructor Summary

Constructor Description
InitialAgentPoolConfiguration()

Creates an instance of InitialAgentPoolConfiguration class.

Method Summary

Modifier and Type Method and Description
AdministratorConfiguration administratorConfiguration()

Get the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent pool.

AgentOptions agentOptions()

Get the agentOptions property: The configurations that will be applied to each agent in this agent pool.

AttachedNetworkConfiguration attachedNetworkConfiguration()

Get the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for use by the workloads that run on this Kubernetes cluster.

List<String> availabilityZones()

Get the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent pool.

long count()

Get the count property: The number of virtual machines that use this configuration.

static InitialAgentPoolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of InitialAgentPoolConfiguration from the JsonReader.

List<KubernetesLabel> labels()

Get the labels property: The labels applied to the nodes in this agent pool.

AgentPoolMode mode()

Get the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool.

String name()

Get the name property: The name that will be used for the agent pool resource representing this agent pool.

List<KubernetesLabel> taints()

Get the taints property: The taints applied to the nodes in this agent pool.

JsonWriter toJson(JsonWriter jsonWriter)
AgentPoolUpgradeSettings upgradeSettings()

Get the upgradeSettings property: The configuration of the agent pool.

void validate()

Validates the instance.

String vmSkuName()

Get the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs.

InitialAgentPoolConfiguration withAdministratorConfiguration(AdministratorConfiguration administratorConfiguration)

Set the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent pool.

InitialAgentPoolConfiguration withAgentOptions(AgentOptions agentOptions)

Set the agentOptions property: The configurations that will be applied to each agent in this agent pool.

InitialAgentPoolConfiguration withAttachedNetworkConfiguration(AttachedNetworkConfiguration attachedNetworkConfiguration)

Set the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for use by the workloads that run on this Kubernetes cluster.

InitialAgentPoolConfiguration withAvailabilityZones(List<String> availabilityZones)

Set the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent pool.

InitialAgentPoolConfiguration withCount(long count)

Set the count property: The number of virtual machines that use this configuration.

InitialAgentPoolConfiguration withLabels(List<KubernetesLabel> labels)

Set the labels property: The labels applied to the nodes in this agent pool.

InitialAgentPoolConfiguration withMode(AgentPoolMode mode)

Set the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool.

InitialAgentPoolConfiguration withName(String name)

Set the name property: The name that will be used for the agent pool resource representing this agent pool.

InitialAgentPoolConfiguration withTaints(List<KubernetesLabel> taints)

Set the taints property: The taints applied to the nodes in this agent pool.

InitialAgentPoolConfiguration withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)

Set the upgradeSettings property: The configuration of the agent pool.

InitialAgentPoolConfiguration withVmSkuName(String vmSkuName)

Set the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs.

Methods inherited from java.lang.Object

Constructor Details

InitialAgentPoolConfiguration

public InitialAgentPoolConfiguration()

Creates an instance of InitialAgentPoolConfiguration class.

Method Details

administratorConfiguration

public AdministratorConfiguration administratorConfiguration()

Get the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent pool.

Returns:

the administratorConfiguration value.

agentOptions

public AgentOptions agentOptions()

Get the agentOptions property: The configurations that will be applied to each agent in this agent pool.

Returns:

the agentOptions value.

attachedNetworkConfiguration

public AttachedNetworkConfiguration attachedNetworkConfiguration()

Get the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for use by the workloads that run on this Kubernetes cluster.

Returns:

the attachedNetworkConfiguration value.

availabilityZones

public List<String> availabilityZones()

Get the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent pool. If not specified, all availability zones will be used.

Returns:

the availabilityZones value.

count

public long count()

Get the count property: The number of virtual machines that use this configuration.

Returns:

the count value.

fromJson

public static InitialAgentPoolConfiguration fromJson(JsonReader jsonReader)

Reads an instance of InitialAgentPoolConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InitialAgentPoolConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

labels

public List<KubernetesLabel> labels()

Get the labels property: The labels applied to the nodes in this agent pool.

Returns:

the labels value.

mode

public AgentPoolMode mode()

Get the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node.

Returns:

the mode value.

name

public String name()

Get the name property: The name that will be used for the agent pool resource representing this agent pool.

Returns:

the name value.

taints

public List<KubernetesLabel> taints()

Get the taints property: The taints applied to the nodes in this agent pool.

Returns:

the taints value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

upgradeSettings

public AgentPoolUpgradeSettings upgradeSettings()

Get the upgradeSettings property: The configuration of the agent pool.

Returns:

the upgradeSettings value.

validate

public void validate()

Validates the instance.

vmSkuName

public String vmSkuName()

Get the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs.

Returns:

the vmSkuName value.

withAdministratorConfiguration

public InitialAgentPoolConfiguration withAdministratorConfiguration(AdministratorConfiguration administratorConfiguration)

Set the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent pool.

Parameters:

administratorConfiguration - the administratorConfiguration value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withAgentOptions

public InitialAgentPoolConfiguration withAgentOptions(AgentOptions agentOptions)

Set the agentOptions property: The configurations that will be applied to each agent in this agent pool.

Parameters:

agentOptions - the agentOptions value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withAttachedNetworkConfiguration

public InitialAgentPoolConfiguration withAttachedNetworkConfiguration(AttachedNetworkConfiguration attachedNetworkConfiguration)

Set the attachedNetworkConfiguration property: The configuration of networks being attached to the agent pool for use by the workloads that run on this Kubernetes cluster.

Parameters:

attachedNetworkConfiguration - the attachedNetworkConfiguration value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withAvailabilityZones

public InitialAgentPoolConfiguration withAvailabilityZones(List<String> availabilityZones)

Set the availabilityZones property: The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent pool. If not specified, all availability zones will be used.

Parameters:

availabilityZones - the availabilityZones value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withCount

public InitialAgentPoolConfiguration withCount(long count)

Set the count property: The number of virtual machines that use this configuration.

Parameters:

count - the count value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withLabels

public InitialAgentPoolConfiguration withLabels(List<KubernetesLabel> labels)

Set the labels property: The labels applied to the nodes in this agent pool.

Parameters:

labels - the labels value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withMode

public InitialAgentPoolConfiguration withMode(AgentPoolMode mode)

Set the mode property: The selection of how this agent pool is utilized, either as a system pool or a user pool. System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node.

Parameters:

mode - the mode value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withName

public InitialAgentPoolConfiguration withName(String name)

Set the name property: The name that will be used for the agent pool resource representing this agent pool.

Parameters:

name - the name value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withTaints

public InitialAgentPoolConfiguration withTaints(List<KubernetesLabel> taints)

Set the taints property: The taints applied to the nodes in this agent pool.

Parameters:

taints - the taints value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withUpgradeSettings

public InitialAgentPoolConfiguration withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)

Set the upgradeSettings property: The configuration of the agent pool.

Parameters:

upgradeSettings - the upgradeSettings value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

withVmSkuName

public InitialAgentPoolConfiguration withVmSkuName(String vmSkuName)

Set the vmSkuName property: The name of the VM SKU that determines the size of resources allocated for node VMs.

Parameters:

vmSkuName - the vmSkuName value to set.

Returns:

the InitialAgentPoolConfiguration object itself.

Applies to