com.pulumi.awsnative.connect.kotlin.PredefinedAttributeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.connect.kotlin
import com.pulumi.awsnative.connect.PredefinedAttributeArgs.builder
import com.pulumi.awsnative.connect.kotlin.inputs.ValuesPropertiesArgs
import com.pulumi.awsnative.connect.kotlin.inputs.ValuesPropertiesArgsBuilder
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.jvm.JvmName
/**
* Resource Type definition for AWS::Connect::PredefinedAttribute
* @property instanceArn The identifier of the Amazon Connect instance.
* @property name The name of the predefined attribute.
* @property values The values of a predefined attribute.
*/
public data class PredefinedAttributeArgs(
public val instanceArn: Output? = null,
public val name: Output? = null,
public val values: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.connect.PredefinedAttributeArgs =
com.pulumi.awsnative.connect.PredefinedAttributeArgs.builder()
.instanceArn(instanceArn?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.values(values?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [PredefinedAttributeArgs].
*/
@PulumiTagMarker
public class PredefinedAttributeArgsBuilder internal constructor() {
private var instanceArn: Output? = null
private var name: Output? = null
private var values: Output? = null
/**
* @param value The identifier of the Amazon Connect instance.
*/
@JvmName("flmfiyqmycwcjjkq")
public suspend fun instanceArn(`value`: Output) {
this.instanceArn = value
}
/**
* @param value The name of the predefined attribute.
*/
@JvmName("lelfskhrydaabfgx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The values of a predefined attribute.
*/
@JvmName("yugymntajwvaafkt")
public suspend fun values(`value`: Output) {
this.values = value
}
/**
* @param value The identifier of the Amazon Connect instance.
*/
@JvmName("opruxrmvexxpkxck")
public suspend fun instanceArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.instanceArn = mapped
}
/**
* @param value The name of the predefined attribute.
*/
@JvmName("lmjqbylsibfraidi")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The values of a predefined attribute.
*/
@JvmName("cgjicixicbinxaam")
public suspend fun values(`value`: ValuesPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.values = mapped
}
/**
* @param argument The values of a predefined attribute.
*/
@JvmName("aeeypfovjvacgatj")
public suspend fun values(argument: suspend ValuesPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = ValuesPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.values = mapped
}
internal fun build(): PredefinedAttributeArgs = PredefinedAttributeArgs(
instanceArn = instanceArn,
name = name,
values = values,
)
}