Class NamedAgentPoolProfile

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

public class NamedAgentPoolProfile extends AgentPoolProfile
Agent pool profile along with a name parameter.
  • Constructor Details

    • NamedAgentPoolProfile

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

    • name

      public String name()
      Get the name property: Unique name of the agent pool profile in the context of the subscription and resource group.
      Returns:
      the name value.
    • withName

      public NamedAgentPoolProfile withName(String name)
      Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group.
      Parameters:
      name - the name value to set.
      Returns:
      the NamedAgentPoolProfile object itself.
    • withCount

      public NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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 NamedAgentPoolProfile 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.