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

com.pulumi.awsnative.quicksight.kotlin.inputs.AnalysisFreeFormLayoutConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormLayoutConfigurationArgs.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 canvasSizeOptions
 * @property elements The elements that are included in a free-form layout.
 */
public data class AnalysisFreeFormLayoutConfigurationArgs(
    public val canvasSizeOptions: Output? = null,
    public val elements: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormLayoutConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormLayoutConfigurationArgs.builder()
            .canvasSizeOptions(canvasSizeOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .elements(
                elements.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [AnalysisFreeFormLayoutConfigurationArgs].
 */
@PulumiTagMarker
public class AnalysisFreeFormLayoutConfigurationArgsBuilder internal constructor() {
    private var canvasSizeOptions: Output? = null

    private var elements: Output>? = null

    /**
     * @param value
     */
    @JvmName("vosavjlsfnoptfai")
    public suspend fun canvasSizeOptions(`value`: Output) {
        this.canvasSizeOptions = value
    }

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

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

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

    /**
     * @param value
     */
    @JvmName("npljmewpvembnlxp")
    public suspend fun canvasSizeOptions(`value`: AnalysisFreeFormLayoutCanvasSizeOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.canvasSizeOptions = mapped
    }

    /**
     * @param argument
     */
    @JvmName("djtrgghnjeondtgl")
    public suspend fun canvasSizeOptions(argument: suspend AnalysisFreeFormLayoutCanvasSizeOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisFreeFormLayoutCanvasSizeOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.canvasSizeOptions = mapped
    }

    /**
     * @param value The elements that are included in a free-form layout.
     */
    @JvmName("cyqfvcrybpirsdhq")
    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 a free-form layout.
     */
    @JvmName("ekexifpdgxuyhsvf")
    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 a free-form layout.
     */
    @JvmName("nlvrxselcvrjcjmw")
    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 a free-form layout.
     */
    @JvmName("sonclbmoufvlvola")
    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 a free-form layout.
     */
    @JvmName("elirwvhvpwmhrdyu")
    public suspend fun elements(vararg values: AnalysisFreeFormLayoutElementArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.elements = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy