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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateBodySectionConfigurationArgs.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.jvm.JvmName

/**
 *
 * @property content The configuration of content in a body section.
 * @property pageBreakConfiguration The configuration of a page break for a section.
 * @property sectionId The unique identifier of a body section.
 * @property style The style options of a body section.
 */
public data class TemplateBodySectionConfigurationArgs(
    public val content: Output,
    public val pageBreakConfiguration: Output? = null,
    public val sectionId: Output,
    public val style: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateBodySectionConfigurationArgs = com.pulumi.awsnative.quicksight.inputs.TemplateBodySectionConfigurationArgs.builder()
        .content(content.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .pageBreakConfiguration(
            pageBreakConfiguration?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .sectionId(sectionId.applyValue({ args0 -> args0 }))
        .style(style?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [TemplateBodySectionConfigurationArgs].
 */
@PulumiTagMarker
public class TemplateBodySectionConfigurationArgsBuilder internal constructor() {
    private var content: Output? = null

    private var pageBreakConfiguration: Output? = null

    private var sectionId: Output? = null

    private var style: Output? = null

    /**
     * @param value The configuration of content in a body section.
     */
    @JvmName("gysypekvwrqvyhan")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The configuration of a page break for a section.
     */
    @JvmName("fpksrgivqmuddglk")
    public suspend fun pageBreakConfiguration(`value`: Output) {
        this.pageBreakConfiguration = value
    }

    /**
     * @param value The unique identifier of a body section.
     */
    @JvmName("cunjagyycwnfxohe")
    public suspend fun sectionId(`value`: Output) {
        this.sectionId = value
    }

    /**
     * @param value The style options of a body section.
     */
    @JvmName("gpwwqyquhahviknn")
    public suspend fun style(`value`: Output) {
        this.style = value
    }

    /**
     * @param value The configuration of content in a body section.
     */
    @JvmName("lklmykckcaoijcit")
    public suspend fun content(`value`: TemplateBodySectionContentArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param argument The configuration of content in a body section.
     */
    @JvmName("faseoxescrftvtij")
    public suspend fun content(argument: suspend TemplateBodySectionContentArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateBodySectionContentArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.content = mapped
    }

    /**
     * @param value The configuration of a page break for a section.
     */
    @JvmName("lxrhsinynfjgxuxn")
    public suspend fun pageBreakConfiguration(`value`: TemplateSectionPageBreakConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pageBreakConfiguration = mapped
    }

    /**
     * @param argument The configuration of a page break for a section.
     */
    @JvmName("telpaoujmjvxdwjj")
    public suspend fun pageBreakConfiguration(argument: suspend TemplateSectionPageBreakConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateSectionPageBreakConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.pageBreakConfiguration = mapped
    }

    /**
     * @param value The unique identifier of a body section.
     */
    @JvmName("pgxqjrrkhntncwmp")
    public suspend fun sectionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sectionId = mapped
    }

    /**
     * @param value The style options of a body section.
     */
    @JvmName("eefwhqieowxbfder")
    public suspend fun style(`value`: TemplateSectionStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.style = mapped
    }

    /**
     * @param argument The style options of a body section.
     */
    @JvmName("imxkmtgdyiuxsaqf")
    public suspend fun style(argument: suspend TemplateSectionStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateSectionStyleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.style = mapped
    }

    internal fun build(): TemplateBodySectionConfigurationArgs = TemplateBodySectionConfigurationArgs(
        content = content ?: throw PulumiNullFieldException("content"),
        pageBreakConfiguration = pageBreakConfiguration,
        sectionId = sectionId ?: throw PulumiNullFieldException("sectionId"),
        style = style,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy