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

com.pulumi.aws.cloudwatch.inputs.MetricStreamStatisticsConfigurationArgs 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.cloudwatch.inputs;

import com.pulumi.aws.cloudwatch.inputs.MetricStreamStatisticsConfigurationIncludeMetricArgs;
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;


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

    public static final MetricStreamStatisticsConfigurationArgs Empty = new MetricStreamStatisticsConfigurationArgs();

    /**
     * The additional statistics to stream for the metrics listed in `include_metrics`.
     * 
     */
    @Import(name="additionalStatistics", required=true)
    private Output> additionalStatistics;

    /**
     * @return The additional statistics to stream for the metrics listed in `include_metrics`.
     * 
     */
    public Output> additionalStatistics() {
        return this.additionalStatistics;
    }

    /**
     * An array that defines the metrics that are to have additional statistics streamed. See details below.
     * 
     */
    @Import(name="includeMetrics", required=true)
    private Output> includeMetrics;

    /**
     * @return An array that defines the metrics that are to have additional statistics streamed. See details below.
     * 
     */
    public Output> includeMetrics() {
        return this.includeMetrics;
    }

    private MetricStreamStatisticsConfigurationArgs() {}

    private MetricStreamStatisticsConfigurationArgs(MetricStreamStatisticsConfigurationArgs $) {
        this.additionalStatistics = $.additionalStatistics;
        this.includeMetrics = $.includeMetrics;
    }

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

    public static final class Builder {
        private MetricStreamStatisticsConfigurationArgs $;

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

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

        /**
         * @param additionalStatistics The additional statistics to stream for the metrics listed in `include_metrics`.
         * 
         * @return builder
         * 
         */
        public Builder additionalStatistics(Output> additionalStatistics) {
            $.additionalStatistics = additionalStatistics;
            return this;
        }

        /**
         * @param additionalStatistics The additional statistics to stream for the metrics listed in `include_metrics`.
         * 
         * @return builder
         * 
         */
        public Builder additionalStatistics(List additionalStatistics) {
            return additionalStatistics(Output.of(additionalStatistics));
        }

        /**
         * @param additionalStatistics The additional statistics to stream for the metrics listed in `include_metrics`.
         * 
         * @return builder
         * 
         */
        public Builder additionalStatistics(String... additionalStatistics) {
            return additionalStatistics(List.of(additionalStatistics));
        }

        /**
         * @param includeMetrics An array that defines the metrics that are to have additional statistics streamed. See details below.
         * 
         * @return builder
         * 
         */
        public Builder includeMetrics(Output> includeMetrics) {
            $.includeMetrics = includeMetrics;
            return this;
        }

        /**
         * @param includeMetrics An array that defines the metrics that are to have additional statistics streamed. See details below.
         * 
         * @return builder
         * 
         */
        public Builder includeMetrics(List includeMetrics) {
            return includeMetrics(Output.of(includeMetrics));
        }

        /**
         * @param includeMetrics An array that defines the metrics that are to have additional statistics streamed. See details below.
         * 
         * @return builder
         * 
         */
        public Builder includeMetrics(MetricStreamStatisticsConfigurationIncludeMetricArgs... includeMetrics) {
            return includeMetrics(List.of(includeMetrics));
        }

        public MetricStreamStatisticsConfigurationArgs build() {
            if ($.additionalStatistics == null) {
                throw new MissingRequiredPropertyException("MetricStreamStatisticsConfigurationArgs", "additionalStatistics");
            }
            if ($.includeMetrics == null) {
                throw new MissingRequiredPropertyException("MetricStreamStatisticsConfigurationArgs", "includeMetrics");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy