Class RenewPropertiesResponseBillingCurrencyTotal
java.lang.Object
com.azure.resourcemanager.reservations.models.RenewPropertiesResponseBillingCurrencyTotal
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RenewPropertiesResponseBillingCurrencyTotal>
public final class RenewPropertiesResponseBillingCurrencyTotal
extends Object
implements com.azure.json.JsonSerializable<RenewPropertiesResponseBillingCurrencyTotal>
Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not
included.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RenewPropertiesResponseBillingCurrencyTotal class. -
Method Summary
Modifier and TypeMethodDescriptionamount()
Get the amount property: The amount property.Get the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RenewPropertiesResponseBillingCurrencyTotal from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAmount
(Float amount) Set the amount property: The amount property.withCurrencyCode
(String currencyCode) Set the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RenewPropertiesResponseBillingCurrencyTotal
public RenewPropertiesResponseBillingCurrencyTotal()Creates an instance of RenewPropertiesResponseBillingCurrencyTotal class.
-
-
Method Details
-
currencyCode
Get the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.- Returns:
- the currencyCode value.
-
withCurrencyCode
Set the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.- Parameters:
currencyCode
- the currencyCode value to set.- Returns:
- the RenewPropertiesResponseBillingCurrencyTotal object itself.
-
amount
Get the amount property: The amount property.- Returns:
- the amount value.
-
withAmount
Set the amount property: The amount property.- Parameters:
amount
- the amount value to set.- Returns:
- the RenewPropertiesResponseBillingCurrencyTotal object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<RenewPropertiesResponseBillingCurrencyTotal>
- Throws:
IOException
-
fromJson
public static RenewPropertiesResponseBillingCurrencyTotal fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RenewPropertiesResponseBillingCurrencyTotal from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of RenewPropertiesResponseBillingCurrencyTotal if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the RenewPropertiesResponseBillingCurrencyTotal.
-