AmountWithExchangeRate Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. Amount - com.
azure. resourcemanager. consumption. models. AmountWithExchangeRate
- com.
- com.
public final class AmountWithExchangeRate
extends Amount
The amount with exchange rate.
Constructor Summary
Constructor | Description |
---|---|
AmountWithExchangeRate() |
Creates an instance of Amount |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
currency()
Get the currency property: Amount currency. |
Big |
exchangeRate()
Get the exchange |
Integer |
exchangeRateMonth()
Get the exchange |
static
Amount |
fromJson(JsonReader jsonReader)
Reads an instance of Amount |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Big |
value()
Get the value property: Amount. |
Methods inherited from Amount
Methods inherited from java.lang.Object
Constructor Details
AmountWithExchangeRate
public AmountWithExchangeRate()
Creates an instance of AmountWithExchangeRate class.
Method Details
currency
public String currency()
Get the currency property: Amount currency.
Overrides:
AmountWithExchangeRate.currency()Returns:
exchangeRate
public BigDecimal exchangeRate()
Get the exchangeRate property: The exchange rate.
Returns:
exchangeRateMonth
public Integer exchangeRateMonth()
Get the exchangeRateMonth property: The exchange rate month.
Returns:
fromJson
public static AmountWithExchangeRate fromJson(JsonReader jsonReader)
Reads an instance of AmountWithExchangeRate from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AmountWithExchangeRate.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
AmountWithExchangeRate.validate()value
public BigDecimal value()
Get the value property: Amount.
Overrides:
AmountWithExchangeRate.value()Returns:
Applies to
Azure SDK for Java