Class QuotaUsageInner
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.QuotaUsageInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QuotaUsageInner>
public final class QuotaUsageInner
extends Object
implements com.azure.json.JsonSerializable<QuotaUsageInner>
Quota usage for servers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Current Quota usage value.static QuotaUsageInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QuotaUsageInner from the JsonReader.id()Get the id property: Fully qualified ARM resource Id.limit()Get the limit property: Quota limit.name()Get the name property: Name of quota usage for servers.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: Quota unit.voidvalidate()Validates the instance.withCurrentValue(Long currentValue) Set the currentValue property: Current Quota usage value.Set the id property: Fully qualified ARM resource Id.Set the limit property: Quota limit.withName(NameProperty name) Set the name property: Name of quota usage for servers.Set the unit property: Quota unit.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
QuotaUsageInner
public QuotaUsageInner()Creates an instance of QuotaUsageInner class.
-
-
Method Details
-
name
Get the name property: Name of quota usage for servers.- Returns:
- the name value.
-
withName
Set the name property: Name of quota usage for servers.- Parameters:
name- the name value to set.- Returns:
- the QuotaUsageInner object itself.
-
limit
-
withLimit
Set the limit property: Quota limit.- Parameters:
limit- the limit value to set.- Returns:
- the QuotaUsageInner object itself.
-
unit
-
withUnit
Set the unit property: Quota unit.- Parameters:
unit- the unit value to set.- Returns:
- the QuotaUsageInner object itself.
-
currentValue
Get the currentValue property: Current Quota usage value.- Returns:
- the currentValue value.
-
withCurrentValue
Set the currentValue property: Current Quota usage value.- Parameters:
currentValue- the currentValue value to set.- Returns:
- the QuotaUsageInner object itself.
-
id
-
withId
Set the id property: Fully qualified ARM resource Id.- Parameters:
id- the id value to set.- Returns:
- the QuotaUsageInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QuotaUsageInner>- Throws:
IOException
-
fromJson
Reads an instance of QuotaUsageInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QuotaUsageInner 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 QuotaUsageInner.
-