Class Price
java.lang.Object
com.azure.resourcemanager.billingbenefits.models.Price
- Direct Known Subclasses:
Commitment
,PricingCurrencyTotal
The Price model.
-
Constructor Summary
-
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.void
validate()
Validates the instance.withAmount
(Double 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.
-
Constructor Details
-
Price
public Price()Creates an instance of Price 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 Price 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 Price object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-