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

com.pulumi.awsnative.cloudwatch.kotlin.inputs.MetricStreamStatisticsMetricArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudwatch.kotlin.inputs

import com.pulumi.awsnative.cloudwatch.inputs.MetricStreamStatisticsMetricArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A structure that specifies the metric name and namespace for one metric that is going to have additional statistics included in the stream.
 * @property metricName The name of the metric.
 * @property namespace The namespace of the metric.
 */
public data class MetricStreamStatisticsMetricArgs(
    public val metricName: Output,
    public val namespace: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudwatch.inputs.MetricStreamStatisticsMetricArgs =
        com.pulumi.awsnative.cloudwatch.inputs.MetricStreamStatisticsMetricArgs.builder()
            .metricName(metricName.applyValue({ args0 -> args0 }))
            .namespace(namespace.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MetricStreamStatisticsMetricArgs].
 */
@PulumiTagMarker
public class MetricStreamStatisticsMetricArgsBuilder internal constructor() {
    private var metricName: Output? = null

    private var namespace: Output? = null

    /**
     * @param value The name of the metric.
     */
    @JvmName("ililssxexchkxcea")
    public suspend fun metricName(`value`: Output) {
        this.metricName = value
    }

    /**
     * @param value The namespace of the metric.
     */
    @JvmName("bshusujrfclvaeng")
    public suspend fun namespace(`value`: Output) {
        this.namespace = value
    }

    /**
     * @param value The name of the metric.
     */
    @JvmName("mrnjykxquvdfnbje")
    public suspend fun metricName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricName = mapped
    }

    /**
     * @param value The namespace of the metric.
     */
    @JvmName("gxstouiryjbpsgmb")
    public suspend fun namespace(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.namespace = mapped
    }

    internal fun build(): MetricStreamStatisticsMetricArgs = MetricStreamStatisticsMetricArgs(
        metricName = metricName ?: throw PulumiNullFieldException("metricName"),
        namespace = namespace ?: throw PulumiNullFieldException("namespace"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy