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

com.pulumi.azurenative.eventhub.kotlin.inputs.ClusterSkuArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.eventhub.kotlin.inputs

import com.pulumi.azurenative.eventhub.inputs.ClusterSkuArgs.builder
import com.pulumi.azurenative.eventhub.kotlin.enums.ClusterSkuName
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * SKU parameters particular to a cluster instance.
 * @property capacity The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
 * @property name Name of this SKU.
 */
public data class ClusterSkuArgs(
    public val capacity: Output? = null,
    public val name: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventhub.inputs.ClusterSkuArgs =
        com.pulumi.azurenative.eventhub.inputs.ClusterSkuArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0 }))
            .name(
                name.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClusterSkuArgs].
 */
@PulumiTagMarker
public class ClusterSkuArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var name: Output>? = null

    /**
     * @param value The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
     */
    @JvmName("atnjamtsnirieqvf")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value Name of this SKU.
     */
    @JvmName("guxhdbdmldmbltph")
    public suspend fun name(`value`: Output>) {
        this.name = value
    }

    /**
     * @param value The quantity of Event Hubs Cluster Capacity Units contained in this cluster.
     */
    @JvmName("twhgpkvmhiwgigdo")
    public suspend fun capacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param value Name of this SKU.
     */
    @JvmName("cinbymknfeephltk")
    public suspend fun name(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

    /**
     * @param value Name of this SKU.
     */
    @JvmName("uqxntsgqvtmqubwe")
    public fun name(`value`: ClusterSkuName) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ClusterSkuArgs = ClusterSkuArgs(
        capacity = capacity,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy