Class CsmUsageQuotaInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.CsmUsageQuotaInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CsmUsageQuotaInner>
public final class CsmUsageQuotaInner
extends Object
implements com.azure.json.JsonSerializable<CsmUsageQuotaInner>
Usage of the quota resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: The current value of the resource counter.static CsmUsageQuotaInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CsmUsageQuotaInner from the JsonReader.limit()
Get the limit property: The resource limit.name()
Get the name property: Quota name.Get the nextResetTime property: Next reset time for the resource counter.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) unit()
Get the unit property: Units of measurement for the quota resource.void
validate()
Validates the instance.withCurrentValue
(Long currentValue) Set the currentValue property: The current value of the resource counter.Set the limit property: The resource limit.withName
(LocalizableString name) Set the name property: Quota name.withNextResetTime
(OffsetDateTime nextResetTime) Set the nextResetTime property: Next reset time for the resource counter.Set the unit property: Units of measurement for the quota resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CsmUsageQuotaInner
public CsmUsageQuotaInner()Creates an instance of CsmUsageQuotaInner class.
-
-
Method Details
-
unit
Get the unit property: Units of measurement for the quota resource.- Returns:
- the unit value.
-
withUnit
Set the unit property: Units of measurement for the quota resource.- Parameters:
unit
- the unit value to set.- Returns:
- the CsmUsageQuotaInner object itself.
-
nextResetTime
Get the nextResetTime property: Next reset time for the resource counter.- Returns:
- the nextResetTime value.
-
withNextResetTime
Set the nextResetTime property: Next reset time for the resource counter.- Parameters:
nextResetTime
- the nextResetTime value to set.- Returns:
- the CsmUsageQuotaInner object itself.
-
currentValue
Get the currentValue property: The current value of the resource counter.- Returns:
- the currentValue value.
-
withCurrentValue
Set the currentValue property: The current value of the resource counter.- Parameters:
currentValue
- the currentValue value to set.- Returns:
- the CsmUsageQuotaInner object itself.
-
limit
Get the limit property: The resource limit.- Returns:
- the limit value.
-
withLimit
Set the limit property: The resource limit.- Parameters:
limit
- the limit value to set.- Returns:
- the CsmUsageQuotaInner object itself.
-
name
Get the name property: Quota name.- Returns:
- the name value.
-
withName
Set the name property: Quota name.- Parameters:
name
- the name value to set.- Returns:
- the CsmUsageQuotaInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CsmUsageQuotaInner>
- Throws:
IOException
-
fromJson
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.
-