com.pulumi.awsnative.connect.kotlin.PredefinedAttributeArgs.kt Maven / Gradle / Ivy
@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("prpwtykdcumwqyyk")
public suspend fun instanceArn(`value`: Output) {
this.instanceArn = value
}
/**
* @param value The name of the predefined attribute.
*/
@JvmName("svgjqnkijjdcowui")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The values of a predefined attribute.
*/
@JvmName("jggdwyrvxufmlvsj")
public suspend fun values(`value`: Output) {
this.values = value
}
/**
* @param value The identifier of the Amazon Connect instance.
*/
@JvmName("airtespvsdxvclnk")
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("kmytmqaemovbvgbh")
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("wawnumfagfryaymm")
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("dhqfhskgemvsklcc")
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,
)
}