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

com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.ComponentPropertyBindingPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs

import com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentPropertyBindingPropertiesArgs.builder
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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property field The data field to bind the property to.
 * @property property The component property to bind to the data field.
 */
public data class ComponentPropertyBindingPropertiesArgs(
    public val `field`: Output? = null,
    public val `property`: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentPropertyBindingPropertiesArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentPropertyBindingPropertiesArgs.builder()
            .`field`(`field`?.applyValue({ args0 -> args0 }))
            .`property`(`property`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ComponentPropertyBindingPropertiesArgs].
 */
@PulumiTagMarker
public class ComponentPropertyBindingPropertiesArgsBuilder internal constructor() {
    private var `field`: Output? = null

    private var `property`: Output? = null

    /**
     * @param value The data field to bind the property to.
     */
    @JvmName("toefiqulnaacvaye")
    public suspend fun `field`(`value`: Output) {
        this.`field` = value
    }

    /**
     * @param value The component property to bind to the data field.
     */
    @JvmName("brtykaflxxaosdna")
    public suspend fun `property`(`value`: Output) {
        this.`property` = value
    }

    /**
     * @param value The data field to bind the property to.
     */
    @JvmName("ofckgrnstjsgeavv")
    public suspend fun `field`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`field` = mapped
    }

    /**
     * @param value The component property to bind to the data field.
     */
    @JvmName("bmgcyguvleomwvas")
    public suspend fun `property`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`property` = mapped
    }

    internal fun build(): ComponentPropertyBindingPropertiesArgs =
        ComponentPropertyBindingPropertiesArgs(
            `field` = `field`,
            `property` = `property` ?: throw PulumiNullFieldException("property"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy