Class UsageInner
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.UsageInner
Definition of Usage.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: Gets or sets the current usage value.id()
Get the id property: Gets or sets the id of the resource.limit()
Get the limit property: Gets or sets max limit.name()
Get the name property: Gets or sets the usage counter name.Get the throttleStatus property: Gets or sets the throttle status.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.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.
-
Constructor Details
-
UsageInner
public UsageInner()
-
-
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.
-