Amount Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.Amount

public final class Amount

The amount.

Constructor Summary

Constructor Description
Amount()

Creates an instance of Amount class.

Method Summary

Modifier and Type Method and Description
String currency()

Get the currency property: The currency for the amount value.

void validate()

Validates the instance.

Float value()

Get the value property: Amount value.

Amount withValue(Float value)

Set the value property: Amount value.

Methods inherited from java.lang.Object

Constructor Details

Amount

public Amount()

Creates an instance of Amount class.

Method Details

currency

public String currency()

Get the currency property: The currency for the amount value.

Returns:

the currency value.

validate

public void validate()

Validates the instance.

value

public Float value()

Get the value property: Amount value.

Returns:

the value value.

withValue

public Amount withValue(Float value)

Set the value property: Amount value.

Parameters:

value - the value value to set.

Returns:

the Amount object itself.

Applies to