java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
com.azure.resourcemanager.hybridcontainerservice.fluent.models.AgentPoolProperties

public final class AgentPoolProperties extends AgentPoolProfile
The AgentPoolProperties model.
  • Constructor Details

    • AgentPoolProperties

      public AgentPoolProperties()
      Creates an instance of AgentPoolProperties class.
  • Method Details

    • 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 AgentPoolProperties object itself.
    • withCount

      public AgentPoolProperties 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.
      Overrides:
      withCount in class AgentPoolProfile
      Parameters:
      count - the count value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withAvailabilityZones

      public AgentPoolProperties withAvailabilityZones(List<String> availabilityZones)
      Set the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones.
      Overrides:
      withAvailabilityZones in class AgentPoolProfile
      Parameters:
      availabilityZones - the availabilityZones value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withMaxCount

      public AgentPoolProperties withMaxCount(Integer maxCount)
      Set the maxCount property: The maximum number of nodes for auto-scaling.
      Overrides:
      withMaxCount in class AgentPoolProfile
      Parameters:
      maxCount - the maxCount value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withMaxPods

      public AgentPoolProperties withMaxPods(Integer maxPods)
      Set the maxPods property: The maximum number of pods that can run on a node.
      Overrides:
      withMaxPods in class AgentPoolProfile
      Parameters:
      maxPods - the maxPods value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withMinCount

      public AgentPoolProperties withMinCount(Integer minCount)
      Set the minCount property: The minimum number of nodes for auto-scaling.
      Overrides:
      withMinCount in class AgentPoolProfile
      Parameters:
      minCount - the minCount value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withMode

      public AgentPoolProperties withMode(Mode mode)
      Set the mode property: Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'.
      Overrides:
      withMode in class AgentPoolProfile
      Parameters:
      mode - the mode value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withNodeLabels

      public AgentPoolProperties withNodeLabels(Map<String,String> nodeLabels)
      Set the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
      Overrides:
      withNodeLabels in class AgentPoolProfile
      Parameters:
      nodeLabels - the nodeLabels value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withNodeTaints

      public AgentPoolProperties 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.
      Overrides:
      withNodeTaints in class AgentPoolProfile
      Parameters:
      nodeTaints - the nodeTaints value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withOsType

      public AgentPoolProperties 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'.
      Overrides:
      withOsType in class AgentPoolProfile
      Parameters:
      osType - the osType value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withNodeImageVersion

      public AgentPoolProperties withNodeImageVersion(String nodeImageVersion)
      Set the nodeImageVersion property: The version of node image.
      Overrides:
      withNodeImageVersion in class AgentPoolProfile
      Parameters:
      nodeImageVersion - the nodeImageVersion value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withVmSize

      public AgentPoolProperties withVmSize(String vmSize)
      Set the vmSize property: VmSize - The size of the agent pool VMs.
      Overrides:
      withVmSize in class AgentPoolProfile
      Parameters:
      vmSize - the vmSize value to set.
      Returns:
      the AgentPoolProfile object itself.
    • withCloudProviderProfile

      public AgentPoolProperties withCloudProviderProfile(CloudProviderProfile cloudProviderProfile)
      Set the cloudProviderProfile property: The underlying cloud infra provider properties.
      Overrides:
      withCloudProviderProfile in class AgentPoolProfile
      Parameters:
      cloudProviderProfile - the cloudProviderProfile value to set.
      Returns:
      the AgentPoolProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AgentPoolProfile
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.