All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.costmanagement.outputs.CurrentSpendResponse Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.costmanagement.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class CurrentSpendResponse {
    /**
     * @return The total amount of cost which is being tracked by the budget.
     * 
     */
    private Double amount;
    /**
     * @return The unit of measure for the budget amount.
     * 
     */
    private String unit;

    private CurrentSpendResponse() {}
    /**
     * @return The total amount of cost which is being tracked by the budget.
     * 
     */
    public Double amount() {
        return this.amount;
    }
    /**
     * @return The unit of measure for the budget amount.
     * 
     */
    public String unit() {
        return this.unit;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(CurrentSpendResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Double amount;
        private String unit;
        public Builder() {}
        public Builder(CurrentSpendResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.amount = defaults.amount;
    	      this.unit = defaults.unit;
        }

        @CustomType.Setter
        public Builder amount(Double amount) {
            if (amount == null) {
              throw new MissingRequiredPropertyException("CurrentSpendResponse", "amount");
            }
            this.amount = amount;
            return this;
        }
        @CustomType.Setter
        public Builder unit(String unit) {
            if (unit == null) {
              throw new MissingRequiredPropertyException("CurrentSpendResponse", "unit");
            }
            this.unit = unit;
            return this;
        }
        public CurrentSpendResponse build() {
            final var _resultValue = new CurrentSpendResponse();
            _resultValue.amount = amount;
            _resultValue.unit = unit;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy