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

com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.ThemeValueArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.amplifyuibuilder.inputs.ThemeValueArgs.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 children A list of key-value pairs that define the theme's properties.
 * @property value The value of a theme property.
 */
public data class ThemeValueArgs(
    public val children: Output>? = null,
    public val `value`: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.ThemeValueArgs =
        com.pulumi.awsnative.amplifyuibuilder.inputs.ThemeValueArgs.builder()
            .children(
                children?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .`value`(`value`?.applyValue({ args0 -> args0 })).build()
}

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

    private var `value`: Output? = null

    /**
     * @param value A list of key-value pairs that define the theme's properties.
     */
    @JvmName("vffjrqcbobmpilxg")
    public suspend fun children(`value`: Output>) {
        this.children = value
    }

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

    /**
     * @param values A list of key-value pairs that define the theme's properties.
     */
    @JvmName("vpkcpbnaxsvjfvoa")
    public suspend fun children(values: List>) {
        this.children = Output.all(values)
    }

    /**
     * @param value The value of a theme property.
     */
    @JvmName("hblitqxntuyotsna")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value A list of key-value pairs that define the theme's properties.
     */
    @JvmName("mcqtplagalusodry")
    public suspend fun children(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.children = mapped
    }

    /**
     * @param argument A list of key-value pairs that define the theme's properties.
     */
    @JvmName("stjyuuoyaojprgoj")
    public suspend fun children(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ThemeValuesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.children = mapped
    }

    /**
     * @param argument A list of key-value pairs that define the theme's properties.
     */
    @JvmName("offvwyvtamyjjjuv")
    public suspend fun children(vararg argument: suspend ThemeValuesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ThemeValuesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.children = mapped
    }

    /**
     * @param argument A list of key-value pairs that define the theme's properties.
     */
    @JvmName("ehplfsuxbvuiiibf")
    public suspend fun children(argument: suspend ThemeValuesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ThemeValuesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.children = mapped
    }

    /**
     * @param values A list of key-value pairs that define the theme's properties.
     */
    @JvmName("tfghubmryjpbahbf")
    public suspend fun children(vararg values: ThemeValuesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.children = mapped
    }

    /**
     * @param value The value of a theme property.
     */
    @JvmName("qrggbkwgahfknwfw")
    public suspend fun `value`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): ThemeValueArgs = ThemeValueArgs(
        children = children,
        `value` = `value`,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy