public final class UsageInner extends Object
Constructor and Description |
---|
UsageInner()
Creates an instance of UsageInner class.
|
Modifier and Type | Method and Description |
---|---|
int |
currentValue()
Get the currentValue property: The current usage of the resource.
|
long |
limit()
Get the limit property: The maximum permitted usage of the resource.
|
UsageName |
name()
Get the name property: The name of the type of usage.
|
String |
unit()
Get the unit property: An enum describing the unit of usage measurement.
|
void |
validate()
Validates the instance.
|
UsageInner |
withCurrentValue(int currentValue)
Set the currentValue property: The current usage of the resource.
|
UsageInner |
withLimit(long limit)
Set the limit property: The maximum permitted usage of the resource.
|
UsageInner |
withName(UsageName name)
Set the name property: The name of the type of usage.
|
UsageInner |
withUnit(String unit)
Set the unit property: An enum describing the unit of usage measurement.
|
public String unit()
public UsageInner withUnit(String unit)
unit
- the unit value to set.public int currentValue()
public UsageInner withCurrentValue(int 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.