Class UsageInner
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.UsageInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UsageInner>
Definition of Usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Gets or sets the current usage value.static UsageInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of UsageInner from the JsonReader.id()
Get the id property: Gets or sets the id of the resource.limit()
Get the limit property: Gets or sets max limit. -1 for unlimited.name()
Get the name property: Gets or sets the usage counter name.Get the throttleStatus property: Gets or sets the throttle status.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) unit()
Get the unit property: Gets or sets the usage unit name.void
validate()
Validates the instance.withCurrentValue
(Double currentValue) Set the currentValue property: Gets or sets the current usage value.Set the id property: Gets or sets the id of the resource.Set the limit property: Gets or sets max limit. -1 for unlimited.withName
(UsageCounterName name) Set the name property: Gets or sets the usage counter name.withThrottleStatus
(String throttleStatus) Set the throttleStatus property: Gets or sets the throttle status.Set the unit property: Gets or sets the usage unit name.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
-
UsageInner
public UsageInner()Creates an instance of UsageInner class.
-
-
Method Details
-
id
Get the id property: Gets or sets the id of the resource.- Returns:
- the id value.
-
withId
Set the id property: Gets or sets the id of the resource.- Parameters:
id
- the id value to set.- Returns:
- the UsageInner object itself.
-
name
Get the name property: Gets or sets the usage counter name.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the usage counter name.- Parameters:
name
- the name value to set.- Returns:
- the UsageInner object itself.
-
unit
Get the unit property: Gets or sets the usage unit name.- Returns:
- the unit value.
-
withUnit
Set the unit property: Gets or sets the usage unit name.- Parameters:
unit
- the unit value to set.- Returns:
- the UsageInner object itself.
-
currentValue
Get the currentValue property: Gets or sets the current usage value.- Returns:
- the currentValue value.
-
withCurrentValue
Set the currentValue property: Gets or sets the current usage value.- Parameters:
currentValue
- the currentValue value to set.- Returns:
- the UsageInner object itself.
-
limit
Get the limit property: Gets or sets max limit. -1 for unlimited.- Returns:
- the limit value.
-
withLimit
Set the limit property: Gets or sets max limit. -1 for unlimited.- Parameters:
limit
- the limit value to set.- Returns:
- the UsageInner object itself.
-
throttleStatus
Get the throttleStatus property: Gets or sets the throttle status.- Returns:
- the throttleStatus value.
-
withThrottleStatus
Set the throttleStatus property: Gets or sets the throttle status.- Parameters:
throttleStatus
- the throttleStatus value to set.- Returns:
- the UsageInner 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<UsageInner>
- Throws:
IOException
-
fromJson
Reads an instance of UsageInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of UsageInner 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 UsageInner.
-