InitialAgentPoolConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. InitialAgentPoolConfiguration
- com.
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 Initial |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Administrator |
administratorConfiguration()
Get the administrator |
|
Agent |
agentOptions()
Get the agent |
|
Attached |
attachedNetworkConfiguration()
Get the attached |
| List<String> |
availabilityZones()
Get the availability |
| long |
count()
Get the count property: The number of virtual machines that use this configuration. |
|
static
Initial |
fromJson(JsonReader jsonReader)
Reads an instance of Initial |
|
List<Kubernetes |
labels()
Get the labels property: The labels applied to the nodes in this agent pool. |
|
Agent |
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<Kubernetes |
taints()
Get the taints property: The taints applied to the nodes in this agent pool. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Agent |
upgradeSettings()
Get the upgrade |
| void |
validate()
Validates the instance. |
| String |
vmSkuName()
Get the vm |
|
Initial |
withAdministratorConfiguration(AdministratorConfiguration administratorConfiguration)
Set the administrator |
|
Initial |
withAgentOptions(AgentOptions agentOptions)
Set the agent |
|
Initial |
withAttachedNetworkConfiguration(AttachedNetworkConfiguration attachedNetworkConfiguration)
Set the attached |
|
Initial |
withAvailabilityZones(List<String> availabilityZones)
Set the availability |
|
Initial |
withCount(long count)
Set the count property: The number of virtual machines that use this configuration. |
|
Initial |
withLabels(List<KubernetesLabel> labels)
Set the labels property: The labels applied to the nodes in this agent pool. |
|
Initial |
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. |
|
Initial |
withName(String name)
Set the name property: The name that will be used for the agent pool resource representing this agent pool. |
|
Initial |
withTaints(List<KubernetesLabel> taints)
Set the taints property: The taints applied to the nodes in this agent pool. |
|
Initial |
withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)
Set the upgrade |
|
Initial |
withVmSkuName(String vmSkuName)
Set the vm |
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:
agentOptions
public AgentOptions agentOptions()
Get the agentOptions property: The configurations that will be applied to each agent in this agent pool.
Returns:
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:
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:
count
public long count()
Get the count property: The number of virtual machines that use this configuration.
Returns:
fromJson
public static InitialAgentPoolConfiguration fromJson(JsonReader jsonReader)
Reads an instance of InitialAgentPoolConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
labels
public List<KubernetesLabel> labels()
Get the labels property: The labels applied to the nodes in this agent pool.
Returns:
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:
name
public String name()
Get the name property: The name that will be used for the agent pool resource representing this agent pool.
Returns:
taints
public List<KubernetesLabel> taints()
Get the taints property: The taints applied to the nodes in this agent pool.
Returns:
toJson
upgradeSettings
public AgentPoolUpgradeSettings upgradeSettings()
Get the upgradeSettings property: The configuration of the agent pool.
Returns:
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:
withAdministratorConfiguration
public InitialAgentPoolConfiguration withAdministratorConfiguration(AdministratorConfiguration administratorConfiguration)
Set the administratorConfiguration property: The administrator credentials to be used for the nodes in this agent pool.
Parameters:
Returns:
withAgentOptions
public InitialAgentPoolConfiguration withAgentOptions(AgentOptions agentOptions)
Set the agentOptions property: The configurations that will be applied to each agent in this agent pool.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withCount
public InitialAgentPoolConfiguration withCount(long count)
Set the count property: The number of virtual machines that use this configuration.
Parameters:
Returns:
withLabels
public InitialAgentPoolConfiguration withLabels(List<KubernetesLabel> labels)
Set the labels property: The labels applied to the nodes in this agent pool.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withTaints
public InitialAgentPoolConfiguration withTaints(List<KubernetesLabel> taints)
Set the taints property: The taints applied to the nodes in this agent pool.
Parameters:
Returns:
withUpgradeSettings
public InitialAgentPoolConfiguration withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)
Set the upgradeSettings property: The configuration of the agent pool.
Parameters:
Returns:
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:
Returns: