Class DatastoreInventoryItem

java.lang.Object
com.azure.resourcemanager.connectedvmware.fluent.models.InventoryItemProperties
com.azure.resourcemanager.connectedvmware.models.DatastoreInventoryItem

public final class DatastoreInventoryItem extends InventoryItemProperties
The datastore inventory item.
  • Constructor Details

    • DatastoreInventoryItem

      public DatastoreInventoryItem()
  • Method Details

    • capacityGB

      public Long capacityGB()
      Get the capacityGB property: Gets or sets Maximum capacity of this datastore, in GBs.
      Returns:
      the capacityGB value.
    • withCapacityGB

      public DatastoreInventoryItem withCapacityGB(Long capacityGB)
      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

      public Long freeSpaceGB()
      Get the freeSpaceGB property: Gets or sets Available space of this datastore, in GBs.
      Returns:
      the freeSpaceGB value.
    • withFreeSpaceGB

      public DatastoreInventoryItem withFreeSpaceGB(Long freeSpaceGB)
      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

      public DatastoreInventoryItem withManagedResourceId(String managedResourceId)
      Set the managedResourceId property: Gets or sets the tracked resource id corresponding to the inventory resource.
      Overrides:
      withManagedResourceId in class InventoryItemProperties
      Parameters:
      managedResourceId - the managedResourceId value to set.
      Returns:
      the InventoryItemProperties object itself.
    • withMoRefId

      public DatastoreInventoryItem withMoRefId(String moRefId)
      Set the moRefId property: Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
      Overrides:
      withMoRefId in class InventoryItemProperties
      Parameters:
      moRefId - the moRefId value to set.
      Returns:
      the InventoryItemProperties object itself.
    • withMoName

      public DatastoreInventoryItem withMoName(String moName)
      Set the moName property: Gets or sets the vCenter Managed Object name for the inventory item.
      Overrides:
      withMoName in class InventoryItemProperties
      Parameters:
      moName - the moName value to set.
      Returns:
      the InventoryItemProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class InventoryItemProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.