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

com.pulumi.aws.autoscaling.outputs.PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery 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.outputs;

import com.pulumi.aws.autoscaling.outputs.PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery {
    /**
     * @return Math expression used on the returned metric. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    private @Nullable String expression;
    /**
     * @return Short name for the metric used in predictive scaling policy.
     * 
     */
    private String id;
    /**
     * @return Human-readable label for this metric or expression.
     * 
     */
    private @Nullable String label;
    /**
     * @return Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat;
    /**
     * @return Boolean that indicates whether to return the timestamps and raw data values of this metric, the default is true
     * 
     */
    private @Nullable Boolean returnData;

    private PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery() {}
    /**
     * @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);
    }
    /**
     * @return Short name for the metric used in predictive scaling policy.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Human-readable label for this metric or expression.
     * 
     */
    public Optional label() {
        return Optional.ofNullable(this.label);
    }
    /**
     * @return Structure that defines CloudWatch metric to be used in predictive scaling policy. You must specify either `expression` or `metric_stat`, but not both.
     * 
     */
    public Optional metricStat() {
        return Optional.ofNullable(this.metricStat);
    }
    /**
     * @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);
    }

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

    public static Builder builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String expression;
        private String id;
        private @Nullable String label;
        private @Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat;
        private @Nullable Boolean returnData;
        public Builder() {}
        public Builder(PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.expression = defaults.expression;
    	      this.id = defaults.id;
    	      this.label = defaults.label;
    	      this.metricStat = defaults.metricStat;
    	      this.returnData = defaults.returnData;
        }

        @CustomType.Setter
        public Builder expression(@Nullable String expression) {

            this.expression = expression;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder label(@Nullable String label) {

            this.label = label;
            return this;
        }
        @CustomType.Setter
        public Builder metricStat(@Nullable PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQueryMetricStat metricStat) {

            this.metricStat = metricStat;
            return this;
        }
        @CustomType.Setter
        public Builder returnData(@Nullable Boolean returnData) {

            this.returnData = returnData;
            return this;
        }
        public PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery build() {
            final var _resultValue = new PolicyPredictiveScalingConfigurationMetricSpecificationCustomizedCapacityMetricSpecificationMetricDataQuery();
            _resultValue.expression = expression;
            _resultValue.id = id;
            _resultValue.label = label;
            _resultValue.metricStat = metricStat;
            _resultValue.returnData = returnData;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy