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

com.pulumi.aws.autoscaling.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs 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.66.3
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.autoscaling.inputs;

import com.pulumi.aws.autoscaling.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs Empty = new PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs();

    /**
     * Dimensions of the metric.
     * 
     */
    @Import(name="dimensions")
    private @Nullable Output> dimensions;

    /**
     * @return Dimensions of the metric.
     * 
     */
    public Optional>> dimensions() {
        return Optional.ofNullable(this.dimensions);
    }

    /**
     * Name of the metric.
     * 
     */
    @Import(name="metricName", required=true)
    private Output metricName;

    /**
     * @return Name of the metric.
     * 
     */
    public Output metricName() {
        return this.metricName;
    }

    /**
     * Namespace of the metric.
     * 
     */
    @Import(name="namespace", required=true)
    private Output namespace;

    /**
     * @return Namespace of the metric.
     * 
     */
    public Output namespace() {
        return this.namespace;
    }

    private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs() {}

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

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

    public static final class Builder {
        private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs $;

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

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

        /**
         * @param dimensions Dimensions of the metric.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(@Nullable Output> dimensions) {
            $.dimensions = dimensions;
            return this;
        }

        /**
         * @param dimensions Dimensions of the metric.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(List dimensions) {
            return dimensions(Output.of(dimensions));
        }

        /**
         * @param dimensions Dimensions of the metric.
         * 
         * @return builder
         * 
         */
        public Builder dimensions(PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricDimensionArgs... dimensions) {
            return dimensions(List.of(dimensions));
        }

        /**
         * @param metricName Name of the metric.
         * 
         * @return builder
         * 
         */
        public Builder metricName(Output metricName) {
            $.metricName = metricName;
            return this;
        }

        /**
         * @param metricName Name of the metric.
         * 
         * @return builder
         * 
         */
        public Builder metricName(String metricName) {
            return metricName(Output.of(metricName));
        }

        /**
         * @param namespace Namespace of the metric.
         * 
         * @return builder
         * 
         */
        public Builder namespace(Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace Namespace of the metric.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        public PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs build() {
            if ($.metricName == null) {
                throw new MissingRequiredPropertyException("PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs", "metricName");
            }
            if ($.namespace == null) {
                throw new MissingRequiredPropertyException("PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs", "namespace");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy