// 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. This is
 * locked price 30 days before expiry.
 */
@Fluent
public final class RenewPropertiesResponsePricingCurrencyTotal {
    /*
     * 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 RenewPropertiesResponsePricingCurrencyTotal class. */
    public RenewPropertiesResponsePricingCurrencyTotal() {
    }

    /**
     * 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 RenewPropertiesResponsePricingCurrencyTotal object itself.
     */
    public RenewPropertiesResponsePricingCurrencyTotal 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 RenewPropertiesResponsePricingCurrencyTotal object itself.
     */
    public RenewPropertiesResponsePricingCurrencyTotal withAmount(Float amount) {
        this.amount = amount;
        return this;
    }

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