OpenShiftManagedClusterAgentPoolProfile Class

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

Implements

public final class OpenShiftManagedClusterAgentPoolProfile
implements JsonSerializable<OpenShiftManagedClusterAgentPoolProfile>

Defines the configuration of the OpenShift cluster VMs.

Constructor Summary

Constructor Description
OpenShiftManagedClusterAgentPoolProfile()

Creates an instance of OpenShiftManagedClusterAgentPoolProfile class.

Method Summary

Modifier and Type Method and Description
int count()

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

static OpenShiftManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader)

Reads an instance of OpenShiftManagedClusterAgentPoolProfile from the JsonReader.

String name()

Get the name property: Unique name of the 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.

OpenShiftAgentPoolProfileRole role()

Get the role property: Define the role of the AgentPoolProfile.

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.

OpenShiftManagedClusterAgentPoolProfile withCount(int count)

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

OpenShiftManagedClusterAgentPoolProfile withName(String name)

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

OpenShiftManagedClusterAgentPoolProfile withOsType(OSType osType)

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

OpenShiftManagedClusterAgentPoolProfile withRole(OpenShiftAgentPoolProfileRole role)

Set the role property: Define the role of the AgentPoolProfile.

OpenShiftManagedClusterAgentPoolProfile withSubnetCidr(String subnetCidr)

Set the subnetCidr property: Subnet CIDR for the peering.

OpenShiftManagedClusterAgentPoolProfile withVmSize(OpenShiftContainerServiceVMSize vmSize)

Set the vmSize property: Size of agent VMs.

Methods inherited from java.lang.Object

Constructor Details

OpenShiftManagedClusterAgentPoolProfile

public OpenShiftManagedClusterAgentPoolProfile()

Creates an instance of OpenShiftManagedClusterAgentPoolProfile class.

Method Details

count

public int count()

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

Returns:

the count value.

fromJson

public static OpenShiftManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader)

Reads an instance of OpenShiftManagedClusterAgentPoolProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OpenShiftManagedClusterAgentPoolProfile 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 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.

role

public OpenShiftAgentPoolProfileRole role()

Get the role property: Define the role of the AgentPoolProfile.

Returns:

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

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.

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.

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.

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.

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.

Applies to