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

package com.azure.resourcemanager.consumption.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;

/** The forecasted cost which is being tracked for a budget. */
@Immutable
public final class ForecastSpend {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ForecastSpend.class);

    /*
     * The forecasted cost for the total time period which is being tracked by
     * the budget. This value is only provided if the budget contains a
     * forecast alert type.
     */
    @JsonProperty(value = "amount", access = JsonProperty.Access.WRITE_ONLY)
    private BigDecimal amount;

    /*
     * The unit of measure for the budget amount.
     */
    @JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY)
    private String unit;

    /**
     * Get the amount property: The forecasted cost for the total time period which is being tracked by the budget. This
     * value is only provided if the budget contains a forecast alert type.
     *
     * @return the amount value.
     */
    public BigDecimal amount() {
        return this.amount;
    }

    /**
     * Get the unit property: The unit of measure for the budget amount.
     *
     * @return the unit value.
     */
    public String unit() {
        return this.unit;
    }

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