com.pulumi.azurenative.web.kotlin.inputs.DaprComponentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.DaprComponentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Dapr component configuration
* @property metadata Component metadata
* @property name Component name
* @property type Component type
* @property version Component version
*/
public data class DaprComponentArgs(
public val metadata: Output>? = null,
public val name: Output? = null,
public val type: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.DaprComponentArgs =
com.pulumi.azurenative.web.inputs.DaprComponentArgs.builder()
.metadata(
metadata?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DaprComponentArgs].
*/
@PulumiTagMarker
public class DaprComponentArgsBuilder internal constructor() {
private var metadata: Output>? = null
private var name: Output? = null
private var type: Output? = null
private var version: Output? = null
/**
* @param value Component metadata
*/
@JvmName("ehaugwjcvlujwwex")
public suspend fun metadata(`value`: Output>) {
this.metadata = value
}
@JvmName("robxgcbtgkbijftv")
public suspend fun metadata(vararg values: Output) {
this.metadata = Output.all(values.asList())
}
/**
* @param values Component metadata
*/
@JvmName("dfbvviemvbmikcfo")
public suspend fun metadata(values: List