Class StorageTargetSpaceAllocation
java.lang.Object
com.azure.resourcemanager.storagecache.models.StorageTargetSpaceAllocation
Storage Target space allocation properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allocationPercentage property: The percentage of cache space allocated for this storage target.name()
Get the name property: Name of the storage target.void
validate()
Validates the instance.withAllocationPercentage
(Integer allocationPercentage) Set the allocationPercentage property: The percentage of cache space allocated for this storage target.Set the name property: Name of the storage target.
-
Constructor Details
-
StorageTargetSpaceAllocation
public StorageTargetSpaceAllocation()
-
-
Method Details
-
name
Get the name property: Name of the storage target.- Returns:
- the name value.
-
withName
Set the name property: Name of the storage target.- Parameters:
name
- the name value to set.- Returns:
- the StorageTargetSpaceAllocation object itself.
-
allocationPercentage
Get the allocationPercentage property: The percentage of cache space allocated for this storage target.- Returns:
- the allocationPercentage value.
-
withAllocationPercentage
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.
-