java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
Direct Known Subclasses:
AgentPoolProperties, NamedAgentPoolProfile

public class AgentPoolProfile extends Object
NodePool configuration.
  • Constructor Details

    • AgentPoolProfile

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

    • 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile object itself.
    • maxCount

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

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

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

      public AgentPoolProfile 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 AgentPoolProfile object itself.
    • minCount

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

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

      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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile 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 AgentPoolProfile object itself.
    • nodeImageVersion

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

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

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

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

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

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