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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormLayoutElementArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisLayoutElementType
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisVisibility
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property backgroundStyle The background style configuration of a free-form layout element.
 * @property borderStyle The border style configuration of a free-form layout element.
 * @property elementId A unique identifier for an element within a free-form layout.
 * @property elementType The type of element.
 * @property height String based length that is composed of value and unit in px
 * @property loadingAnimation The loading animation configuration of a free-form layout element.
 * @property renderingRules The rendering rules that determine when an element should be displayed within a free-form layout.
 * @property selectedBorderStyle The border style configuration of a free-form layout element. This border style is used when the element is selected.
 * @property visibility The visibility of an element within a free-form layout.
 * @property width String based length that is composed of value and unit in px
 * @property xAxisLocation String based length that is composed of value and unit in px
 * @property yAxisLocation String based length that is composed of value and unit in px with Integer.MAX_VALUE as maximum value
 */
public data class AnalysisFreeFormLayoutElementArgs(
    public val backgroundStyle: Output? = null,
    public val borderStyle: Output? = null,
    public val elementId: Output,
    public val elementType: Output,
    public val height: Output,
    public val loadingAnimation: Output? = null,
    public val renderingRules: Output>? = null,
    public val selectedBorderStyle: Output? = null,
    public val visibility: Output? = null,
    public val width: Output,
    public val xAxisLocation: Output,
    public val yAxisLocation: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormLayoutElementArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisFreeFormLayoutElementArgs.builder()
            .backgroundStyle(backgroundStyle?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .borderStyle(borderStyle?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .elementId(elementId.applyValue({ args0 -> args0 }))
            .elementType(elementType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .height(height.applyValue({ args0 -> args0 }))
            .loadingAnimation(loadingAnimation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .renderingRules(
                renderingRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .selectedBorderStyle(
                selectedBorderStyle?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .visibility(visibility?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .width(width.applyValue({ args0 -> args0 }))
            .xAxisLocation(xAxisLocation.applyValue({ args0 -> args0 }))
            .yAxisLocation(yAxisLocation.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AnalysisFreeFormLayoutElementArgs].
 */
@PulumiTagMarker
public class AnalysisFreeFormLayoutElementArgsBuilder internal constructor() {
    private var backgroundStyle: Output? = null

    private var borderStyle: Output? = null

    private var elementId: Output? = null

    private var elementType: Output? = null

    private var height: Output? = null

    private var loadingAnimation: Output? = null

    private var renderingRules: Output>? = null

    private var selectedBorderStyle: Output? = null

    private var visibility: Output? = null

    private var width: Output? = null

    private var xAxisLocation: Output? = null

    private var yAxisLocation: Output? = null

    /**
     * @param value The background style configuration of a free-form layout element.
     */
    @JvmName("wirulxubaabfqopk")
    public suspend fun backgroundStyle(`value`: Output) {
        this.backgroundStyle = value
    }

    /**
     * @param value The border style configuration of a free-form layout element.
     */
    @JvmName("wjmrpyuatpaypusx")
    public suspend fun borderStyle(`value`: Output) {
        this.borderStyle = value
    }

    /**
     * @param value A unique identifier for an element within a free-form layout.
     */
    @JvmName("obpsstytlpswtrfq")
    public suspend fun elementId(`value`: Output) {
        this.elementId = value
    }

    /**
     * @param value The type of element.
     */
    @JvmName("aysbojeehvkncpqw")
    public suspend fun elementType(`value`: Output) {
        this.elementType = value
    }

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("uiwmufgkcnsklhdt")
    public suspend fun height(`value`: Output) {
        this.height = value
    }

    /**
     * @param value The loading animation configuration of a free-form layout element.
     */
    @JvmName("kypvsroiofngdpgf")
    public suspend fun loadingAnimation(`value`: Output) {
        this.loadingAnimation = value
    }

    /**
     * @param value The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("pmnxsiiecqpxnjaf")
    public suspend fun renderingRules(`value`: Output>) {
        this.renderingRules = value
    }

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

    /**
     * @param values The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("jfniqugiqqttgftw")
    public suspend fun renderingRules(values: List>) {
        this.renderingRules = Output.all(values)
    }

    /**
     * @param value The border style configuration of a free-form layout element. This border style is used when the element is selected.
     */
    @JvmName("uguxiibydnfkbiwo")
    public suspend fun selectedBorderStyle(`value`: Output) {
        this.selectedBorderStyle = value
    }

    /**
     * @param value The visibility of an element within a free-form layout.
     */
    @JvmName("rxunvghkcjxpfmhm")
    public suspend fun visibility(`value`: Output) {
        this.visibility = value
    }

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("viymnlalfrjlqqcc")
    public suspend fun width(`value`: Output) {
        this.width = value
    }

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("mqlwvnfufkyavwof")
    public suspend fun xAxisLocation(`value`: Output) {
        this.xAxisLocation = value
    }

    /**
     * @param value String based length that is composed of value and unit in px with Integer.MAX_VALUE as maximum value
     */
    @JvmName("inoucmxktxjlpvqk")
    public suspend fun yAxisLocation(`value`: Output) {
        this.yAxisLocation = value
    }

    /**
     * @param value The background style configuration of a free-form layout element.
     */
    @JvmName("bmojbvrhwebaaeda")
    public suspend fun backgroundStyle(`value`: AnalysisFreeFormLayoutElementBackgroundStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backgroundStyle = mapped
    }

    /**
     * @param argument The background style configuration of a free-form layout element.
     */
    @JvmName("mgrovqhfkqyehoiy")
    public suspend fun backgroundStyle(argument: suspend AnalysisFreeFormLayoutElementBackgroundStyleArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisFreeFormLayoutElementBackgroundStyleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.backgroundStyle = mapped
    }

    /**
     * @param value The border style configuration of a free-form layout element.
     */
    @JvmName("qxlxugflbcrefunn")
    public suspend fun borderStyle(`value`: AnalysisFreeFormLayoutElementBorderStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.borderStyle = mapped
    }

    /**
     * @param argument The border style configuration of a free-form layout element.
     */
    @JvmName("lxrserxpqfygqtun")
    public suspend fun borderStyle(argument: suspend AnalysisFreeFormLayoutElementBorderStyleArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisFreeFormLayoutElementBorderStyleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.borderStyle = mapped
    }

    /**
     * @param value A unique identifier for an element within a free-form layout.
     */
    @JvmName("yqyfdgxqssckwahw")
    public suspend fun elementId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.elementId = mapped
    }

    /**
     * @param value The type of element.
     */
    @JvmName("asqwnwljonrvpvwq")
    public suspend fun elementType(`value`: AnalysisLayoutElementType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.elementType = mapped
    }

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("pxoalbimwdodyikx")
    public suspend fun height(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.height = mapped
    }

    /**
     * @param value The loading animation configuration of a free-form layout element.
     */
    @JvmName("aqlhqswoxlclowar")
    public suspend fun loadingAnimation(`value`: AnalysisLoadingAnimationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadingAnimation = mapped
    }

    /**
     * @param argument The loading animation configuration of a free-form layout element.
     */
    @JvmName("euwffxgyiudeakmm")
    public suspend fun loadingAnimation(argument: suspend AnalysisLoadingAnimationArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisLoadingAnimationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.loadingAnimation = mapped
    }

    /**
     * @param value The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("dwlwxublaqxsmrac")
    public suspend fun renderingRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.renderingRules = mapped
    }

    /**
     * @param argument The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("suoeknednftmtlmv")
    public suspend fun renderingRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisSheetElementRenderingRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.renderingRules = mapped
    }

    /**
     * @param argument The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("airrmfubhrdochus")
    public suspend fun renderingRules(vararg argument: suspend AnalysisSheetElementRenderingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisSheetElementRenderingRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.renderingRules = mapped
    }

    /**
     * @param argument The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("nyldmyjhjysfmiis")
    public suspend fun renderingRules(argument: suspend AnalysisSheetElementRenderingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnalysisSheetElementRenderingRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.renderingRules = mapped
    }

    /**
     * @param values The rendering rules that determine when an element should be displayed within a free-form layout.
     */
    @JvmName("lownbuancacwbxhl")
    public suspend fun renderingRules(vararg values: AnalysisSheetElementRenderingRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.renderingRules = mapped
    }

    /**
     * @param value The border style configuration of a free-form layout element. This border style is used when the element is selected.
     */
    @JvmName("eedsnsbihgrssncv")
    public suspend fun selectedBorderStyle(`value`: AnalysisFreeFormLayoutElementBorderStyleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.selectedBorderStyle = mapped
    }

    /**
     * @param argument The border style configuration of a free-form layout element. This border style is used when the element is selected.
     */
    @JvmName("xgkieuluwsvhgiqy")
    public suspend fun selectedBorderStyle(argument: suspend AnalysisFreeFormLayoutElementBorderStyleArgsBuilder.() -> Unit) {
        val toBeMapped = AnalysisFreeFormLayoutElementBorderStyleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.selectedBorderStyle = mapped
    }

    /**
     * @param value The visibility of an element within a free-form layout.
     */
    @JvmName("mkkbibbpoxhpmgek")
    public suspend fun visibility(`value`: AnalysisVisibility?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.visibility = mapped
    }

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("smsowoosowgfhoos")
    public suspend fun width(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.width = mapped
    }

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("snrlxdlfolbnhdkl")
    public suspend fun xAxisLocation(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.xAxisLocation = mapped
    }

    /**
     * @param value String based length that is composed of value and unit in px with Integer.MAX_VALUE as maximum value
     */
    @JvmName("wwuqwoeabkcedmfw")
    public suspend fun yAxisLocation(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.yAxisLocation = mapped
    }

    internal fun build(): AnalysisFreeFormLayoutElementArgs = AnalysisFreeFormLayoutElementArgs(
        backgroundStyle = backgroundStyle,
        borderStyle = borderStyle,
        elementId = elementId ?: throw PulumiNullFieldException("elementId"),
        elementType = elementType ?: throw PulumiNullFieldException("elementType"),
        height = height ?: throw PulumiNullFieldException("height"),
        loadingAnimation = loadingAnimation,
        renderingRules = renderingRules,
        selectedBorderStyle = selectedBorderStyle,
        visibility = visibility,
        width = width ?: throw PulumiNullFieldException("width"),
        xAxisLocation = xAxisLocation ?: throw PulumiNullFieldException("xAxisLocation"),
        yAxisLocation = yAxisLocation ?: throw PulumiNullFieldException("yAxisLocation"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy