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

com.pulumi.azure.consumption.BudgetResourceGroupArgs 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;

import com.pulumi.azure.consumption.inputs.BudgetResourceGroupFilterArgs;
import com.pulumi.azure.consumption.inputs.BudgetResourceGroupNotificationArgs;
import com.pulumi.azure.consumption.inputs.BudgetResourceGroupTimePeriodArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 BudgetResourceGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final BudgetResourceGroupArgs Empty = new BudgetResourceGroupArgs();

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

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

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

    /**
     * @return (Optional) The ETag of the Resource Group 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 Resource Group Consumption Budget. Changing this forces a new Resource Group Consumption Budget to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

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

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

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

    /**
     * The ID of the Resource Group to create the consumption budget for in the form of /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1. Changing this forces a new Resource Group Consumption Budget to be created.
     * 
     */
    @Import(name="resourceGroupId", required=true)
    private Output resourceGroupId;

    /**
     * @return The ID of the Resource Group to create the consumption budget for in the form of /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1. Changing this forces a new Resource Group Consumption Budget to be created.
     * 
     */
    public Output resourceGroupId() {
        return this.resourceGroupId;
    }

    /**
     * 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", required=true)
    private Output timePeriod;

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

    private BudgetResourceGroupArgs() {}

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

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

    public static final class Builder {
        private BudgetResourceGroupArgs $;

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

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

        /**
         * @param amount The total amount of cost to track with the budget.
         * 
         * @return builder
         * 
         */
        public Builder amount(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 Resource Group Consumption Budget
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag (Optional) The ETag of the Resource Group 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(BudgetResourceGroupFilterArgs filter) {
            return filter(Output.of(filter));
        }

        /**
         * @param name The name which should be used for this Resource Group Consumption Budget. Changing this forces a new Resource Group Consumption Budget 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 Resource Group Consumption Budget. Changing this forces a new Resource Group Consumption Budget 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(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(BudgetResourceGroupNotificationArgs... notifications) {
            return notifications(List.of(notifications));
        }

        /**
         * @param resourceGroupId The ID of the Resource Group to create the consumption budget for in the form of /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1. Changing this forces a new Resource Group Consumption Budget to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(Output resourceGroupId) {
            $.resourceGroupId = resourceGroupId;
            return this;
        }

        /**
         * @param resourceGroupId The ID of the Resource Group to create the consumption budget for in the form of /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1. Changing this forces a new Resource Group Consumption Budget to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(String resourceGroupId) {
            return resourceGroupId(Output.of(resourceGroupId));
        }

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

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

        public BudgetResourceGroupArgs build() {
            if ($.amount == null) {
                throw new MissingRequiredPropertyException("BudgetResourceGroupArgs", "amount");
            }
            if ($.notifications == null) {
                throw new MissingRequiredPropertyException("BudgetResourceGroupArgs", "notifications");
            }
            if ($.resourceGroupId == null) {
                throw new MissingRequiredPropertyException("BudgetResourceGroupArgs", "resourceGroupId");
            }
            if ($.timePeriod == null) {
                throw new MissingRequiredPropertyException("BudgetResourceGroupArgs", "timePeriod");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy