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

com.pulumi.azurenative.network.kotlin.inputs.ExpressRouteCircuitSkuArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.ExpressRouteCircuitSkuArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ExpressRouteCircuitSkuFamily
import com.pulumi.azurenative.network.kotlin.enums.ExpressRouteCircuitSkuTier
import com.pulumi.core.Either
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

/**
 * Contains SKU in an ExpressRouteCircuit.
 * @property family The family of the SKU.
 * @property name The name of the SKU.
 * @property tier The tier of the SKU.
 */
public data class ExpressRouteCircuitSkuArgs(
    public val family: Output>? = null,
    public val name: Output? = null,
    public val tier: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ExpressRouteCircuitSkuArgs =
        com.pulumi.azurenative.network.inputs.ExpressRouteCircuitSkuArgs.builder()
            .family(
                family?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .tier(
                tier?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ExpressRouteCircuitSkuArgs].
 */
@PulumiTagMarker
public class ExpressRouteCircuitSkuArgsBuilder internal constructor() {
    private var family: Output>? = null

    private var name: Output? = null

    private var tier: Output>? = null

    /**
     * @param value The family of the SKU.
     */
    @JvmName("wvmtkubxootxrviq")
    public suspend fun family(`value`: Output>) {
        this.family = value
    }

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

    /**
     * @param value The tier of the SKU.
     */
    @JvmName("vdwjgcadsbtowgbh")
    public suspend fun tier(`value`: Output>) {
        this.tier = value
    }

    /**
     * @param value The family of the SKU.
     */
    @JvmName("mycgflemftgpghmi")
    public suspend fun family(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.family = mapped
    }

    /**
     * @param value The family of the SKU.
     */
    @JvmName("vpdgyikusnxcvupp")
    public fun family(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.family = mapped
    }

    /**
     * @param value The family of the SKU.
     */
    @JvmName("qpihewybcedjckvc")
    public fun family(`value`: ExpressRouteCircuitSkuFamily) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.family = mapped
    }

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

    /**
     * @param value The tier of the SKU.
     */
    @JvmName("ossqgyinuljldywn")
    public suspend fun tier(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value The tier of the SKU.
     */
    @JvmName("xqrtxrtmabqthlmr")
    public fun tier(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    /**
     * @param value The tier of the SKU.
     */
    @JvmName("amhthsghjwtcxlue")
    public fun tier(`value`: ExpressRouteCircuitSkuTier) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tier = mapped
    }

    internal fun build(): ExpressRouteCircuitSkuArgs = ExpressRouteCircuitSkuArgs(
        family = family,
        name = name,
        tier = tier,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy