Amount Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. Amount
- com.
Implements
public class Amount
implements JsonSerializable<Amount>
The amount plus currency .
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: Amount currency. |
| static Amount |
fromJson(JsonReader jsonReader)
Reads an instance of Amount from the Json |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Big |
value()
Get the value property: Amount. |
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: Amount currency.
Returns:
fromJson
public static Amount fromJson(JsonReader jsonReader)
Reads an instance of Amount from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
value
public BigDecimal value()
Get the value property: Amount.
Returns: