Class ResourceUsageInner
- java.lang.Object
-
- com.azure.resourcemanager.storagecache.fluent.models.ResourceUsageInner
-
public final class ResourceUsageInner extends Object
The usage and limit (quota) for a resource.
-
-
Constructor Summary
Constructors Constructor Description ResourceUsageInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
currentValue()
Get the currentValue property: The current usage of this resource.Integer
limit()
Get the limit property: The limit (quota) for this resource.ResourceUsageName
name()
Get the name property: Naming information for this resource type.String
unit()
Get the unit property: Unit that the limit and usages are expressed in, such as 'Count'.void
validate()
Validates the instance.
-
-
-
Method Detail
-
limit
public Integer limit()
Get the limit property: The limit (quota) for this resource.- Returns:
- the limit value.
-
unit
public String unit()
Get the unit property: Unit that the limit and usages are expressed in, such as 'Count'.- Returns:
- the unit value.
-
currentValue
public Integer currentValue()
Get the currentValue property: The current usage of this resource.- Returns:
- the currentValue value.
-
name
public ResourceUsageName name()
Get the name property: Naming information for this resource type.- Returns:
- the name value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-