OpenShiftManagedClusterMasterPoolProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.OpenShiftManagedClusterMasterPoolProfile

Implements

public final class OpenShiftManagedClusterMasterPoolProfile
implements JsonSerializable<OpenShiftManagedClusterMasterPoolProfile>

OpenShiftManagedClusterMaterPoolProfile contains configuration for OpenShift master VMs.

Constructor Summary

Constructor Description
OpenShiftManagedClusterMasterPoolProfile()

Creates an instance of OpenShiftManagedClusterMasterPoolProfile class.

Method Summary

Modifier and Type Method and Description
int count()

Get the count property: Number of masters (VMs) to host docker containers.

static OpenShiftManagedClusterMasterPoolProfile fromJson(JsonReader jsonReader)

Reads an instance of OpenShiftManagedClusterMasterPoolProfile from the JsonReader.

String name()

Get the name property: Unique name of the master pool profile in the context of the subscription and resource group.

OSType osType()

Get the osType property: OsType to be used to specify os type.

String subnetCidr()

Get the subnetCidr property: Subnet CIDR for the peering.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OpenShiftContainerServiceVMSize vmSize()

Get the vmSize property: Size of agent VMs.

OpenShiftManagedClusterMasterPoolProfile withCount(int count)

Set the count property: Number of masters (VMs) to host docker containers.

OpenShiftManagedClusterMasterPoolProfile withName(String name)

Set the name property: Unique name of the master pool profile in the context of the subscription and resource group.

OpenShiftManagedClusterMasterPoolProfile withOsType(OSType osType)

Set the osType property: OsType to be used to specify os type.

OpenShiftManagedClusterMasterPoolProfile withSubnetCidr(String subnetCidr)

Set the subnetCidr property: Subnet CIDR for the peering.

OpenShiftManagedClusterMasterPoolProfile withVmSize(OpenShiftContainerServiceVMSize vmSize)

Set the vmSize property: Size of agent VMs.

Methods inherited from java.lang.Object

Constructor Details

OpenShiftManagedClusterMasterPoolProfile

public OpenShiftManagedClusterMasterPoolProfile()

Creates an instance of OpenShiftManagedClusterMasterPoolProfile class.

Method Details

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.

fromJson

public static OpenShiftManagedClusterMasterPoolProfile fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

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.

subnetCidr

public String subnetCidr()

Get the subnetCidr property: Subnet CIDR for the peering.

Returns:

the subnetCidr value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmSize

public OpenShiftContainerServiceVMSize vmSize()

Get the vmSize property: Size of agent VMs.

Returns:

the vmSize 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.

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.

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.

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.

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.

Applies to