Class StorageTargetSpaceAllocation

java.lang.Object
com.azure.resourcemanager.storagecache.models.StorageTargetSpaceAllocation

public final class StorageTargetSpaceAllocation extends Object
Storage Target space allocation properties.
  • Constructor Details

    • StorageTargetSpaceAllocation

      public StorageTargetSpaceAllocation()
  • Method Details

    • name

      public String name()
      Get the name property: Name of the storage target.
      Returns:
      the name value.
    • withName

      public StorageTargetSpaceAllocation withName(String name)
      Set the name property: Name of the storage target.
      Parameters:
      name - the name value to set.
      Returns:
      the StorageTargetSpaceAllocation object itself.
    • allocationPercentage

      public Integer allocationPercentage()
      Get the allocationPercentage property: The percentage of cache space allocated for this storage target.
      Returns:
      the allocationPercentage value.
    • withAllocationPercentage

      public StorageTargetSpaceAllocation withAllocationPercentage(Integer allocationPercentage)
      Set the allocationPercentage property: The percentage of cache space allocated for this storage target.
      Parameters:
      allocationPercentage - the allocationPercentage value to set.
      Returns:
      the StorageTargetSpaceAllocation object itself.
    • validate

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