Class Amount
- java.lang.Object
-
- com.azure.resourcemanager.consumption.models.Amount
-
- Direct Known Subclasses:
AmountWithExchangeRate
public class Amount extends Object
The amount plus currency .
-
-
Constructor Summary
Constructors Constructor Description Amount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
currency()
Get the currency property: Amount currency.void
validate()
Validates the instance.BigDecimal
value()
Get the value property: Amount.
-
-
-
Method Detail
-
currency
public String currency()
Get the currency property: Amount currency.- Returns:
- the currency value.
-
value
public BigDecimal value()
Get the value property: Amount.- Returns:
- the value value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-