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

com.pulumi.aws.budgets.inputs.BudgetPlannedLimitArgs 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.72.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.aws.budgets.inputs;

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


public final class BudgetPlannedLimitArgs extends com.pulumi.resources.ResourceArgs {

    public static final BudgetPlannedLimitArgs Empty = new BudgetPlannedLimitArgs();

    /**
     * (Required) The amount of cost or usage being measured for a budget.
     * 
     */
    @Import(name="amount", required=true)
    private Output amount;

    /**
     * @return (Required) The amount of cost or usage being measured for a budget.
     * 
     */
    public Output amount() {
        return this.amount;
    }

    /**
     * (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.
     * 
     */
    @Import(name="startTime", required=true)
    private Output startTime;

    /**
     * @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 Output startTime() {
        return this.startTime;
    }

    /**
     * (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.
     * 
     */
    @Import(name="unit", required=true)
    private Output unit;

    /**
     * @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 Output unit() {
        return this.unit;
    }

    private BudgetPlannedLimitArgs() {}

    private BudgetPlannedLimitArgs(BudgetPlannedLimitArgs $) {
        this.amount = $.amount;
        this.startTime = $.startTime;
        this.unit = $.unit;
    }

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

    public static final class Builder {
        private BudgetPlannedLimitArgs $;

        public Builder() {
            $ = new BudgetPlannedLimitArgs();
        }

        public Builder(BudgetPlannedLimitArgs defaults) {
            $ = new BudgetPlannedLimitArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param amount (Required) The amount of cost or usage being measured for a budget.
         * 
         * @return builder
         * 
         */
        public Builder amount(Output amount) {
            $.amount = amount;
            return this;
        }

        /**
         * @param amount (Required) The amount of cost or usage being measured for a budget.
         * 
         * @return builder
         * 
         */
        public Builder amount(String amount) {
            return amount(Output.of(amount));
        }

        /**
         * @param startTime (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.
         * 
         * @return builder
         * 
         */
        public Builder startTime(Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime (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.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param unit (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.
         * 
         * @return builder
         * 
         */
        public Builder unit(Output unit) {
            $.unit = unit;
            return this;
        }

        /**
         * @param unit (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.
         * 
         * @return builder
         * 
         */
        public Builder unit(String unit) {
            return unit(Output.of(unit));
        }

        public BudgetPlannedLimitArgs build() {
            if ($.amount == null) {
                throw new MissingRequiredPropertyException("BudgetPlannedLimitArgs", "amount");
            }
            if ($.startTime == null) {
                throw new MissingRequiredPropertyException("BudgetPlannedLimitArgs", "startTime");
            }
            if ($.unit == null) {
                throw new MissingRequiredPropertyException("BudgetPlannedLimitArgs", "unit");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy