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

com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionState 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.costexplorer.inputs;

import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionSubscriberArgs;
import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AnomalySubscriptionState Empty = new AnomalySubscriptionState();

    /**
     * The unique identifier for the AWS account in which the anomaly subscription ought to be created.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The unique identifier for the AWS account in which the anomaly subscription ought to be created.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * ARN of the anomaly subscription.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return ARN of the anomaly subscription.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The frequency that anomaly reports are sent. Valid Values: `DAILY` | `IMMEDIATE` | `WEEKLY`.
     * 
     */
    @Import(name="frequency")
    private @Nullable Output frequency;

    /**
     * @return The frequency that anomaly reports are sent. Valid Values: `DAILY` | `IMMEDIATE` | `WEEKLY`.
     * 
     */
    public Optional> frequency() {
        return Optional.ofNullable(this.frequency);
    }

    /**
     * A list of cost anomaly monitors.
     * 
     */
    @Import(name="monitorArnLists")
    private @Nullable Output> monitorArnLists;

    /**
     * @return A list of cost anomaly monitors.
     * 
     */
    public Optional>> monitorArnLists() {
        return Optional.ofNullable(this.monitorArnLists);
    }

    /**
     * The name for the subscription.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name for the subscription.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A subscriber configuration. Multiple subscribers can be defined.
     * 
     */
    @Import(name="subscribers")
    private @Nullable Output> subscribers;

    /**
     * @return A subscriber configuration. Multiple subscribers can be defined.
     * 
     */
    public Optional>> subscribers() {
        return Optional.ofNullable(this.subscribers);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.
     * 
     */
    @Import(name="thresholdExpression")
    private @Nullable Output thresholdExpression;

    /**
     * @return An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.
     * 
     */
    public Optional> thresholdExpression() {
        return Optional.ofNullable(this.thresholdExpression);
    }

    private AnomalySubscriptionState() {}

    private AnomalySubscriptionState(AnomalySubscriptionState $) {
        this.accountId = $.accountId;
        this.arn = $.arn;
        this.frequency = $.frequency;
        this.monitorArnLists = $.monitorArnLists;
        this.name = $.name;
        this.subscribers = $.subscribers;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.thresholdExpression = $.thresholdExpression;
    }

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

    public static final class Builder {
        private AnomalySubscriptionState $;

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

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

        /**
         * @param accountId The unique identifier for the AWS account in which the anomaly subscription ought to be created.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The unique identifier for the AWS account in which the anomaly subscription ought to be created.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param arn ARN of the anomaly subscription.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn ARN of the anomaly subscription.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param frequency The frequency that anomaly reports are sent. Valid Values: `DAILY` | `IMMEDIATE` | `WEEKLY`.
         * 
         * @return builder
         * 
         */
        public Builder frequency(@Nullable Output frequency) {
            $.frequency = frequency;
            return this;
        }

        /**
         * @param frequency The frequency that anomaly reports are sent. Valid Values: `DAILY` | `IMMEDIATE` | `WEEKLY`.
         * 
         * @return builder
         * 
         */
        public Builder frequency(String frequency) {
            return frequency(Output.of(frequency));
        }

        /**
         * @param monitorArnLists A list of cost anomaly monitors.
         * 
         * @return builder
         * 
         */
        public Builder monitorArnLists(@Nullable Output> monitorArnLists) {
            $.monitorArnLists = monitorArnLists;
            return this;
        }

        /**
         * @param monitorArnLists A list of cost anomaly monitors.
         * 
         * @return builder
         * 
         */
        public Builder monitorArnLists(List monitorArnLists) {
            return monitorArnLists(Output.of(monitorArnLists));
        }

        /**
         * @param monitorArnLists A list of cost anomaly monitors.
         * 
         * @return builder
         * 
         */
        public Builder monitorArnLists(String... monitorArnLists) {
            return monitorArnLists(List.of(monitorArnLists));
        }

        /**
         * @param name The name for the subscription.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name for the subscription.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param subscribers A subscriber configuration. Multiple subscribers can be defined.
         * 
         * @return builder
         * 
         */
        public Builder subscribers(@Nullable Output> subscribers) {
            $.subscribers = subscribers;
            return this;
        }

        /**
         * @param subscribers A subscriber configuration. Multiple subscribers can be defined.
         * 
         * @return builder
         * 
         */
        public Builder subscribers(List subscribers) {
            return subscribers(Output.of(subscribers));
        }

        /**
         * @param subscribers A subscriber configuration. Multiple subscribers can be defined.
         * 
         * @return builder
         * 
         */
        public Builder subscribers(AnomalySubscriptionSubscriberArgs... subscribers) {
            return subscribers(List.of(subscribers));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param thresholdExpression An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.
         * 
         * @return builder
         * 
         */
        public Builder thresholdExpression(@Nullable Output thresholdExpression) {
            $.thresholdExpression = thresholdExpression;
            return this;
        }

        /**
         * @param thresholdExpression An Expression object used to specify the anomalies that you want to generate alerts for. See Threshold Expression.
         * 
         * @return builder
         * 
         */
        public Builder thresholdExpression(AnomalySubscriptionThresholdExpressionArgs thresholdExpression) {
            return thresholdExpression(Output.of(thresholdExpression));
        }

        public AnomalySubscriptionState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy