// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.reservations.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. */
@Fluent
public final class CalculatePriceResponsePropertiesPricingCurrencyTotal {
    /*
     * The ISO 4217 3-letter currency code for the currency used by this purchase record.
     */
    @JsonProperty(value = "currencyCode")
    private String currencyCode;

    /*
     * The amount property.
     */
    @JsonProperty(value = "amount")
    private Float amount;

    /** Creates an instance of CalculatePriceResponsePropertiesPricingCurrencyTotal class. */
    public CalculatePriceResponsePropertiesPricingCurrencyTotal() {
    }

    /**
     * Get the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.
     *
     * @return the currencyCode value.
     */
    public String currencyCode() {
        return this.currencyCode;
    }

    /**
     * Set the currencyCode property: The ISO 4217 3-letter currency code for the currency used by this purchase record.
     *
     * @param currencyCode the currencyCode value to set.
     * @return the CalculatePriceResponsePropertiesPricingCurrencyTotal object itself.
     */
    public CalculatePriceResponsePropertiesPricingCurrencyTotal withCurrencyCode(String currencyCode) {
        this.currencyCode = currencyCode;
        return this;
    }

    /**
     * Get the amount property: The amount property.
     *
     * @return the amount value.
     */
    public Float amount() {
        return this.amount;
    }

    /**
     * Set the amount property: The amount property.
     *
     * @param amount the amount value to set.
     * @return the CalculatePriceResponsePropertiesPricingCurrencyTotal object itself.
     */
    public CalculatePriceResponsePropertiesPricingCurrencyTotal withAmount(Float amount) {
        this.amount = amount;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
