Class DatastoreInventoryItem
java.lang.Object
com.azure.resourcemanager.connectedvmware.fluent.models.InventoryItemProperties
com.azure.resourcemanager.connectedvmware.models.DatastoreInventoryItem
The datastore inventory item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the capacityGB property: Gets or sets Maximum capacity of this datastore, in GBs.Get the freeSpaceGB property: Gets or sets Available space of this datastore, in GBs.void
validate()
Validates the instance.withCapacityGB
(Long capacityGB) Set the capacityGB property: Gets or sets Maximum capacity of this datastore, in GBs.withFreeSpaceGB
(Long freeSpaceGB) Set the freeSpaceGB property: Gets or sets Available space of this datastore, in GBs.withManagedResourceId
(String managedResourceId) Set the managedResourceId property: Gets or sets the tracked resource id corresponding to the inventory resource.withMoName
(String moName) Set the moName property: Gets or sets the vCenter Managed Object name for the inventory item.withMoRefId
(String moRefId) Set the moRefId property: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.Methods inherited from class com.azure.resourcemanager.connectedvmware.fluent.models.InventoryItemProperties
managedResourceId, moName, moRefId, provisioningState
-
Constructor Details
-
DatastoreInventoryItem
public DatastoreInventoryItem()
-
-
Method Details
-
capacityGB
Get the capacityGB property: Gets or sets Maximum capacity of this datastore, in GBs.- Returns:
- the capacityGB value.
-
withCapacityGB
Set the capacityGB property: Gets or sets Maximum capacity of this datastore, in GBs.- Parameters:
capacityGB
- the capacityGB value to set.- Returns:
- the DatastoreInventoryItem object itself.
-
freeSpaceGB
Get the freeSpaceGB property: Gets or sets Available space of this datastore, in GBs.- Returns:
- the freeSpaceGB value.
-
withFreeSpaceGB
Set the freeSpaceGB property: Gets or sets Available space of this datastore, in GBs.- Parameters:
freeSpaceGB
- the freeSpaceGB value to set.- Returns:
- the DatastoreInventoryItem object itself.
-
withManagedResourceId
Set the managedResourceId property: Gets or sets the tracked resource id corresponding to the inventory resource.- Overrides:
withManagedResourceId
in classInventoryItemProperties
- Parameters:
managedResourceId
- the managedResourceId value to set.- Returns:
- the InventoryItemProperties object itself.
-
withMoRefId
Set the moRefId property: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.- Overrides:
withMoRefId
in classInventoryItemProperties
- Parameters:
moRefId
- the moRefId value to set.- Returns:
- the InventoryItemProperties object itself.
-
withMoName
Set the moName property: Gets or sets the vCenter Managed Object name for the inventory item.- Overrides:
withMoName
in classInventoryItemProperties
- Parameters:
moName
- the moName value to set.- Returns:
- the InventoryItemProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classInventoryItemProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-