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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentDataConfigurationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property identifiers A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
 * @property model The name of the data model to use to bind data to a component.
 * @property predicate Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.
 * @property sort Describes how to sort the component's properties.
 */
public data class ComponentDataConfigurationArgs(
    public val identifiers: Output>? = null,
    public val model: Output,
    public val predicate: Output? = null,
    public val sort: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentDataConfigurationArgs = com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentDataConfigurationArgs.builder()
        .identifiers(identifiers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .model(model.applyValue({ args0 -> args0 }))
        .predicate(predicate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .sort(
            sort?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

/**
 * Builder for [ComponentDataConfigurationArgs].
 */
@PulumiTagMarker
public class ComponentDataConfigurationArgsBuilder internal constructor() {
    private var identifiers: Output>? = null

    private var model: Output? = null

    private var predicate: Output? = null

    private var sort: Output>? = null

    /**
     * @param value A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
     */
    @JvmName("cujfvkjqekasyqdu")
    public suspend fun identifiers(`value`: Output>) {
        this.identifiers = value
    }

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

    /**
     * @param values A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
     */
    @JvmName("hbjdkucxgjacygwr")
    public suspend fun identifiers(values: List>) {
        this.identifiers = Output.all(values)
    }

    /**
     * @param value The name of the data model to use to bind data to a component.
     */
    @JvmName("ubmqrsrjkvllajfi")
    public suspend fun model(`value`: Output) {
        this.model = value
    }

    /**
     * @param value Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.
     */
    @JvmName("coqctmwlflduslrb")
    public suspend fun predicate(`value`: Output) {
        this.predicate = value
    }

    /**
     * @param value Describes how to sort the component's properties.
     */
    @JvmName("rgripjtwkonmrqrc")
    public suspend fun sort(`value`: Output>) {
        this.sort = value
    }

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

    /**
     * @param values Describes how to sort the component's properties.
     */
    @JvmName("hmiovesiwsuntbom")
    public suspend fun sort(values: List>) {
        this.sort = Output.all(values)
    }

    /**
     * @param value A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
     */
    @JvmName("utetdwjiiydyijtk")
    public suspend fun identifiers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifiers = mapped
    }

    /**
     * @param values A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
     */
    @JvmName("wsvfnynnsqmxxtvi")
    public suspend fun identifiers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identifiers = mapped
    }

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

    /**
     * @param value Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.
     */
    @JvmName("goljsbbmbbmithvg")
    public suspend fun predicate(`value`: ComponentPredicateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.predicate = mapped
    }

    /**
     * @param argument Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.
     */
    @JvmName("exvtwsrncsudvhar")
    public suspend fun predicate(argument: suspend ComponentPredicateArgsBuilder.() -> Unit) {
        val toBeMapped = ComponentPredicateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.predicate = mapped
    }

    /**
     * @param value Describes how to sort the component's properties.
     */
    @JvmName("ewjhgllewkmtoggu")
    public suspend fun sort(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sort = mapped
    }

    /**
     * @param argument Describes how to sort the component's properties.
     */
    @JvmName("idtceebupqtbmeyw")
    public suspend fun sort(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ComponentSortPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sort = mapped
    }

    /**
     * @param argument Describes how to sort the component's properties.
     */
    @JvmName("bfkxyugujuickljf")
    public suspend fun sort(vararg argument: suspend ComponentSortPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ComponentSortPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sort = mapped
    }

    /**
     * @param argument Describes how to sort the component's properties.
     */
    @JvmName("ggdxrecrcwmnaolb")
    public suspend fun sort(argument: suspend ComponentSortPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ComponentSortPropertyArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sort = mapped
    }

    /**
     * @param values Describes how to sort the component's properties.
     */
    @JvmName("lqsdrdqgqmxdasvc")
    public suspend fun sort(vararg values: ComponentSortPropertyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sort = mapped
    }

    internal fun build(): ComponentDataConfigurationArgs = ComponentDataConfigurationArgs(
        identifiers = identifiers,
        model = model ?: throw PulumiNullFieldException("model"),
        predicate = predicate,
        sort = sort,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy