DatastoreInner Class

public final class DatastoreInner
extends Resource

Define the datastore.

Constructor Summary

Constructor Description
DatastoreInner()

Creates an instance of DatastoreInner class.

Method Summary

Modifier and Type Method and Description
Long capacityGB()

Get the capacityGB property: Gets or sets Maximum capacity of this datastore in GBs.

String customResourceName()

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

ExtendedLocation extendedLocation()

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

Long freeSpaceGB()

Get the freeSpaceGB property: Gets or sets Available space of this datastore in GBs.

static DatastoreInner fromJson(JsonReader jsonReader)

Reads an instance of DatastoreInner 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 datastore.

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 datastore.

String moRefId()

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

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

List<ResourceStatus> statuses()

Get the statuses property: The resource status information.

SystemData systemData()

Get the systemData property: The system data.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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 datastore resides.

DatastoreInner withExtendedLocation(ExtendedLocation extendedLocation)

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

DatastoreInner withInventoryItemId(String inventoryItemId)

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

DatastoreInner 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.

DatastoreInner withLocation(String location)
DatastoreInner withMoRefId(String moRefId)

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

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

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

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DatastoreInner

public DatastoreInner()

Creates an instance of DatastoreInner class.

Method Details

capacityGB

public Long capacityGB()

Get the capacityGB property: Gets or sets Maximum capacity of this datastore in GBs.

Returns:

the capacityGB value.

customResourceName

public String customResourceName()

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

Returns:

the customResourceName value.

extendedLocation

public ExtendedLocation extendedLocation()

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

Returns:

the extendedLocation value.

freeSpaceGB

public Long freeSpaceGB()

Get the freeSpaceGB property: Gets or sets Available space of this datastore in GBs.

Returns:

the freeSpaceGB value.

fromJson

public static DatastoreInner fromJson(JsonReader jsonReader)

Reads an instance of DatastoreInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DatastoreInner 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:

DatastoreInner.id()

Returns:

the id value.

inventoryItemId

public String inventoryItemId()

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

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 datastore.

Returns:

the moName value.

moRefId

public String moRefId()

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

Returns:

the moRefId value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DatastoreInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

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:

DatastoreInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DatastoreInner.type()

Returns:

the type 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 datastore resides.

Returns:

the vCenterId value.

withExtendedLocation

public DatastoreInner withExtendedLocation(ExtendedLocation extendedLocation)

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

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the DatastoreInner object itself.

withInventoryItemId

public DatastoreInner withInventoryItemId(String inventoryItemId)

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

Parameters:

inventoryItemId - the inventoryItemId value to set.

Returns:

the DatastoreInner object itself.

withKind

public DatastoreInner 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 DatastoreInner object itself.

withLocation

public DatastoreInner withLocation(String location)

Overrides:

DatastoreInner.withLocation(String location)

Parameters:

location

withMoRefId

public DatastoreInner withMoRefId(String moRefId)

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

Parameters:

moRefId - the moRefId value to set.

Returns:

the DatastoreInner object itself.

withTags

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

Overrides:

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

Parameters:

tags

withVCenterId

public DatastoreInner withVCenterId(String vCenterId)

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

Parameters:

vCenterId - the vCenterId value to set.

Returns:

the DatastoreInner object itself.

Applies to