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

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

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.consumption.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BudgetManagementGroupNotificationArgs Empty = new BudgetManagementGroupNotificationArgs();

    /**
     * Specifies a list of email addresses to send the budget notification to when the threshold is exceeded.
     * 
     */
    @Import(name="contactEmails", required=true)
    private Output> contactEmails;

    /**
     * @return Specifies a list of email addresses to send the budget notification to when the threshold is exceeded.
     * 
     */
    public Output> contactEmails() {
        return this.contactEmails;
    }

    /**
     * Should the notification be enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Should the notification be enabled? Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * The comparison operator for the notification. Must be one of `EqualTo`, `GreaterThan`, or `GreaterThanOrEqualTo`.
     * 
     */
    @Import(name="operator", required=true)
    private Output operator;

    /**
     * @return The comparison operator for the notification. Must be one of `EqualTo`, `GreaterThan`, or `GreaterThanOrEqualTo`.
     * 
     */
    public Output operator() {
        return this.operator;
    }

    /**
     * Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
     * 
     */
    @Import(name="threshold", required=true)
    private Output threshold;

    /**
     * @return Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
     * 
     */
    public Output threshold() {
        return this.threshold;
    }

    /**
     * The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="thresholdType")
    private @Nullable Output thresholdType;

    /**
     * @return The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> thresholdType() {
        return Optional.ofNullable(this.thresholdType);
    }

    private BudgetManagementGroupNotificationArgs() {}

    private BudgetManagementGroupNotificationArgs(BudgetManagementGroupNotificationArgs $) {
        this.contactEmails = $.contactEmails;
        this.enabled = $.enabled;
        this.operator = $.operator;
        this.threshold = $.threshold;
        this.thresholdType = $.thresholdType;
    }

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

    public static final class Builder {
        private BudgetManagementGroupNotificationArgs $;

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

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

        /**
         * @param contactEmails Specifies a list of email addresses to send the budget notification to when the threshold is exceeded.
         * 
         * @return builder
         * 
         */
        public Builder contactEmails(Output> contactEmails) {
            $.contactEmails = contactEmails;
            return this;
        }

        /**
         * @param contactEmails Specifies a list of email addresses to send the budget notification to when the threshold is exceeded.
         * 
         * @return builder
         * 
         */
        public Builder contactEmails(List contactEmails) {
            return contactEmails(Output.of(contactEmails));
        }

        /**
         * @param contactEmails Specifies a list of email addresses to send the budget notification to when the threshold is exceeded.
         * 
         * @return builder
         * 
         */
        public Builder contactEmails(String... contactEmails) {
            return contactEmails(List.of(contactEmails));
        }

        /**
         * @param enabled Should the notification be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should the notification be enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param operator The comparison operator for the notification. Must be one of `EqualTo`, `GreaterThan`, or `GreaterThanOrEqualTo`.
         * 
         * @return builder
         * 
         */
        public Builder operator(Output operator) {
            $.operator = operator;
            return this;
        }

        /**
         * @param operator The comparison operator for the notification. Must be one of `EqualTo`, `GreaterThan`, or `GreaterThanOrEqualTo`.
         * 
         * @return builder
         * 
         */
        public Builder operator(String operator) {
            return operator(Output.of(operator));
        }

        /**
         * @param threshold Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
         * 
         * @return builder
         * 
         */
        public Builder threshold(Output threshold) {
            $.threshold = threshold;
            return this;
        }

        /**
         * @param threshold Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
         * 
         * @return builder
         * 
         */
        public Builder threshold(Integer threshold) {
            return threshold(Output.of(threshold));
        }

        /**
         * @param thresholdType The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder thresholdType(@Nullable Output thresholdType) {
            $.thresholdType = thresholdType;
            return this;
        }

        /**
         * @param thresholdType The type of threshold for the notification. This determines whether the notification is triggered by forecasted costs or actual costs. The allowed values are `Actual` and `Forecasted`. Default is `Actual`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder thresholdType(String thresholdType) {
            return thresholdType(Output.of(thresholdType));
        }

        public BudgetManagementGroupNotificationArgs build() {
            if ($.contactEmails == null) {
                throw new MissingRequiredPropertyException("BudgetManagementGroupNotificationArgs", "contactEmails");
            }
            if ($.operator == null) {
                throw new MissingRequiredPropertyException("BudgetManagementGroupNotificationArgs", "operator");
            }
            if ($.threshold == null) {
                throw new MissingRequiredPropertyException("BudgetManagementGroupNotificationArgs", "threshold");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy