Partager via


CsmUsageQuotaInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.CsmUsageQuotaInner

Implements

public final class CsmUsageQuotaInner
implements JsonSerializable<CsmUsageQuotaInner>

Usage of the quota resource.

Constructor Summary

Constructor Description
CsmUsageQuotaInner()

Creates an instance of CsmUsageQuotaInner class.

Method Summary

Modifier and Type Method and Description
Long currentValue()

Get the currentValue property: The current value of the resource counter.

static CsmUsageQuotaInner fromJson(JsonReader jsonReader)

Reads an instance of CsmUsageQuotaInner from the JsonReader.

Long limit()

Get the limit property: The resource limit.

LocalizableString name()

Get the name property: Quota name.

OffsetDateTime nextResetTime()

Get the nextResetTime property: Next reset time for the resource counter.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Units of measurement for the quota resource.

void validate()

Validates the instance.

CsmUsageQuotaInner withCurrentValue(Long currentValue)

Set the currentValue property: The current value of the resource counter.

CsmUsageQuotaInner withLimit(Long limit)

Set the limit property: The resource limit.

CsmUsageQuotaInner withName(LocalizableString name)

Set the name property: Quota name.

CsmUsageQuotaInner withNextResetTime(OffsetDateTime nextResetTime)

Set the nextResetTime property: Next reset time for the resource counter.

CsmUsageQuotaInner withUnit(String unit)

Set the unit property: Units of measurement for the quota resource.

Methods inherited from java.lang.Object

Constructor Details

CsmUsageQuotaInner

public CsmUsageQuotaInner()

Creates an instance of CsmUsageQuotaInner class.

Method Details

currentValue

public Long currentValue()

Get the currentValue property: The current value of the resource counter.

Returns:

the currentValue value.

fromJson

public static CsmUsageQuotaInner fromJson(JsonReader jsonReader)

Reads an instance of CsmUsageQuotaInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CsmUsageQuotaInner 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 CsmUsageQuotaInner.

limit

public Long limit()

Get the limit property: The resource limit.

Returns:

the limit value.

name

public LocalizableString name()

Get the name property: Quota name.

Returns:

the name value.

nextResetTime

public OffsetDateTime nextResetTime()

Get the nextResetTime property: Next reset time for the resource counter.

Returns:

the nextResetTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Units of measurement for the quota resource.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withCurrentValue

public CsmUsageQuotaInner withCurrentValue(Long currentValue)

Set the currentValue property: The current value of the resource counter.

Parameters:

currentValue - the currentValue value to set.

Returns:

the CsmUsageQuotaInner object itself.

withLimit

public CsmUsageQuotaInner withLimit(Long limit)

Set the limit property: The resource limit.

Parameters:

limit - the limit value to set.

Returns:

the CsmUsageQuotaInner object itself.

withName

public CsmUsageQuotaInner withName(LocalizableString name)

Set the name property: Quota name.

Parameters:

name - the name value to set.

Returns:

the CsmUsageQuotaInner object itself.

withNextResetTime

public CsmUsageQuotaInner withNextResetTime(OffsetDateTime nextResetTime)

Set the nextResetTime property: Next reset time for the resource counter.

Parameters:

nextResetTime - the nextResetTime value to set.

Returns:

the CsmUsageQuotaInner object itself.

withUnit

public CsmUsageQuotaInner withUnit(String unit)

Set the unit property: Units of measurement for the quota resource.

Parameters:

unit - the unit value to set.

Returns:

the CsmUsageQuotaInner object itself.

Applies to