Aracılığıyla paylaş


UsagesProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.quota.models.UsagesProperties

Implements

public final class UsagesProperties
implements JsonSerializable<UsagesProperties>

Usage properties for the specified resource.

Constructor Summary

Constructor Description
UsagesProperties()

Creates an instance of UsagesProperties class.

Method Summary

Modifier and Type Method and Description
static UsagesProperties fromJson(JsonReader jsonReader)

Reads an instance of UsagesProperties from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

Methods inherited from java.lang.Object

Constructor Details

UsagesProperties

public UsagesProperties()

Creates an instance of UsagesProperties class.

Method Details

fromJson

public static UsagesProperties fromJson(JsonReader jsonReader)

Reads an instance of UsagesProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UsagesProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the UsagesProperties.

isQuotaApplicable

public Boolean isQuotaApplicable()

Get the isQuotaApplicable property: States if quota can be requested for this resource.

Returns:

the isQuotaApplicable 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.

properties

public Object properties()

Get the properties property: Additional properties for the specific resource provider.

Returns:

the properties value.

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.

resourceType

public String resourceType()

Get the resourceType property: The name of the resource type. Optional field.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

usages

public UsagesObject usages()

Get the usages property: The quota limit properties for this resource.

Returns:

the usages value.

validate

public void validate()

Validates the instance.

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.

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.

withResourceType

public UsagesProperties withResourceType(String resourceType)

Set the resourceType property: The name of the resource type. Optional field.

Parameters:

resourceType - the resourceType value to set.

Returns:

the UsagesProperties object itself.

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.

Applies to