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

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

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


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

    public static final PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricArgs Empty = new PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricArgs();

    /**
     * Math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    @Import(name="expression")
    private @Nullable Output expression;

    /**
     * @return Math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    public Optional> expression() {
        return Optional.ofNullable(this.expression);
    }

    /**
     * Short name for the metric used in target tracking scaling policy.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return Short name for the metric used in target tracking scaling policy.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * Human-readable label for this metric or expression.
     * 
     */
    @Import(name="label")
    private @Nullable Output label;

    /**
     * @return Human-readable label for this metric or expression.
     * 
     */
    public Optional> label() {
        return Optional.ofNullable(this.label);
    }

    /**
     * Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    @Import(name="metricStat")
    private @Nullable Output metricStat;

    /**
     * @return Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    public Optional> metricStat() {
        return Optional.ofNullable(this.metricStat);
    }

    /**
     * Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true
     * 
     */
    @Import(name="returnData")
    private @Nullable Output returnData;

    /**
     * @return Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true
     * 
     */
    public Optional> returnData() {
        return Optional.ofNullable(this.returnData);
    }

    private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricArgs() {}

    private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricArgs(PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricArgs $) {
        this.expression = $.expression;
        this.id = $.id;
        this.label = $.label;
        this.metricStat = $.metricStat;
        this.returnData = $.returnData;
    }

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

    public static final class Builder {
        private PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricArgs $;

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

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

        /**
         * @param expression Math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both.
         * 
         * @return builder
         * 
         */
        public Builder expression(@Nullable Output expression) {
            $.expression = expression;
            return this;
        }

        /**
         * @param expression Math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both.
         * 
         * @return builder
         * 
         */
        public Builder expression(String expression) {
            return expression(Output.of(expression));
        }

        /**
         * @param id Short name for the metric used in target tracking scaling policy.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Short name for the metric used in target tracking scaling policy.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param label Human-readable label for this metric or expression.
         * 
         * @return builder
         * 
         */
        public Builder label(@Nullable Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label Human-readable label for this metric or expression.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param metricStat Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either `expression` or `metric_stat`, but not both.
         * 
         * @return builder
         * 
         */
        public Builder metricStat(@Nullable Output metricStat) {
            $.metricStat = metricStat;
            return this;
        }

        /**
         * @param metricStat Structure that defines CloudWatch metric to be used in target tracking scaling policy. You must specify either `expression` or `metric_stat`, but not both.
         * 
         * @return builder
         * 
         */
        public Builder metricStat(PolicyTargetTrackingConfigurationCustomizedMetricSpecificationMetricMetricStatArgs metricStat) {
            return metricStat(Output.of(metricStat));
        }

        /**
         * @param returnData Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true
         * 
         * @return builder
         * 
         */
        public Builder returnData(@Nullable Output returnData) {
            $.returnData = returnData;
            return this;
        }

        /**
         * @param returnData Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true
         * 
         * @return builder
         * 
         */
        public Builder returnData(Boolean returnData) {
            return returnData(Output.of(returnData));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy