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

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

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


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

    public static final AnomalyMonitorArgs Empty = new AnomalyMonitorArgs();

    /**
     * The dimensions to evaluate. Valid values: `SERVICE`.
     * 
     */
    @Import(name="monitorDimension")
    private @Nullable Output monitorDimension;

    /**
     * @return The dimensions to evaluate. Valid values: `SERVICE`.
     * 
     */
    public Optional> monitorDimension() {
        return Optional.ofNullable(this.monitorDimension);
    }

    /**
     * A valid JSON representation for the [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) object.
     * 
     */
    @Import(name="monitorSpecification")
    private @Nullable Output monitorSpecification;

    /**
     * @return A valid JSON representation for the [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) object.
     * 
     */
    public Optional> monitorSpecification() {
        return Optional.ofNullable(this.monitorSpecification);
    }

    /**
     * The possible type values. Valid values: `DIMENSIONAL` | `CUSTOM`.
     * 
     */
    @Import(name="monitorType", required=true)
    private Output monitorType;

    /**
     * @return The possible type values. Valid values: `DIMENSIONAL` | `CUSTOM`.
     * 
     */
    public Output monitorType() {
        return this.monitorType;
    }

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

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

    /**
     * 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);
    }

    private AnomalyMonitorArgs() {}

    private AnomalyMonitorArgs(AnomalyMonitorArgs $) {
        this.monitorDimension = $.monitorDimension;
        this.monitorSpecification = $.monitorSpecification;
        this.monitorType = $.monitorType;
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private AnomalyMonitorArgs $;

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

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

        /**
         * @param monitorDimension The dimensions to evaluate. Valid values: `SERVICE`.
         * 
         * @return builder
         * 
         */
        public Builder monitorDimension(@Nullable Output monitorDimension) {
            $.monitorDimension = monitorDimension;
            return this;
        }

        /**
         * @param monitorDimension The dimensions to evaluate. Valid values: `SERVICE`.
         * 
         * @return builder
         * 
         */
        public Builder monitorDimension(String monitorDimension) {
            return monitorDimension(Output.of(monitorDimension));
        }

        /**
         * @param monitorSpecification A valid JSON representation for the [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) object.
         * 
         * @return builder
         * 
         */
        public Builder monitorSpecification(@Nullable Output monitorSpecification) {
            $.monitorSpecification = monitorSpecification;
            return this;
        }

        /**
         * @param monitorSpecification A valid JSON representation for the [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) object.
         * 
         * @return builder
         * 
         */
        public Builder monitorSpecification(String monitorSpecification) {
            return monitorSpecification(Output.of(monitorSpecification));
        }

        /**
         * @param monitorType The possible type values. Valid values: `DIMENSIONAL` | `CUSTOM`.
         * 
         * @return builder
         * 
         */
        public Builder monitorType(Output monitorType) {
            $.monitorType = monitorType;
            return this;
        }

        /**
         * @param monitorType The possible type values. Valid values: `DIMENSIONAL` | `CUSTOM`.
         * 
         * @return builder
         * 
         */
        public Builder monitorType(String monitorType) {
            return monitorType(Output.of(monitorType));
        }

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

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

        /**
         * @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));
        }

        public AnomalyMonitorArgs build() {
            if ($.monitorType == null) {
                throw new MissingRequiredPropertyException("AnomalyMonitorArgs", "monitorType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy