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

com.pulumi.aws.budgets.outputs.BudgetPlannedLimit Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.budgets.outputs;

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

@CustomType
public final class BudgetPlannedLimit {
    /**
     * @return (Required) The amount of cost or usage being measured for a budget.
     * 
     */
    private String amount;
    /**
     * @return (Required) The start time of the budget limit. Format: `2017-01-01_12:00`. See [PlannedBudgetLimits](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_Budget.html#awscostmanagement-Type-budgets_Budget-PlannedBudgetLimits) documentation.
     * 
     */
    private String startTime;
    /**
     * @return (Required) The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See [Spend](http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/data-type-spend.html) documentation.
     * 
     */
    private String unit;

    private BudgetPlannedLimit() {}
    /**
     * @return (Required) The amount of cost or usage being measured for a budget.
     * 
     */
    public String amount() {
        return this.amount;
    }
    /**
     * @return (Required) The start time of the budget limit. Format: `2017-01-01_12:00`. See [PlannedBudgetLimits](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_Budget.html#awscostmanagement-Type-budgets_Budget-PlannedBudgetLimits) documentation.
     * 
     */
    public String startTime() {
        return this.startTime;
    }
    /**
     * @return (Required) The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See [Spend](http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/data-type-spend.html) documentation.
     * 
     */
    public String unit() {
        return this.unit;
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy