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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateSubtotalOptionsArgs.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.TemplateSubtotalOptionsArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplatePivotTableSubtotalLevel
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateVisibility
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property customLabel The custom label string for the subtotal cells.
 * @property fieldLevel The field level (all, custom, last) for the subtotal cells.
 * @property fieldLevelOptions The optional configuration of subtotal cells.
 * @property metricHeaderCellStyle The cell styling options for the subtotals of header cells.
 * @property styleTargets The style targets options for subtotals.
 * @property totalCellStyle The cell styling options for the subtotal cells.
 * @property totalsVisibility The visibility configuration for the subtotal cells.
 * @property valueCellStyle The cell styling options for the subtotals of value cells.
 */
public data class TemplateSubtotalOptionsArgs(
    public val customLabel: Output? = null,
    public val fieldLevel: Output? = null,
    public val fieldLevelOptions: Output>? = null,
    public val metricHeaderCellStyle: Output? = null,
    public val styleTargets: Output>? = null,
    public val totalCellStyle: Output? = null,
    public val totalsVisibility: Output? = null,
    public val valueCellStyle: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateSubtotalOptionsArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateSubtotalOptionsArgs.builder()
            .customLabel(customLabel?.applyValue({ args0 -> args0 }))
            .fieldLevel(fieldLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fieldLevelOptions(
                fieldLevelOptions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .metricHeaderCellStyle(
                metricHeaderCellStyle?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .styleTargets(
                styleTargets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .totalCellStyle(totalCellStyle?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .totalsVisibility(totalsVisibility?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .valueCellStyle(
                valueCellStyle?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateSubtotalOptionsArgs].
 */
@PulumiTagMarker
public class TemplateSubtotalOptionsArgsBuilder internal constructor() {
    private var customLabel: Output? = null

    private var fieldLevel: Output? = null

    private var fieldLevelOptions: Output>? = null

    private var metricHeaderCellStyle: Output? = null

    private var styleTargets: Output>? = null

    private var totalCellStyle: Output? = null

    private var totalsVisibility: Output? = null

    private var valueCellStyle: Output? = null

    /**
     * @param value The custom label string for the subtotal cells.
     */
    @JvmName("jcwwbmkixjnrdydb")
    public suspend fun customLabel(`value`: Output) {
        this.customLabel = value
    }

    /**
     * @param value The field level (all, custom, last) for the subtotal cells.
     */
    @JvmName("uritoqfxjrxytkea")
    public suspend fun fieldLevel(`value`: Output) {
        this.fieldLevel = value
    }

    /**
     * @param value The optional configuration of subtotal cells.
     */
    @JvmName("hmjdtstthxmoieif")
    public suspend fun fieldLevelOptions(`value`: Output>) {
        this.fieldLevelOptions = value
    }

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

    /**
     * @param values The optional configuration of subtotal cells.
     */
    @JvmName("qcklblkrvfbdaeia")
    public suspend fun fieldLevelOptions(values: List>) {
        this.fieldLevelOptions = Output.all(values)
    }

    /**
     * @param value The cell styling options for the subtotals of header cells.
     */
    @JvmName("rbkyjimasjoobcej")
    public suspend fun metricHeaderCellStyle(`value`: Output) {
        this.metricHeaderCellStyle = value
    }

    /**
     * @param value The style targets options for subtotals.
     */
    @JvmName("jjfompmpjqtfkjmr")
    public suspend fun styleTargets(`value`: Output>) {
        this.styleTargets = value
    }

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

    /**
     * @param values The style targets options for subtotals.
     */
    @JvmName("yjrtiewnstblhgsl")
    public suspend fun styleTargets(values: List>) {
        this.styleTargets = Output.all(values)
    }

    /**
     * @param value The cell styling options for the subtotal cells.
     */
    @JvmName("otncxdedlonvjgsu")
    public suspend fun totalCellStyle(`value`: Output) {
        this.totalCellStyle = value
    }

    /**
     * @param value The visibility configuration for the subtotal cells.
     */
    @JvmName("wfcfbtmayqvdalmb")
    public suspend fun totalsVisibility(`value`: Output) {
        this.totalsVisibility = value
    }

    /**
     * @param value The cell styling options for the subtotals of value cells.
     */
    @JvmName("eshrdrxadgnwxpad")
    public suspend fun valueCellStyle(`value`: Output) {
        this.valueCellStyle = value
    }

    /**
     * @param value The custom label string for the subtotal cells.
     */
    @JvmName("jjcbehgnmjgoucej")
    public suspend fun customLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customLabel = mapped
    }

    /**
     * @param value The field level (all, custom, last) for the subtotal cells.
     */
    @JvmName("segpqvrgugkqsabv")
    public suspend fun fieldLevel(`value`: TemplatePivotTableSubtotalLevel?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldLevel = mapped
    }

    /**
     * @param value The optional configuration of subtotal cells.
     */
    @JvmName("hryuiyuvlqnaulwc")
    public suspend fun fieldLevelOptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fieldLevelOptions = mapped
    }

    /**
     * @param argument The optional configuration of subtotal cells.
     */
    @JvmName("uspfafimdlyollok")
    public suspend fun fieldLevelOptions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplatePivotTableFieldSubtotalOptionsArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldLevelOptions = mapped
    }

    /**
     * @param argument The optional configuration of subtotal cells.
     */
    @JvmName("yyqirbmlcripyhku")
    public suspend fun fieldLevelOptions(vararg argument: suspend TemplatePivotTableFieldSubtotalOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplatePivotTableFieldSubtotalOptionsArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldLevelOptions = mapped
    }

    /**
     * @param argument The optional configuration of subtotal cells.
     */
    @JvmName("ritfxlljpexxomcw")
    public suspend fun fieldLevelOptions(argument: suspend TemplatePivotTableFieldSubtotalOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplatePivotTableFieldSubtotalOptionsArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.fieldLevelOptions = mapped
    }

    /**
     * @param values The optional configuration of subtotal cells.
     */
    @JvmName("pdritxwlmmemppun")
    public suspend fun fieldLevelOptions(vararg values: TemplatePivotTableFieldSubtotalOptionsArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldLevelOptions = mapped
    }

    /**
     * @param value The cell styling options for the subtotals of header cells.
     */
    @JvmName("wmvwbkehchahimqf")
    public suspend fun metricHeaderCellStyle(`value`: TemplateTableCellStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricHeaderCellStyle = mapped
    }

    /**
     * @param argument The cell styling options for the subtotals of header cells.
     */
    @JvmName("crevunfnrivkiaqj")
    public suspend fun metricHeaderCellStyle(argument: suspend TemplateTableCellStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateTableCellStyleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.metricHeaderCellStyle = mapped
    }

    /**
     * @param value The style targets options for subtotals.
     */
    @JvmName("rjaknbfvokknqsey")
    public suspend fun styleTargets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.styleTargets = mapped
    }

    /**
     * @param argument The style targets options for subtotals.
     */
    @JvmName("nhfymwnsbgbsljqw")
    public suspend fun styleTargets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateTableStyleTargetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.styleTargets = mapped
    }

    /**
     * @param argument The style targets options for subtotals.
     */
    @JvmName("pmjvpxfcqyehnswi")
    public suspend fun styleTargets(vararg argument: suspend TemplateTableStyleTargetArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateTableStyleTargetArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.styleTargets = mapped
    }

    /**
     * @param argument The style targets options for subtotals.
     */
    @JvmName("pcoeylndpknulxdu")
    public suspend fun styleTargets(argument: suspend TemplateTableStyleTargetArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateTableStyleTargetArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.styleTargets = mapped
    }

    /**
     * @param values The style targets options for subtotals.
     */
    @JvmName("enrgktilwtcqrxjq")
    public suspend fun styleTargets(vararg values: TemplateTableStyleTargetArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.styleTargets = mapped
    }

    /**
     * @param value The cell styling options for the subtotal cells.
     */
    @JvmName("wcsywofesuswrtgi")
    public suspend fun totalCellStyle(`value`: TemplateTableCellStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalCellStyle = mapped
    }

    /**
     * @param argument The cell styling options for the subtotal cells.
     */
    @JvmName("kdowebabowoxcqtu")
    public suspend fun totalCellStyle(argument: suspend TemplateTableCellStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateTableCellStyleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.totalCellStyle = mapped
    }

    /**
     * @param value The visibility configuration for the subtotal cells.
     */
    @JvmName("ehnskhhejyqdsrht")
    public suspend fun totalsVisibility(`value`: TemplateVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalsVisibility = mapped
    }

    /**
     * @param value The cell styling options for the subtotals of value cells.
     */
    @JvmName("opdqpngbfjevbnol")
    public suspend fun valueCellStyle(`value`: TemplateTableCellStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueCellStyle = mapped
    }

    /**
     * @param argument The cell styling options for the subtotals of value cells.
     */
    @JvmName("ngvuqmkfaysnfesc")
    public suspend fun valueCellStyle(argument: suspend TemplateTableCellStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateTableCellStyleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.valueCellStyle = mapped
    }

    internal fun build(): TemplateSubtotalOptionsArgs = TemplateSubtotalOptionsArgs(
        customLabel = customLabel,
        fieldLevel = fieldLevel,
        fieldLevelOptions = fieldLevelOptions,
        metricHeaderCellStyle = metricHeaderCellStyle,
        styleTargets = styleTargets,
        totalCellStyle = totalCellStyle,
        totalsVisibility = totalsVisibility,
        valueCellStyle = valueCellStyle,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy