Class OpenShiftManagedClusterMasterPoolProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenShiftManagedClusterMasterPoolProfile>
public final class OpenShiftManagedClusterMasterPoolProfile
extends Object
implements com.azure.json.JsonSerializable<OpenShiftManagedClusterMasterPoolProfile>
OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift master VMs.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OpenShiftManagedClusterMasterPoolProfile class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Get the count property: Number of masters (VMs) to host docker containers.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OpenShiftManagedClusterMasterPoolProfile from the JsonReader.name()Get the name property: Unique name of the master pool profile in the context of the subscription and resource group.osType()Get the osType property: OsType to be used to specify os type.Get the subnetCidr property: Subnet CIDR for the peering.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vmSize()Get the vmSize property: Size of agent VMs.withCount(int count) Set the count property: Number of masters (VMs) to host docker containers.Set the name property: Unique name of the master pool profile in the context of the subscription and resource group.withOsType(OSType osType) Set the osType property: OsType to be used to specify os type.withSubnetCidr(String subnetCidr) Set the subnetCidr property: Subnet CIDR for the peering.Set the vmSize property: Size of agent VMs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OpenShiftManagedClusterMasterPoolProfile
public OpenShiftManagedClusterMasterPoolProfile()Creates an instance of OpenShiftManagedClusterMasterPoolProfile class.
-
-
Method Details
-
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
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
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
Get the vmSize property: Size of agent VMs.- Returns:
- the vmSize value.
-
withVmSize
Set the vmSize property: Size of agent VMs.- Parameters:
vmSize- the vmSize value to set.- Returns:
- the OpenShiftManagedClusterMasterPoolProfile object itself.
-
subnetCidr
Get the subnetCidr property: Subnet CIDR for the peering.- Returns:
- the subnetCidr value.
-
withSubnetCidr
Set the subnetCidr property: Subnet CIDR for the peering.- Parameters:
subnetCidr- the subnetCidr value to set.- Returns:
- the OpenShiftManagedClusterMasterPoolProfile object itself.
-
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OpenShiftManagedClusterMasterPoolProfile>- Throws:
IOException
-
fromJson
public static OpenShiftManagedClusterMasterPoolProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenShiftManagedClusterMasterPoolProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OpenShiftManagedClusterMasterPoolProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OpenShiftManagedClusterMasterPoolProfile.
-