Class ControlPlaneProfile
java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
com.azure.resourcemanager.hybridcontainerservice.models.NamedAgentPoolProfile
com.azure.resourcemanager.hybridcontainerservice.models.ControlPlaneProfile
ControlPlaneProfile - The control plane properties for the provisioned cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the controlPlaneEndpoint property: API server endpoint for the control plane.Get the linuxProfile property: Profile for Linux VMs in the container service cluster.void
validate()
Validates the instance.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.withControlPlaneEndpoint
(ControlPlaneEndpointProfileControlPlaneEndpoint controlPlaneEndpoint) Set the controlPlaneEndpoint property: API server endpoint for the control plane.Set the count property: Count - Number of agents to host docker containers.withLinuxProfile
(LinuxProfileProperties linuxProfile) Set the linuxProfile property: Profile for Linux VMs in the container service cluster.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.Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group.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.withVmSize
(String vmSize) Set the vmSize property: VmSize - The size of the agent pool VMs.Methods inherited from class com.azure.resourcemanager.hybridcontainerservice.models.NamedAgentPoolProfile
name
Methods inherited from class com.azure.resourcemanager.hybridcontainerservice.models.AgentPoolProfile
availabilityZones, cloudProviderProfile, count, maxCount, maxPods, minCount, mode, nodeImageVersion, nodeLabels, nodeTaints, osType, vmSize
-
Constructor Details
-
ControlPlaneProfile
public ControlPlaneProfile()Creates an instance of ControlPlaneProfile class.
-
-
Method Details
-
controlPlaneEndpoint
Get the controlPlaneEndpoint property: API server endpoint for the control plane.- Returns:
- the controlPlaneEndpoint value.
-
withControlPlaneEndpoint
public ControlPlaneProfile withControlPlaneEndpoint(ControlPlaneEndpointProfileControlPlaneEndpoint controlPlaneEndpoint) Set the controlPlaneEndpoint property: API server endpoint for the control plane.- Parameters:
controlPlaneEndpoint
- the controlPlaneEndpoint value to set.- Returns:
- the ControlPlaneProfile object itself.
-
linuxProfile
Get the linuxProfile property: Profile for Linux VMs in the container service cluster.- Returns:
- the linuxProfile value.
-
withLinuxProfile
Set the linuxProfile property: Profile for Linux VMs in the container service cluster.- Parameters:
linuxProfile
- the linuxProfile value to set.- Returns:
- the ControlPlaneProfile object itself.
-
withName
Set the name property: Unique name of the agent pool profile in the context of the subscription and resource group.- Overrides:
withName
in classNamedAgentPoolProfile
- Parameters:
name
- the name value to set.- Returns:
- the NamedAgentPoolProfile object itself.
-
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.- Overrides:
withCount
in classNamedAgentPoolProfile
- Parameters:
count
- the count value to set.- Returns:
- the AgentPoolProfile object itself.
-
withAvailabilityZones
Set the availabilityZones property: AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones.- Overrides:
withAvailabilityZones
in classNamedAgentPoolProfile
- Parameters:
availabilityZones
- the availabilityZones value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMaxCount
Set the maxCount property: The maximum number of nodes for auto-scaling.- Overrides:
withMaxCount
in classNamedAgentPoolProfile
- Parameters:
maxCount
- the maxCount value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMaxPods
Set the maxPods property: The maximum number of pods that can run on a node.- Overrides:
withMaxPods
in classNamedAgentPoolProfile
- Parameters:
maxPods
- the maxPods value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMinCount
Set the minCount property: The minimum number of nodes for auto-scaling.- Overrides:
withMinCount
in classNamedAgentPoolProfile
- Parameters:
minCount
- the minCount value to set.- Returns:
- the AgentPoolProfile object itself.
-
withMode
Set the mode property: Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'.- Overrides:
withMode
in classNamedAgentPoolProfile
- Parameters:
mode
- the mode value to set.- Returns:
- the AgentPoolProfile object itself.
-
withNodeLabels
Set the nodeLabels property: NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.- Overrides:
withNodeLabels
in classNamedAgentPoolProfile
- Parameters:
nodeLabels
- the nodeLabels value to set.- Returns:
- the AgentPoolProfile object itself.
-
withNodeTaints
Set the nodeTaints property: NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.- Overrides:
withNodeTaints
in classNamedAgentPoolProfile
- Parameters:
nodeTaints
- the nodeTaints value to set.- Returns:
- the AgentPoolProfile object itself.
-
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'.- Overrides:
withOsType
in classNamedAgentPoolProfile
- Parameters:
osType
- the osType value to set.- Returns:
- the AgentPoolProfile object itself.
-
withNodeImageVersion
Set the nodeImageVersion property: The version of node image.- Overrides:
withNodeImageVersion
in classNamedAgentPoolProfile
- Parameters:
nodeImageVersion
- the nodeImageVersion value to set.- Returns:
- the AgentPoolProfile object itself.
-
withVmSize
Set the vmSize property: VmSize - The size of the agent pool VMs.- Overrides:
withVmSize
in classNamedAgentPoolProfile
- Parameters:
vmSize
- the vmSize value to set.- Returns:
- the AgentPoolProfile object itself.
-
withCloudProviderProfile
Set the cloudProviderProfile property: The underlying cloud infra provider properties.- Overrides:
withCloudProviderProfile
in classNamedAgentPoolProfile
- Parameters:
cloudProviderProfile
- the cloudProviderProfile value to set.- Returns:
- the AgentPoolProfile object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classNamedAgentPoolProfile
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-