Class UsagesProperties
- java.lang.Object
-
- com.azure.resourcemanager.quota.models.UsagesProperties
-
public final class UsagesProperties extends Object
Usage properties for the specified resource.
-
-
Constructor Summary
Constructors Constructor Description UsagesProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isQuotaApplicable()
Get the isQuotaApplicable property: States if quota can be requested for this resource.ResourceName
name()
Get the name property: Resource name provided by the resource provider.Object
properties()
Get the properties property: Additional properties for the specific resource provider.String
quotaPeriod()
Get the quotaPeriod property: The time period for the summary of the quota usage values.String
resourceType()
Get the resourceType property: The name of the resource type.String
unit()
Get the unit property: The units for the quota usage, such as Count and Bytes.UsagesObject
usages()
Get the usages property: The quota limit properties for this resource.void
validate()
Validates the instance.UsagesProperties
withName(ResourceName name)
Set the name property: Resource name provided by the resource provider.UsagesProperties
withProperties(Object properties)
Set the properties property: Additional properties for the specific resource provider.UsagesProperties
withResourceType(String resourceType)
Set the resourceType property: The name of the resource type.UsagesProperties
withUsages(UsagesObject usages)
Set the usages property: The quota limit properties for this resource.
-
-
-
Method Detail
-
usages
public UsagesObject usages()
Get the usages property: The quota limit properties for this resource.- Returns:
- the usages value.
-
withUsages
public UsagesProperties withUsages(UsagesObject usages)
Set the usages property: The quota limit properties for this resource.- Parameters:
usages
- the usages value to set.- Returns:
- the UsagesProperties object itself.
-
unit
public String unit()
Get the unit property: The units for the quota usage, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.- Returns:
- the unit value.
-
name
public ResourceName name()
Get the name property: Resource name provided by the resource provider. Use this property name when requesting quota.- Returns:
- the name value.
-
withName
public UsagesProperties withName(ResourceName name)
Set the name property: Resource name provided by the resource provider. Use this property name when requesting quota.- Parameters:
name
- the name value to set.- Returns:
- the UsagesProperties object itself.
-
resourceType
public String resourceType()
Get the resourceType property: The name of the resource type.- Returns:
- the resourceType value.
-
withResourceType
public UsagesProperties withResourceType(String resourceType)
Set the resourceType property: The name of the resource type.- Parameters:
resourceType
- the resourceType value to set.- Returns:
- the UsagesProperties object itself.
-
quotaPeriod
public String quotaPeriod()
Get the quotaPeriod property: The time period for the summary of the quota usage values. For example: *P1D (per one day) *PT1M (per one minute) *PT1S (per one second). This parameter is optional because it is not relevant for all resources such as compute.- Returns:
- the quotaPeriod value.
-
isQuotaApplicable
public Boolean isQuotaApplicable()
Get the isQuotaApplicable property: States if quota can be requested for this resource.- Returns:
- the isQuotaApplicable value.
-
properties
public Object properties()
Get the properties property: Additional properties for the specific resource provider.- Returns:
- the properties value.
-
withProperties
public UsagesProperties withProperties(Object properties)
Set the properties property: Additional properties for the specific resource provider.- Parameters:
properties
- the properties value to set.- Returns:
- the UsagesProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-