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

com.pulumi.azurenative.awsconnector.inputs.MetricArgs 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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.DimensionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of Metric
 * 
 */
public final class MetricArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetricArgs Empty = new MetricArgs();

    /**
     * The metric dimensions that you want to be used for the metric that the alarm will watch.
     * 
     */
    @Import(name="dimensions")
    private @Nullable Output> dimensions;

    /**
     * @return The metric dimensions that you want to be used for the metric that the alarm will watch.
     * 
     */
    public Optional>> dimensions() {
        return Optional.ofNullable(this.dimensions);
    }

    /**
     * The name of the metric that you want the alarm to watch. This is a required field.
     * 
     */
    @Import(name="metricName")
    private @Nullable Output metricName;

    /**
     * @return The name of the metric that you want the alarm to watch. This is a required field.
     * 
     */
    public Optional> metricName() {
        return Optional.ofNullable(this.metricName);
    }

    /**
     * The namespace of the metric that the alarm will watch.
     * 
     */
    @Import(name="namespace")
    private @Nullable Output namespace;

    /**
     * @return The namespace of the metric that the alarm will watch.
     * 
     */
    public Optional> namespace() {
        return Optional.ofNullable(this.namespace);
    }

    private MetricArgs() {}

    private MetricArgs(MetricArgs $) {
        this.dimensions = $.dimensions;
        this.metricName = $.metricName;
        this.namespace = $.namespace;
    }

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

    public static final class Builder {
        private MetricArgs $;

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

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

        /**
         * @param dimensions The metric dimensions that you want to be used for the metric that the alarm will watch.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(@Nullable Output> dimensions) {
            $.dimensions = dimensions;
            return this;
        }

        /**
         * @param dimensions The metric dimensions that you want to be used for the metric that the alarm will watch.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(List dimensions) {
            return dimensions(Output.of(dimensions));
        }

        /**
         * @param dimensions The metric dimensions that you want to be used for the metric that the alarm will watch.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(DimensionArgs... dimensions) {
            return dimensions(List.of(dimensions));
        }

        /**
         * @param metricName The name of the metric that you want the alarm to watch. This is a required field.
         * 
         * @return builder
         * 
         */
        public Builder metricName(@Nullable Output metricName) {
            $.metricName = metricName;
            return this;
        }

        /**
         * @param metricName The name of the metric that you want the alarm to watch. This is a required field.
         * 
         * @return builder
         * 
         */
        public Builder metricName(String metricName) {
            return metricName(Output.of(metricName));
        }

        /**
         * @param namespace The namespace of the metric that the alarm will watch.
         * 
         * @return builder
         * 
         */
        public Builder namespace(@Nullable Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace The namespace of the metric that the alarm will watch.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        public MetricArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy