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

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

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

import com.pulumi.awsnative.quicksight.inputs.AnalysisBodySectionConfigurationArgs.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 AnalysisBodySectionConfigurationArgs(
    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.AnalysisBodySectionConfigurationArgs = com.pulumi.awsnative.quicksight.inputs.AnalysisBodySectionConfigurationArgs.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 [AnalysisBodySectionConfigurationArgs].
 */
@PulumiTagMarker
public class AnalysisBodySectionConfigurationArgsBuilder 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("wxstceycxmcojdqy")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

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

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

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

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

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

    /**
     * @param value The configuration of a page break for a section.
     */
    @JvmName("bellkifdvadqyqdu")
    public suspend fun pageBreakConfiguration(`value`: AnalysisSectionPageBreakConfigurationArgs?) {
        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("ltorfvtrcgytdutw")
    public suspend fun pageBreakConfiguration(argument: suspend AnalysisSectionPageBreakConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisSectionPageBreakConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.pageBreakConfiguration = mapped
    }

    /**
     * @param value The unique identifier of a body section.
     */
    @JvmName("rtehscitichcrikx")
    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("xutpcsoahuooorrd")
    public suspend fun style(`value`: AnalysisSectionStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.style = mapped
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy