Class AgentPoolProfile
java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
- Direct Known Subclasses:
AgentPoolProperties
,NamedAgentPoolProfile
NodePool configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes.Get the cloudProviderProfile property: The underlying cloud infra provider properties.count()
Get the count property: Count - Number of agents to host docker containers.maxCount()
Get the maxCount property: The maximum number of nodes for auto-scaling.maxPods()
Get the maxPods property: The maximum number of pods that can run on a node.minCount()
Get the minCount property: The minimum number of nodes for auto-scaling.mode()
Get the mode property: Mode - AgentPoolMode represents mode of an agent pool.Get the nodeImageVersion property: The version of node image.Get the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.Get the nodeTaints property: NodeTaints - Taints added to new nodes during node pool create and scale.osType()
Get the osType property: OsType - OsType to be used to specify os type.void
validate()
Validates the instance.vmSize()
Get the vmSize property: VmSize - The size of the agent pool VMs.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.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.
-
Constructor Details
-
AgentPoolProfile
public AgentPoolProfile()Creates an instance of AgentPoolProfile class.
-
-
Method Details
-
count
Get 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.- Returns:
- the count value.
-
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.- Parameters:
count
- the count value to set.- Returns:
- the AgentPoolProfile object itself.
-
availabilityZones
Get the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones.- Returns:
- the availabilityZones value.
-
withAvailabilityZones
Set the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones.- Parameters:
availabilityZones
- the availabilityZones value to set.- Returns:
- the AgentPoolProfile object itself.
-
maxCount
Get the maxCount property: The maximum number of nodes for auto-scaling.- Returns:
- the maxCount value.
-
withMaxCount
Set the maxCount property: The maximum number of nodes for auto-scaling.- Parameters:
maxCount
- the maxCount value to set.- Returns:
- the AgentPoolProfile object itself.
-
maxPods
Get the maxPods property: The maximum number of pods that can run on a node.- Returns:
- the maxPods value.
-
withMaxPods
Set the maxPods property: The maximum number of pods that can run on a node.- Parameters:
maxPods
- the maxPods value to set.- Returns:
- the AgentPoolProfile object itself.
-
minCount
Get the minCount property: The minimum number of nodes for auto-scaling.- Returns:
- the minCount value.
-
withMinCount
Set the minCount property: The minimum number of nodes for auto-scaling.- Parameters:
minCount
- the minCount value to set.- Returns:
- the AgentPoolProfile object itself.
-
mode
Get the mode property: Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'.- Returns:
- the mode value.
-
withMode
Set the mode property: Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'.- Parameters:
mode
- the mode value to set.- Returns:
- the AgentPoolProfile object itself.
-
nodeLabels
Get the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.- Returns:
- the nodeLabels value.
-
withNodeLabels
Set the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.- Parameters:
nodeLabels
- the nodeLabels value to set.- Returns:
- the AgentPoolProfile object itself.
-
nodeTaints
Get the nodeTaints property: NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Returns:
- the nodeTaints value.
-
withNodeTaints
Set the nodeTaints property: NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Parameters:
nodeTaints
- the nodeTaints value to set.- Returns:
- the AgentPoolProfile object itself.
-
osType
Get 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'.- Returns:
- the osType value.
-
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'.- Parameters:
osType
- the osType value to set.- Returns:
- the AgentPoolProfile object itself.
-
nodeImageVersion
Get the nodeImageVersion property: The version of node image.- Returns:
- the nodeImageVersion value.
-
withNodeImageVersion
Set the nodeImageVersion property: The version of node image.- Parameters:
nodeImageVersion
- the nodeImageVersion value to set.- Returns:
- the AgentPoolProfile object itself.
-
vmSize
Get the vmSize property: VmSize - The size of the agent pool VMs.- Returns:
- the vmSize value.
-
withVmSize
Set the vmSize property: VmSize - The size of the agent pool VMs.- Parameters:
vmSize
- the vmSize value to set.- Returns:
- the AgentPoolProfile object itself.
-
cloudProviderProfile
Get the cloudProviderProfile property: The underlying cloud infra provider properties.- Returns:
- the cloudProviderProfile value.
-
withCloudProviderProfile
Set the cloudProviderProfile property: The underlying cloud infra provider properties.- Parameters:
cloudProviderProfile
- the cloudProviderProfile value to set.- Returns:
- the AgentPoolProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-