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

com.pulumi.aws.autoscaling.inputs.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs 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.PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs Empty = new PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs();

    /**
     * Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
     * 
     */
    @Import(name="metric", required=true)
    private Output metric;

    /**
     * @return Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
     * 
     */
    public Output metric() {
        return this.metric;
    }

    /**
     * Statistic of the metrics to return.
     * 
     */
    @Import(name="stat", required=true)
    private Output stat;

    /**
     * @return Statistic of the metrics to return.
     * 
     */
    public Output stat() {
        return this.stat;
    }

    /**
     * Unit of the metrics to return.
     * 
     */
    @Import(name="unit")
    private @Nullable Output unit;

    /**
     * @return Unit of the metrics to return.
     * 
     */
    public Optional> unit() {
        return Optional.ofNullable(this.unit);
    }

    private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs() {}

    private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs(PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs $) {
        this.metric = $.metric;
        this.stat = $.stat;
        this.unit = $.unit;
    }

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

    public static final class Builder {
        private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs $;

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

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

        /**
         * @param metric Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
         * 
         * @return builder
         * 
         */
        public Builder metric(Output metric) {
            $.metric = metric;
            return this;
        }

        /**
         * @param metric Structure that defines the CloudWatch metric to return, including the metric name, namespace, and dimensions.
         * 
         * @return builder
         * 
         */
        public Builder metric(PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatMetricArgs metric) {
            return metric(Output.of(metric));
        }

        /**
         * @param stat Statistic of the metrics to return.
         * 
         * @return builder
         * 
         */
        public Builder stat(Output stat) {
            $.stat = stat;
            return this;
        }

        /**
         * @param stat Statistic of the metrics to return.
         * 
         * @return builder
         * 
         */
        public Builder stat(String stat) {
            return stat(Output.of(stat));
        }

        /**
         * @param unit Unit of the metrics to return.
         * 
         * @return builder
         * 
         */
        public Builder unit(@Nullable Output unit) {
            $.unit = unit;
            return this;
        }

        /**
         * @param unit Unit of the metrics to return.
         * 
         * @return builder
         * 
         */
        public Builder unit(String unit) {
            return unit(Output.of(unit));
        }

        public PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs build() {
            if ($.metric == null) {
                throw new MissingRequiredPropertyException("PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs", "metric");
            }
            if ($.stat == null) {
                throw new MissingRequiredPropertyException("PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs", "stat");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy