Class NamedAgentPoolProfile
java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
com.azure.resourcemanager.hybridcontainerservice.models.NamedAgentPoolProfile
- Direct Known Subclasses:
ControlPlaneProfile
,LoadBalancerProfile
Agent pool profile along with a name parameter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Unique name of the agent pool profile in the context of the subscription and resource group.void
validate()
Validates the instance.withAvailabilityZones
(List<String> availabilityZones) Set the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes.withCloudProviderProfile
(CloudProviderProfile cloudProviderProfile) Set the cloudProviderProfile property: The underlying cloud infra provider properties.Set the count property: Count - Number of agents to host docker containers.withMaxCount
(Integer maxCount) Set the maxCount property: The maximum number of nodes for auto-scaling.withMaxPods
(Integer maxPods) Set the maxPods property: The maximum number of pods that can run on a node.withMinCount
(Integer minCount) Set the minCount property: The minimum number of nodes for auto-scaling.Set the mode property: Mode - AgentPoolMode represents mode of an agent pool.Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group.withNodeImageVersion
(String nodeImageVersion) Set the nodeImageVersion property: The version of node image.withNodeLabels
(Map<String, String> nodeLabels) Set the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.withNodeTaints
(List<String> nodeTaints) Set the nodeTaints property: NodeTaints - Taints added to new nodes during node pool create and scale.withOsType
(OsType osType) Set the osType property: OsType - OsType to be used to specify os type.withVmSize
(String vmSize) Set the vmSize property: VmSize - The size of the agent pool VMs.Methods inherited from class com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
availabilityZones, cloudProviderProfile, count, maxCount, maxPods, minCount, mode, nodeImageVersion, nodeLabels, nodeTaints, osType, vmSize
-
Constructor Details
-
NamedAgentPoolProfile
public NamedAgentPoolProfile()Creates an instance of NamedAgentPoolProfile class.
-
-
Method Details
-
name
Get the name property: Unique name of the agent pool profile in the context of the subscription and resource group.- Returns:
- the name value.
-
withName
Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group.- Parameters:
name
- the name value to set.- Returns:
- the NamedAgentPoolProfile object itself.
-
withCount
Set the count property: Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.- Overrides:
withCount
in classAgentPoolProfile
- Parameters:
count
- the count value to set.- Returns:
- the AgentPoolProfile object itself.
-
withAvailabilityZones
Set the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones.- Overrides:
withAvailabilityZones
in classAgentPoolProfile
- Parameters:
availabilityZones
- the availabilityZones value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMaxCount
Set the maxCount property: The maximum number of nodes for auto-scaling.- Overrides:
withMaxCount
in classAgentPoolProfile
- Parameters:
maxCount
- the maxCount value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMaxPods
Set the maxPods property: The maximum number of pods that can run on a node.- Overrides:
withMaxPods
in classAgentPoolProfile
- Parameters:
maxPods
- the maxPods value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMinCount
Set the minCount property: The minimum number of nodes for auto-scaling.- Overrides:
withMinCount
in classAgentPoolProfile
- Parameters:
minCount
- the minCount value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMode
Set the mode property: Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'.- Overrides:
withMode
in classAgentPoolProfile
- Parameters:
mode
- the mode value to set.- Returns:
- the AgentPoolProfile object itself.
-
withNodeLabels
Set the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.- Overrides:
withNodeLabels
in classAgentPoolProfile
- Parameters:
nodeLabels
- the nodeLabels value to set.- Returns:
- the AgentPoolProfile object itself.
-
withNodeTaints
Set the nodeTaints property: NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Overrides:
withNodeTaints
in classAgentPoolProfile
- Parameters:
nodeTaints
- the nodeTaints value to set.- Returns:
- the AgentPoolProfile object itself.
-
withOsType
Set the osType property: OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'.- Overrides:
withOsType
in classAgentPoolProfile
- Parameters:
osType
- the osType value to set.- Returns:
- the AgentPoolProfile object itself.
-
withNodeImageVersion
Set the nodeImageVersion property: The version of node image.- Overrides:
withNodeImageVersion
in classAgentPoolProfile
- Parameters:
nodeImageVersion
- the nodeImageVersion value to set.- Returns:
- the AgentPoolProfile object itself.
-
withVmSize
Set the vmSize property: VmSize - The size of the agent pool VMs.- Overrides:
withVmSize
in classAgentPoolProfile
- Parameters:
vmSize
- the vmSize value to set.- Returns:
- the AgentPoolProfile object itself.
-
withCloudProviderProfile
Set the cloudProviderProfile property: The underlying cloud infra provider properties.- Overrides:
withCloudProviderProfile
in classAgentPoolProfile
- Parameters:
cloudProviderProfile
- the cloudProviderProfile value to set.- Returns:
- the AgentPoolProfile object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classAgentPoolProfile
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-