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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.DashboardSectionBasedLayoutConfigurationArgs.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 bodySections A list of body section configurations.
 * @property canvasSizeOptions The options for the canvas of a section-based layout.
 * @property footerSections A list of footer section configurations.
 * @property headerSections A list of header section configurations.
 */
public data class DashboardSectionBasedLayoutConfigurationArgs(
    public val bodySections: Output>,
    public val canvasSizeOptions: Output,
    public val footerSections: Output>,
    public val headerSections: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardSectionBasedLayoutConfigurationArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardSectionBasedLayoutConfigurationArgs.builder()
            .bodySections(
                bodySections.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .canvasSizeOptions(canvasSizeOptions.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .footerSections(
                footerSections.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .headerSections(
                headerSections.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var canvasSizeOptions: Output? = null

    private var footerSections: Output>? = null

    private var headerSections: Output>? = null

    /**
     * @param value A list of body section configurations.
     */
    @JvmName("ukockjsnyoowcjko")
    public suspend fun bodySections(`value`: Output>) {
        this.bodySections = value
    }

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

    /**
     * @param values A list of body section configurations.
     */
    @JvmName("wkcehyolhtjuskmf")
    public suspend fun bodySections(values: List>) {
        this.bodySections = Output.all(values)
    }

    /**
     * @param value The options for the canvas of a section-based layout.
     */
    @JvmName("ehbworpkpjsfpvdl")
    public suspend fun canvasSizeOptions(`value`: Output) {
        this.canvasSizeOptions = value
    }

    /**
     * @param value A list of footer section configurations.
     */
    @JvmName("ktapmgffbnjgxpim")
    public suspend fun footerSections(`value`: Output>) {
        this.footerSections = value
    }

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

    /**
     * @param values A list of footer section configurations.
     */
    @JvmName("ljgqxcmbvllrvnwi")
    public suspend fun footerSections(values: List>) {
        this.footerSections = Output.all(values)
    }

    /**
     * @param value A list of header section configurations.
     */
    @JvmName("djqiokgotxhvkaqf")
    public suspend fun headerSections(`value`: Output>) {
        this.headerSections = value
    }

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

    /**
     * @param values A list of header section configurations.
     */
    @JvmName("bqyujvufnqnumidg")
    public suspend fun headerSections(values: List>) {
        this.headerSections = Output.all(values)
    }

    /**
     * @param value A list of body section configurations.
     */
    @JvmName("owvhctolliyfaogi")
    public suspend fun bodySections(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bodySections = mapped
    }

    /**
     * @param argument A list of body section configurations.
     */
    @JvmName("rfaitodquqvfbkky")
    public suspend fun bodySections(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardBodySectionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.bodySections = mapped
    }

    /**
     * @param argument A list of body section configurations.
     */
    @JvmName("lcqgcwlhxjigxvyr")
    public suspend fun bodySections(vararg argument: suspend DashboardBodySectionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardBodySectionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.bodySections = mapped
    }

    /**
     * @param argument A list of body section configurations.
     */
    @JvmName("ruvwhhqbrbfhethf")
    public suspend fun bodySections(argument: suspend DashboardBodySectionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DashboardBodySectionConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.bodySections = mapped
    }

    /**
     * @param values A list of body section configurations.
     */
    @JvmName("rkqmoiqqvugqdert")
    public suspend fun bodySections(vararg values: DashboardBodySectionConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bodySections = mapped
    }

    /**
     * @param value The options for the canvas of a section-based layout.
     */
    @JvmName("qohyysfbxkubnssv")
    public suspend fun canvasSizeOptions(`value`: DashboardSectionBasedLayoutCanvasSizeOptionsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.canvasSizeOptions = mapped
    }

    /**
     * @param argument The options for the canvas of a section-based layout.
     */
    @JvmName("xrauqmnnbucbmcud")
    public suspend fun canvasSizeOptions(argument: suspend DashboardSectionBasedLayoutCanvasSizeOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = DashboardSectionBasedLayoutCanvasSizeOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.canvasSizeOptions = mapped
    }

    /**
     * @param value A list of footer section configurations.
     */
    @JvmName("benlkgdqoibketux")
    public suspend fun footerSections(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.footerSections = mapped
    }

    /**
     * @param argument A list of footer section configurations.
     */
    @JvmName("igyqdgrryudajety")
    public suspend fun footerSections(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardHeaderFooterSectionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.footerSections = mapped
    }

    /**
     * @param argument A list of footer section configurations.
     */
    @JvmName("ikbfxhbericmayne")
    public suspend fun footerSections(vararg argument: suspend DashboardHeaderFooterSectionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardHeaderFooterSectionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.footerSections = mapped
    }

    /**
     * @param argument A list of footer section configurations.
     */
    @JvmName("rgiclgxttmdwokto")
    public suspend fun footerSections(argument: suspend DashboardHeaderFooterSectionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DashboardHeaderFooterSectionConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.footerSections = mapped
    }

    /**
     * @param values A list of footer section configurations.
     */
    @JvmName("gkcrouyfdmtfirhl")
    public suspend fun footerSections(vararg values: DashboardHeaderFooterSectionConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.footerSections = mapped
    }

    /**
     * @param value A list of header section configurations.
     */
    @JvmName("jubviefuhsknssmm")
    public suspend fun headerSections(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerSections = mapped
    }

    /**
     * @param argument A list of header section configurations.
     */
    @JvmName("edfhelhvumnqgjvp")
    public suspend fun headerSections(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardHeaderFooterSectionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headerSections = mapped
    }

    /**
     * @param argument A list of header section configurations.
     */
    @JvmName("gxmpjyahqedinfas")
    public suspend fun headerSections(vararg argument: suspend DashboardHeaderFooterSectionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardHeaderFooterSectionConfigurationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.headerSections = mapped
    }

    /**
     * @param argument A list of header section configurations.
     */
    @JvmName("xcqoranoeilpnfqf")
    public suspend fun headerSections(argument: suspend DashboardHeaderFooterSectionConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DashboardHeaderFooterSectionConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.headerSections = mapped
    }

    /**
     * @param values A list of header section configurations.
     */
    @JvmName("geyydivwrsvxbacw")
    public suspend fun headerSections(vararg values: DashboardHeaderFooterSectionConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.headerSections = mapped
    }

    internal fun build(): DashboardSectionBasedLayoutConfigurationArgs =
        DashboardSectionBasedLayoutConfigurationArgs(
            bodySections = bodySections ?: throw PulumiNullFieldException("bodySections"),
            canvasSizeOptions = canvasSizeOptions ?: throw PulumiNullFieldException("canvasSizeOptions"),
            footerSections = footerSections ?: throw PulumiNullFieldException("footerSections"),
            headerSections = headerSections ?: throw PulumiNullFieldException("headerSections"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy