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

com.pulumi.azure.consumption.inputs.BudgetSubscriptionState Maven / Gradle / Ivy

// *** 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.azure.consumption.inputs;

import com.pulumi.azure.consumption.inputs.BudgetSubscriptionFilterArgs;
import com.pulumi.azure.consumption.inputs.BudgetSubscriptionNotificationArgs;
import com.pulumi.azure.consumption.inputs.BudgetSubscriptionTimePeriodArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BudgetSubscriptionState Empty = new BudgetSubscriptionState();

    /**
     * The total amount of cost to track with the budget.
     * 
     */
    @Import(name="amount")
    private @Nullable Output amount;

    /**
     * @return The total amount of cost to track with the budget.
     * 
     */
    public Optional> amount() {
        return Optional.ofNullable(this.amount);
    }

    /**
     * (Optional) The ETag of the Subscription Consumption Budget.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return (Optional) The ETag of the Subscription Consumption Budget.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * A `filter` block as defined below.
     * 
     */
    @Import(name="filter")
    private @Nullable Output filter;

    /**
     * @return A `filter` block as defined below.
     * 
     */
    public Optional> filter() {
        return Optional.ofNullable(this.filter);
    }

    /**
     * The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * One or more `notification` blocks as defined below.
     * 
     */
    @Import(name="notifications")
    private @Nullable Output> notifications;

    /**
     * @return One or more `notification` blocks as defined below.
     * 
     */
    public Optional>> notifications() {
        return Optional.ofNullable(this.notifications);
    }

    /**
     * The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** The `subscription_id` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
     * 
     */
    @Import(name="subscriptionId")
    private @Nullable Output subscriptionId;

    /**
     * @return The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** The `subscription_id` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
     * 
     */
    public Optional> subscriptionId() {
        return Optional.ofNullable(this.subscriptionId);
    }

    /**
     * The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="timeGrain")
    private @Nullable Output timeGrain;

    /**
     * @return The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> timeGrain() {
        return Optional.ofNullable(this.timeGrain);
    }

    /**
     * A `time_period` block as defined below.
     * 
     */
    @Import(name="timePeriod")
    private @Nullable Output timePeriod;

    /**
     * @return A `time_period` block as defined below.
     * 
     */
    public Optional> timePeriod() {
        return Optional.ofNullable(this.timePeriod);
    }

    private BudgetSubscriptionState() {}

    private BudgetSubscriptionState(BudgetSubscriptionState $) {
        this.amount = $.amount;
        this.etag = $.etag;
        this.filter = $.filter;
        this.name = $.name;
        this.notifications = $.notifications;
        this.subscriptionId = $.subscriptionId;
        this.timeGrain = $.timeGrain;
        this.timePeriod = $.timePeriod;
    }

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

    public static final class Builder {
        private BudgetSubscriptionState $;

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

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

        /**
         * @param amount The total amount of cost to track with the budget.
         * 
         * @return builder
         * 
         */
        public Builder amount(@Nullable Output amount) {
            $.amount = amount;
            return this;
        }

        /**
         * @param amount The total amount of cost to track with the budget.
         * 
         * @return builder
         * 
         */
        public Builder amount(Double amount) {
            return amount(Output.of(amount));
        }

        /**
         * @param etag (Optional) The ETag of the Subscription Consumption Budget.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag (Optional) The ETag of the Subscription Consumption Budget.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @param filter A `filter` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder filter(@Nullable Output filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param filter A `filter` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder filter(BudgetSubscriptionFilterArgs filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param name The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Subscription Consumption Budget. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param notifications One or more `notification` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notifications(@Nullable Output> notifications) {
            $.notifications = notifications;
            return this;
        }

        /**
         * @param notifications One or more `notification` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notifications(List notifications) {
            return notifications(Output.of(notifications));
        }

        /**
         * @param notifications One or more `notification` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder notifications(BudgetSubscriptionNotificationArgs... notifications) {
            return notifications(List.of(notifications));
        }

        /**
         * @param subscriptionId The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** The `subscription_id` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(@Nullable Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId The ID of the Subscription for which to create a Consumption Budget. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** The `subscription_id` property can accept a subscription ID e.g. `00000000-0000-0000-0000-000000000000` or the subscription resource ID e.g. `/subscriptions/00000000-0000-0000-0000-000000000000`. In version 3.0 this property will only accept the subscription resource ID.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

        /**
         * @param timeGrain The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder timeGrain(@Nullable Output timeGrain) {
            $.timeGrain = timeGrain;
            return this;
        }

        /**
         * @param timeGrain The time covered by a budget. Tracking of the amount will be reset based on the time grain. Must be one of `BillingAnnual`, `BillingMonth`, `BillingQuarter`, `Annually`, `Monthly` and `Quarterly`. Defaults to `Monthly`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder timeGrain(String timeGrain) {
            return timeGrain(Output.of(timeGrain));
        }

        /**
         * @param timePeriod A `time_period` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder timePeriod(@Nullable Output timePeriod) {
            $.timePeriod = timePeriod;
            return this;
        }

        /**
         * @param timePeriod A `time_period` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder timePeriod(BudgetSubscriptionTimePeriodArgs timePeriod) {
            return timePeriod(Output.of(timePeriod));
        }

        public BudgetSubscriptionState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy