UsageInner Class
- java.
lang. Object - com.
azure. resourcemanager. vmwarecloudsimple. fluent. models. UsageInner
- com.
public final class UsageInner
Usage model.
Constructor Summary
Constructor | Description |
---|---|
UsageInner() |
Creates an instance of Usage |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
currentValue()
Get the current |
int |
limit()
Get the limit property: limit of a given sku in a region for a subscription. |
Usage |
name()
Get the name property: Usage name value and localized name. |
Usage |
unit()
Get the unit property: The usages' unit. |
void |
validate()
Validates the instance. |
Usage |
withCurrentValue(int currentValue)
Set the current |
Usage |
withLimit(int limit)
Set the limit property: limit of a given sku in a region for a subscription. |
Usage |
withName(UsageName name)
Set the name property: Usage name value and localized name. |
Usage |
withUnit(UsageCount unit)
Set the unit property: The usages' unit. |
Methods inherited from java.lang.Object
Constructor Details
UsageInner
public UsageInner()
Creates an instance of UsageInner class.
Method Details
currentValue
public int currentValue()
Get the currentValue property: The current usage value.
Returns:
limit
public int limit()
Get the limit property: limit of a given sku in a region for a subscription. The maximum permitted value for the usage quota. If there is no limit, this value will be -1.
Returns:
name
public UsageName name()
Get the name property: Usage name value and localized name.
Returns:
unit
public UsageCount unit()
Get the unit property: The usages' unit.
Returns:
validate
public void validate()
Validates the instance.
withCurrentValue
public UsageInner withCurrentValue(int currentValue)
Set the currentValue property: The current usage value.
Parameters:
Returns:
withLimit
public UsageInner withLimit(int limit)
Set the limit property: limit of a given sku in a region for a subscription. The maximum permitted value for the usage quota. If there is no limit, this value will be -1.
Parameters:
Returns:
withName
public UsageInner withName(UsageName name)
Set the name property: Usage name value and localized name.
Parameters:
Returns:
withUnit
public UsageInner withUnit(UsageCount unit)
Set the unit property: The usages' unit.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for