Class OpenShiftManagedClusterAgentPoolProfile
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterAgentPoolProfile
-
public final class OpenShiftManagedClusterAgentPoolProfile extends Object
Defines the configuration of the OpenShift cluster VMs.
-
-
Constructor Summary
Constructors Constructor Description OpenShiftManagedClusterAgentPoolProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()Get the count property: Number of agents (VMs) to host docker containers.Stringname()Get the name property: Unique name of the pool profile in the context of the subscription and resource group.OSTypeosType()Get the osType property: OsType to be used to specify os type.OpenShiftAgentPoolProfileRolerole()Get the role property: Define the role of the AgentPoolProfile.StringsubnetCidr()Get the subnetCidr property: Subnet CIDR for the peering.voidvalidate()Validates the instance.OpenShiftContainerServiceVMSizevmSize()Get the vmSize property: Size of agent VMs.OpenShiftManagedClusterAgentPoolProfilewithCount(int count)Set the count property: Number of agents (VMs) to host docker containers.OpenShiftManagedClusterAgentPoolProfilewithName(String name)Set the name property: Unique name of the pool profile in the context of the subscription and resource group.OpenShiftManagedClusterAgentPoolProfilewithOsType(OSType osType)Set the osType property: OsType to be used to specify os type.OpenShiftManagedClusterAgentPoolProfilewithRole(OpenShiftAgentPoolProfileRole role)Set the role property: Define the role of the AgentPoolProfile.OpenShiftManagedClusterAgentPoolProfilewithSubnetCidr(String subnetCidr)Set the subnetCidr property: Subnet CIDR for the peering.OpenShiftManagedClusterAgentPoolProfilewithVmSize(OpenShiftContainerServiceVMSize vmSize)Set the vmSize property: Size of agent VMs.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Unique name of the pool profile in the context of the subscription and resource group.- Returns:
- the name value.
-
withName
public OpenShiftManagedClusterAgentPoolProfile withName(String name)
Set the name property: Unique name of the pool profile in the context of the subscription and resource group.- Parameters:
name- the name value to set.- Returns:
- the OpenShiftManagedClusterAgentPoolProfile object itself.
-
count
public int count()
Get the count property: Number of agents (VMs) to host docker containers.- Returns:
- the count value.
-
withCount
public OpenShiftManagedClusterAgentPoolProfile withCount(int count)
Set the count property: Number of agents (VMs) to host docker containers.- Parameters:
count- the count value to set.- Returns:
- the OpenShiftManagedClusterAgentPoolProfile object itself.
-
vmSize
public OpenShiftContainerServiceVMSize vmSize()
Get the vmSize property: Size of agent VMs.- Returns:
- the vmSize value.
-
withVmSize
public OpenShiftManagedClusterAgentPoolProfile withVmSize(OpenShiftContainerServiceVMSize vmSize)
Set the vmSize property: Size of agent VMs.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the OpenShiftManagedClusterAgentPoolProfile object itself.
-
subnetCidr
public String subnetCidr()
Get the subnetCidr property: Subnet CIDR for the peering.- Returns:
- the subnetCidr value.
-
withSubnetCidr
public OpenShiftManagedClusterAgentPoolProfile withSubnetCidr(String subnetCidr)
Set the subnetCidr property: Subnet CIDR for the peering.- Parameters:
subnetCidr- the subnetCidr value to set.- Returns:
- the OpenShiftManagedClusterAgentPoolProfile object itself.
-
osType
public OSType osType()
Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.- Returns:
- the osType value.
-
withOsType
public OpenShiftManagedClusterAgentPoolProfile withOsType(OSType osType)
Set the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.- Parameters:
osType- the osType value to set.- Returns:
- the OpenShiftManagedClusterAgentPoolProfile object itself.
-
role
public OpenShiftAgentPoolProfileRole role()
Get the role property: Define the role of the AgentPoolProfile.- Returns:
- the role value.
-
withRole
public OpenShiftManagedClusterAgentPoolProfile withRole(OpenShiftAgentPoolProfileRole role)
Set the role property: Define the role of the AgentPoolProfile.- Parameters:
role- the role value to set.- Returns:
- the OpenShiftManagedClusterAgentPoolProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-