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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisFreeFormSectionLayoutConfigurationArgs.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.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormSectionLayoutConfigurationArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property elements The elements that are included in the free-form layout.
 */
public data class AnalysisFreeFormSectionLayoutConfigurationArgs(
    public val elements: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormSectionLayoutConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormSectionLayoutConfigurationArgs.builder()
            .elements(
                elements.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value The elements that are included in the free-form layout.
     */
    @JvmName("udmnoxbeowuydqtm")
    public suspend fun elements(`value`: Output>) {
        this.elements = value
    }

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

    /**
     * @param values The elements that are included in the free-form layout.
     */
    @JvmName("uuerqejtwkredrde")
    public suspend fun elements(values: List>) {
        this.elements = Output.all(values)
    }

    /**
     * @param value The elements that are included in the free-form layout.
     */
    @JvmName("kbfpatoycecewaui")
    public suspend fun elements(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.elements = mapped
    }

    /**
     * @param argument The elements that are included in the free-form layout.
     */
    @JvmName("tajxjrwgoufbfgbl")
    public suspend fun elements(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisFreeFormLayoutElementArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.elements = mapped
    }

    /**
     * @param argument The elements that are included in the free-form layout.
     */
    @JvmName("gciypbmjwiueacny")
    public suspend fun elements(vararg argument: suspend AnalysisFreeFormLayoutElementArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisFreeFormLayoutElementArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.elements = mapped
    }

    /**
     * @param argument The elements that are included in the free-form layout.
     */
    @JvmName("qqjrmtullisvgpbo")
    public suspend fun elements(argument: suspend AnalysisFreeFormLayoutElementArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnalysisFreeFormLayoutElementArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.elements = mapped
    }

    /**
     * @param values The elements that are included in the free-form layout.
     */
    @JvmName("blftnxsndwiowbda")
    public suspend fun elements(vararg values: AnalysisFreeFormLayoutElementArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.elements = mapped
    }

    internal fun build(): AnalysisFreeFormSectionLayoutConfigurationArgs =
        AnalysisFreeFormSectionLayoutConfigurationArgs(
            elements = elements ?: throw PulumiNullFieldException("elements"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy