public final class UsageInner extends Object
| Constructor and Description |
|---|
UsageInner() |
| Modifier and Type | Method and Description |
|---|---|
long |
currentValue()
Get the currentValue property: The current value of the usage.
|
String |
id()
Get the id property: Resource identifier.
|
long |
limit()
Get the limit property: The limit of usage.
|
UsageName |
name()
Get the name property: The name of the type of usage.
|
UsageUnit |
unit()
Get the unit property: An enum describing the unit of measurement.
|
void |
validate()
Validates the instance.
|
UsageInner |
withCurrentValue(long currentValue)
Set the currentValue property: The current value of the usage.
|
UsageInner |
withLimit(long limit)
Set the limit property: The limit of usage.
|
UsageInner |
withName(UsageName name)
Set the name property: The name of the type of usage.
|
UsageInner |
withUnit(UsageUnit unit)
Set the unit property: An enum describing the unit of measurement.
|
public String id()
public UsageUnit unit()
public UsageInner withUnit(UsageUnit unit)
unit - the unit value to set.public long currentValue()
public UsageInner withCurrentValue(long currentValue)
currentValue - the currentValue value to set.public long limit()
public UsageInner withLimit(long limit)
limit - the limit value to set.public UsageName name()
public UsageInner withName(UsageName name)
name - the name value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.