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 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

      public AgentPoolExtendedLocation extendedLocation()
      Get the extendedLocation property: The extendedLocation property.
      Returns:
      the extendedLocation value.
    • withExtendedLocation

      public AgentPoolInner withExtendedLocation(AgentPoolExtendedLocation extendedLocation)
      Set the extendedLocation property: The extendedLocation property.
      Parameters:
      extendedLocation - the extendedLocation value to set.
      Returns:
      the AgentPoolInner object itself.
    • withLocation

      public AgentPoolInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public AgentPoolInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • provisioningState

      public AgentPoolProvisioningState 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

      public Integer 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

      public AgentPoolInner withCount(Integer count)
      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

      public List<String> 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

      public AgentPoolInner withAvailabilityZones(List<String> availabilityZones)
      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

      public Integer maxCount()
      Get the maxCount property: The maximum number of nodes for auto-scaling.
      Returns:
      the maxCount value.
    • withMaxCount

      public AgentPoolInner withMaxCount(Integer maxCount)
      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

      public Integer maxPods()
      Get the maxPods property: The maximum number of pods that can run on a node.
      Returns:
      the maxPods value.
    • withMaxPods

      public AgentPoolInner withMaxPods(Integer maxPods)
      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

      public Integer minCount()
      Get the minCount property: The minimum number of nodes for auto-scaling.
      Returns:
      the minCount value.
    • withMinCount

      public AgentPoolInner withMinCount(Integer minCount)
      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

      public Mode 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

      public AgentPoolInner withMode(Mode mode)
      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

      public Map<String,String> nodeLabels()
      Get the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
      Returns:
      the nodeLabels value.
    • withNodeLabels

      public AgentPoolInner withNodeLabels(Map<String,String> nodeLabels)
      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

      public List<String> 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

      public AgentPoolInner withNodeTaints(List<String> nodeTaints)
      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

      public OsType 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

      public AgentPoolInner withOsType(OsType osType)
      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

      public String nodeImageVersion()
      Get the nodeImageVersion property: The version of node image.
      Returns:
      the nodeImageVersion value.
    • withNodeImageVersion

      public AgentPoolInner withNodeImageVersion(String nodeImageVersion)
      Set the nodeImageVersion property: The version of node image.
      Parameters:
      nodeImageVersion - the nodeImageVersion value to set.
      Returns:
      the AgentPoolInner object itself.
    • vmSize

      public String vmSize()
      Get the vmSize property: VmSize - The size of the agent pool VMs.
      Returns:
      the vmSize value.
    • withVmSize

      public AgentPoolInner withVmSize(String vmSize)
      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

      public CloudProviderProfile cloudProviderProfile()
      Get the cloudProviderProfile property: The underlying cloud infra provider properties.
      Returns:
      the cloudProviderProfile value.
    • withCloudProviderProfile

      public AgentPoolInner withCloudProviderProfile(CloudProviderProfile cloudProviderProfile)
      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.