Class OpenShiftManagedClusterMasterPoolProfile
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile
-
public final class OpenShiftManagedClusterMasterPoolProfile extends Object
OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift master VMs.
-
-
Constructor Summary
Constructors Constructor Description OpenShiftManagedClusterMasterPoolProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()Get the count property: Number of masters (VMs) to host docker containers.Stringname()Get the name property: Unique name of the master pool profile in the context of the subscription and resource group.OSTypeosType()Get the osType property: OsType to be used to specify os type.StringsubnetCidr()Get the subnetCidr property: Subnet CIDR for the peering.voidvalidate()Validates the instance.OpenShiftContainerServiceVMSizevmSize()Get the vmSize property: Size of agent VMs.OpenShiftManagedClusterMasterPoolProfilewithCount(int count)Set the count property: Number of masters (VMs) to host docker containers.OpenShiftManagedClusterMasterPoolProfilewithName(String name)Set the name property: Unique name of the master pool profile in the context of the subscription and resource group.OpenShiftManagedClusterMasterPoolProfilewithOsType(OSType osType)Set the osType property: OsType to be used to specify os type.OpenShiftManagedClusterMasterPoolProfilewithSubnetCidr(String subnetCidr)Set the subnetCidr property: Subnet CIDR for the peering.OpenShiftManagedClusterMasterPoolProfilewithVmSize(OpenShiftContainerServiceVMSize vmSize)Set the vmSize property: Size of agent VMs.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Unique name of the master pool profile in the context of the subscription and resource group.- Returns:
- the name value.
-
withName
public OpenShiftManagedClusterMasterPoolProfile withName(String name)
Set the name property: Unique name of the master pool profile in the context of the subscription and resource group.- Parameters:
name- the name value to set.- Returns:
- the OpenShiftManagedClusterMasterPoolProfile object itself.
-
count
public int count()
Get the count property: Number of masters (VMs) to host docker containers. The default value is 3.- Returns:
- the count value.
-
withCount
public OpenShiftManagedClusterMasterPoolProfile withCount(int count)
Set the count property: Number of masters (VMs) to host docker containers. The default value is 3.- Parameters:
count- the count value to set.- Returns:
- the OpenShiftManagedClusterMasterPoolProfile object itself.
-
vmSize
public OpenShiftContainerServiceVMSize vmSize()
Get the vmSize property: Size of agent VMs.- Returns:
- the vmSize value.
-
withVmSize
public OpenShiftManagedClusterMasterPoolProfile withVmSize(OpenShiftContainerServiceVMSize vmSize)
Set the vmSize property: Size of agent VMs.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the OpenShiftManagedClusterMasterPoolProfile object itself.
-
subnetCidr
public String subnetCidr()
Get the subnetCidr property: Subnet CIDR for the peering.- Returns:
- the subnetCidr value.
-
withSubnetCidr
public OpenShiftManagedClusterMasterPoolProfile withSubnetCidr(String subnetCidr)
Set the subnetCidr property: Subnet CIDR for the peering.- Parameters:
subnetCidr- the subnetCidr value to set.- Returns:
- the OpenShiftManagedClusterMasterPoolProfile 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 OpenShiftManagedClusterMasterPoolProfile 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 OpenShiftManagedClusterMasterPoolProfile object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-