Class AgentPoolInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.hybridcontainerservice.fluent.models.AgentPoolInner
public final class AgentPoolInner
extends com.azure.core.management.Resource
The agentPool resource definition.
-
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.Get the extendedLocation property: The extendedLocation property.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.Get the provisioningState property: The provisioningState property.status()
Get the status property: HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool.com.azure.core.management.SystemData
Get the systemData property: Metadata pertaining to creation and last modification of the resource.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.withExtendedLocation
(AgentPoolExtendedLocation extendedLocation) Set the extendedLocation property: The extendedLocation property.withLocation
(String location) 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.Set the status property: HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool.withVmSize
(String vmSize) Set the vmSize property: VmSize - The size of the agent pool VMs.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
AgentPoolInner
public AgentPoolInner()Creates an instance of AgentPoolInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
extendedLocation
Get the extendedLocation property: The extendedLocation property.- Returns:
- the extendedLocation value.
-
withExtendedLocation
Set the extendedLocation property: The extendedLocation property.- Parameters:
extendedLocation
- the extendedLocation value to set.- Returns:
- the AgentPoolInner object itself.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
provisioningState
Get the provisioningState property: The provisioningState property.- Returns:
- the provisioningState value.
-
status
Get the status property: HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool.- Returns:
- the status value.
-
withStatus
Set the status property: HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool.- Parameters:
status
- the status value to set.- Returns:
- the AgentPoolInner object itself.
-
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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner 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 AgentPoolInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-