ClusterInner Class

public final class ClusterInner
extends Resource

Define the cluster.

Constructor Summary

Constructor Description
ClusterInner()

Creates an instance of ClusterInner class.

Method Summary

Modifier and Type Method and Description
String customResourceName()

Get the customResourceName property: Gets the name of the corresponding resource in Kubernetes.

List<String> datastoreIds()

Get the datastoreIds property: Gets the datastore ARM ids.

ExtendedLocation extendedLocation()

Get the extendedLocation property: Gets or sets the extended location.

static ClusterInner fromJson(JsonReader jsonReader)

Reads an instance of ClusterInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the cluster.

String kind()

Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.

String moName()

Get the moName property: Gets or sets the vCenter Managed Object name for the cluster.

String moRefId()

Get the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster.

String name()

Get the name property: The name of the resource.

List<String> networkIds()

Get the networkIds property: Gets the network ARM ids.

ProvisioningState provisioningState()

Get the provisioningState property: Gets the provisioning state.

List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

SystemData systemData()

Get the systemData property: The system data.

JsonWriter toJson(JsonWriter jsonWriter)
Long totalCpuMHz()

Get the totalCpuMHz property: Gets the max CPU usage across all cores on the cluster in MHz.

Long totalMemoryGB()

Get the totalMemoryGB property: Gets the total amount of physical memory on the cluster in GB.

String type()

Get the type property: The type of the resource.

Long usedCpuMHz()

Get the usedCpuMHz property: Gets the used CPU usage across all cores on the cluster in MHz.

Long usedMemoryGB()

Get the usedMemoryGB property: Gets the used physical memory on the cluster in GB.

String uuid()

Get the uuid property: Gets or sets a unique identifier for this resource.

void validate()

Validates the instance.

String vCenterId()

Get the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this cluster resides.

ClusterInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Gets or sets the extended location.

ClusterInner withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the cluster.

ClusterInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g.

ClusterInner withLocation(String location)
ClusterInner withMoRefId(String moRefId)

Set the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster.

ClusterInner withTags(Map<String,String> tags)
ClusterInner withVCenterId(String vCenterId)

Set the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this cluster resides.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ClusterInner

public ClusterInner()

Creates an instance of ClusterInner class.

Method Details

customResourceName

public String customResourceName()

Get the customResourceName property: Gets the name of the corresponding resource in Kubernetes.

Returns:

the customResourceName value.

datastoreIds

public List<String> datastoreIds()

Get the datastoreIds property: Gets the datastore ARM ids.

Returns:

the datastoreIds value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: Gets or sets the extended location.

Returns:

the extendedLocation value.

fromJson

public static ClusterInner fromJson(JsonReader jsonReader)

Reads an instance of ClusterInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ClusterInner.id()

Returns:

the id value.

inventoryItemId

public String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the cluster.

Returns:

the inventoryItemId value.

kind

public String kind()

Get the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Returns:

the kind value.

moName

public String moName()

Get the moName property: Gets or sets the vCenter Managed Object name for the cluster.

Returns:

the moName value.

moRefId

public String moRefId()

Get the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster.

Returns:

the moRefId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ClusterInner.name()

Returns:

the name value.

networkIds

public List<String> networkIds()

Get the networkIds property: Gets the network ARM ids.

Returns:

the networkIds value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Gets the provisioning state.

Returns:

the provisioningState value.

statuses

public List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

systemData

public SystemData systemData()

Get the systemData property: The system data.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ClusterInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalCpuMHz

public Long totalCpuMHz()

Get the totalCpuMHz property: Gets the max CPU usage across all cores on the cluster in MHz.

Returns:

the totalCpuMHz value.

totalMemoryGB

public Long totalMemoryGB()

Get the totalMemoryGB property: Gets the total amount of physical memory on the cluster in GB.

Returns:

the totalMemoryGB value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

ClusterInner.type()

Returns:

the type value.

usedCpuMHz

public Long usedCpuMHz()

Get the usedCpuMHz property: Gets the used CPU usage across all cores on the cluster in MHz.

Returns:

the usedCpuMHz value.

usedMemoryGB

public Long usedMemoryGB()

Get the usedMemoryGB property: Gets the used physical memory on the cluster in GB.

Returns:

the usedMemoryGB value.

uuid

public String uuid()

Get the uuid property: Gets or sets a unique identifier for this resource.

Returns:

the uuid value.

validate

public void validate()

Validates the instance.

vCenterId

public String vCenterId()

Get the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this cluster resides.

Returns:

the vCenterId value.

withExtendedLocation

public ClusterInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: Gets or sets the extended location.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the ClusterInner object itself.

withInventoryItemId

public ClusterInner withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the cluster.

Parameters:

inventoryItemId - the inventoryItemId value to set.

Returns:

the ClusterInner object itself.

withKind

public ClusterInner withKind(String kind)

Set the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

Parameters:

kind - the kind value to set.

Returns:

the ClusterInner object itself.

withLocation

public ClusterInner withLocation(String location)

Overrides:

ClusterInner.withLocation(String location)

Parameters:

location

withMoRefId

public ClusterInner withMoRefId(String moRefId)

Set the moRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster.

Parameters:

moRefId - the moRefId value to set.

Returns:

the ClusterInner object itself.

withTags

public ClusterInner withTags(Map<String,String> tags)

Overrides:

ClusterInner.withTags(Map<String,String> tags)

Parameters:

tags

withVCenterId

public ClusterInner withVCenterId(String vCenterId)

Set the vCenterId property: Gets or sets the ARM Id of the vCenter resource in which this cluster resides.

Parameters:

vCenterId - the vCenterId value to set.

Returns:

the ClusterInner object itself.

Applies to