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

package com.azure.resourcemanager.billingbenefits.models;

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

/** The Price model. */
@Fluent
public class Price {
    /*
     * 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 Double amount;

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

    /**
     * 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 Price object itself.
     */
    public Price withCurrencyCode(String currencyCode) {
        this.currencyCode = currencyCode;
        return this;
    }

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

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

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