UsageInner Class

  • java.lang.Object
    • com.azure.resourcemanager.vmwarecloudsimple.fluent.models.UsageInner

public final class UsageInner

Usage model.

Constructor Summary

Constructor Description
UsageInner()

Creates an instance of UsageInner class.

Method Summary

Modifier and Type Method and Description
int currentValue()

Get the currentValue property: The current usage value.

int limit()

Get the limit property: limit of a given sku in a region for a subscription.

UsageName name()

Get the name property: Usage name value and localized name.

UsageCount unit()

Get the unit property: The usages' unit.

void validate()

Validates the instance.

UsageInner withCurrentValue(int currentValue)

Set the currentValue property: The current usage value.

UsageInner withLimit(int limit)

Set the limit property: limit of a given sku in a region for a subscription.

UsageInner withName(UsageName name)

Set the name property: Usage name value and localized name.

UsageInner 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:

the currentValue value.

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:

the limit value.

name

public UsageName name()

Get the name property: Usage name value and localized name.

Returns:

the name value.

unit

public UsageCount unit()

Get the unit property: The usages' unit.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withCurrentValue

public UsageInner withCurrentValue(int currentValue)

Set the currentValue property: The current usage value.

Parameters:

currentValue - the currentValue value to set.

Returns:

the UsageInner object itself.

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:

limit - the limit value to set.

Returns:

the UsageInner object itself.

withName

public UsageInner withName(UsageName name)

Set the name property: Usage name value and localized name.

Parameters:

name - the name value to set.

Returns:

the UsageInner object itself.

withUnit

public UsageInner withUnit(UsageCount unit)

Set the unit property: The usages' unit.

Parameters:

unit - the unit value to set.

Returns:

the UsageInner object itself.

Applies to