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

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

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

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

import com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentBindingPropertiesValuePropertiesArgs.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

/**
 *
 * @property bucket An Amazon S3 bucket.
 * @property defaultValue The default value to assign to the property.
 * @property field The field to bind the data to.
 * @property key The storage key for an Amazon S3 bucket.
 * @property model An Amplify DataStore model.
 * @property predicates A list of predicates for binding a component's properties to data.
 * @property slotName The name of a component slot.
 * @property userAttribute An authenticated user attribute.
 */
public data class ComponentBindingPropertiesValuePropertiesArgs(
    public val bucket: Output? = null,
    public val defaultValue: Output? = null,
    public val `field`: Output? = null,
    public val key: Output? = null,
    public val model: Output? = null,
    public val predicates: Output>? = null,
    public val slotName: Output? = null,
    public val userAttribute: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentBindingPropertiesValuePropertiesArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentBindingPropertiesValuePropertiesArgs.builder()
            .bucket(bucket?.applyValue({ args0 -> args0 }))
            .defaultValue(defaultValue?.applyValue({ args0 -> args0 }))
            .`field`(`field`?.applyValue({ args0 -> args0 }))
            .key(key?.applyValue({ args0 -> args0 }))
            .model(model?.applyValue({ args0 -> args0 }))
            .predicates(
                predicates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .slotName(slotName?.applyValue({ args0 -> args0 }))
            .userAttribute(userAttribute?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ComponentBindingPropertiesValuePropertiesArgs].
 */
@PulumiTagMarker
public class ComponentBindingPropertiesValuePropertiesArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var defaultValue: Output? = null

    private var `field`: Output? = null

    private var key: Output? = null

    private var model: Output? = null

    private var predicates: Output>? = null

    private var slotName: Output? = null

    private var userAttribute: Output? = null

    /**
     * @param value An Amazon S3 bucket.
     */
    @JvmName("swsqlyujbbsyunya")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value The default value to assign to the property.
     */
    @JvmName("kibpgyxxmhcrfbqk")
    public suspend fun defaultValue(`value`: Output) {
        this.defaultValue = value
    }

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

    /**
     * @param value The storage key for an Amazon S3 bucket.
     */
    @JvmName("tivnojqkfggsunij")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value An Amplify DataStore model.
     */
    @JvmName("vibvdxmjelrhttvi")
    public suspend fun model(`value`: Output) {
        this.model = value
    }

    /**
     * @param value A list of predicates for binding a component's properties to data.
     */
    @JvmName("ftxjtpneydodjolw")
    public suspend fun predicates(`value`: Output>) {
        this.predicates = value
    }

    @JvmName("rsgmqwqwtfbkibko")
    public suspend fun predicates(vararg values: Output) {
        this.predicates = Output.all(values.asList())
    }

    /**
     * @param values A list of predicates for binding a component's properties to data.
     */
    @JvmName("ihxxkcuwxpjlnwgc")
    public suspend fun predicates(values: List>) {
        this.predicates = Output.all(values)
    }

    /**
     * @param value The name of a component slot.
     */
    @JvmName("etsmcxwgiuvjelcc")
    public suspend fun slotName(`value`: Output) {
        this.slotName = value
    }

    /**
     * @param value An authenticated user attribute.
     */
    @JvmName("lipbnssyhyahxjue")
    public suspend fun userAttribute(`value`: Output) {
        this.userAttribute = value
    }

    /**
     * @param value An Amazon S3 bucket.
     */
    @JvmName("utdadugxdqgnwduf")
    public suspend fun bucket(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

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

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

    /**
     * @param value The storage key for an Amazon S3 bucket.
     */
    @JvmName("asueicaqthgsxwea")
    public suspend fun key(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.key = mapped
    }

    /**
     * @param value An Amplify DataStore model.
     */
    @JvmName("kqhkwkiufacyeffi")
    public suspend fun model(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.model = mapped
    }

    /**
     * @param value A list of predicates for binding a component's properties to data.
     */
    @JvmName("ygtbbutbbqwecboc")
    public suspend fun predicates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.predicates = mapped
    }

    /**
     * @param argument A list of predicates for binding a component's properties to data.
     */
    @JvmName("gfxdwjfjppaepbbb")
    public suspend fun predicates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ComponentPredicateArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.predicates = mapped
    }

    /**
     * @param argument A list of predicates for binding a component's properties to data.
     */
    @JvmName("iffficvdsxkmxbkp")
    public suspend fun predicates(vararg argument: suspend ComponentPredicateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ComponentPredicateArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.predicates = mapped
    }

    /**
     * @param argument A list of predicates for binding a component's properties to data.
     */
    @JvmName("hlbfdivuttcbfuxa")
    public suspend fun predicates(argument: suspend ComponentPredicateArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ComponentPredicateArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.predicates = mapped
    }

    /**
     * @param values A list of predicates for binding a component's properties to data.
     */
    @JvmName("kompcknviwlnymig")
    public suspend fun predicates(vararg values: ComponentPredicateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.predicates = mapped
    }

    /**
     * @param value The name of a component slot.
     */
    @JvmName("rnwyryeeilrxwend")
    public suspend fun slotName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.slotName = mapped
    }

    /**
     * @param value An authenticated user attribute.
     */
    @JvmName("dyybimiskdmcbdak")
    public suspend fun userAttribute(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAttribute = mapped
    }

    internal fun build(): ComponentBindingPropertiesValuePropertiesArgs =
        ComponentBindingPropertiesValuePropertiesArgs(
            bucket = bucket,
            defaultValue = defaultValue,
            `field` = `field`,
            key = key,
            model = model,
            predicates = predicates,
            slotName = slotName,
            userAttribute = userAttribute,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy