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

com.pulumi.awsnative.ec2.kotlin.NetworkPerformanceMetricSubscriptionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.NetworkPerformanceMetricSubscriptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::EC2::NetworkPerformanceMetricSubscription
 * @property destination The target Region or Availability Zone for the metric to subscribe to.
 * @property metric The metric type to subscribe to.
 * @property source The starting Region or Availability Zone for metric to subscribe to.
 * @property statistic The statistic to subscribe to.
 */
public data class NetworkPerformanceMetricSubscriptionArgs(
    public val destination: Output? = null,
    public val metric: Output? = null,
    public val source: Output? = null,
    public val statistic: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.NetworkPerformanceMetricSubscriptionArgs =
        com.pulumi.awsnative.ec2.NetworkPerformanceMetricSubscriptionArgs.builder()
            .destination(destination?.applyValue({ args0 -> args0 }))
            .metric(metric?.applyValue({ args0 -> args0 }))
            .source(source?.applyValue({ args0 -> args0 }))
            .statistic(statistic?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NetworkPerformanceMetricSubscriptionArgs].
 */
@PulumiTagMarker
public class NetworkPerformanceMetricSubscriptionArgsBuilder internal constructor() {
    private var destination: Output? = null

    private var metric: Output? = null

    private var source: Output? = null

    private var statistic: Output? = null

    /**
     * @param value The target Region or Availability Zone for the metric to subscribe to.
     */
    @JvmName("iqjgtminecndgxku")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value The metric type to subscribe to.
     */
    @JvmName("cooxcccmltrnklvn")
    public suspend fun metric(`value`: Output) {
        this.metric = value
    }

    /**
     * @param value The starting Region or Availability Zone for metric to subscribe to.
     */
    @JvmName("rbcdpriiglnycxvh")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The statistic to subscribe to.
     */
    @JvmName("tcfvotkwsmticmoh")
    public suspend fun statistic(`value`: Output) {
        this.statistic = value
    }

    /**
     * @param value The target Region or Availability Zone for the metric to subscribe to.
     */
    @JvmName("alcbrwnkpvuxekvh")
    public suspend fun destination(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param value The metric type to subscribe to.
     */
    @JvmName("wyqwveawvxwjmjwt")
    public suspend fun metric(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metric = mapped
    }

    /**
     * @param value The starting Region or Availability Zone for metric to subscribe to.
     */
    @JvmName("uptmapnvpmtqoaur")
    public suspend fun source(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param value The statistic to subscribe to.
     */
    @JvmName("pyuxewavbxpbpsyy")
    public suspend fun statistic(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statistic = mapped
    }

    internal fun build(): NetworkPerformanceMetricSubscriptionArgs =
        NetworkPerformanceMetricSubscriptionArgs(
            destination = destination,
            metric = metric,
            source = source,
            statistic = statistic,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy