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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.TemplateFreeFormLayoutElementArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.TemplateLayoutElementType
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.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 TemplateFreeFormLayoutElementArgs(
    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.TemplateFreeFormLayoutElementArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateFreeFormLayoutElementArgs.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 [TemplateFreeFormLayoutElementArgs].
 */
@PulumiTagMarker
public class TemplateFreeFormLayoutElementArgsBuilder 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("bdcfsrgtjfibtltw")
    public suspend fun backgroundStyle(`value`: Output) {
        this.backgroundStyle = value
    }

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

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

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

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

    /**
     * @param value The loading animation configuration of a free-form layout element.
     */
    @JvmName("ylsujgsdcndnphxu")
    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("biurjwdxebmfqaqh")
    public suspend fun renderingRules(`value`: Output>) {
        this.renderingRules = value
    }

    @JvmName("mupraoefrdncmhap")
    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("jffkmayrruujcnmr")
    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("dwfoftlbirgnpglk")
    public suspend fun selectedBorderStyle(`value`: Output) {
        this.selectedBorderStyle = value
    }

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

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

    /**
     * @param value String based length that is composed of value and unit in px
     */
    @JvmName("eqvxkpvarjthqpxt")
    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("vmyjwkheeewxqamg")
    public suspend fun yAxisLocation(`value`: Output) {
        this.yAxisLocation = value
    }

    /**
     * @param value The background style configuration of a free-form layout element.
     */
    @JvmName("hsfpswvxchvdwqgq")
    public suspend fun backgroundStyle(`value`: TemplateFreeFormLayoutElementBackgroundStyleArgs?) {
        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("crflylyrhsgvxjlh")
    public suspend fun backgroundStyle(argument: suspend TemplateFreeFormLayoutElementBackgroundStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateFreeFormLayoutElementBackgroundStyleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.backgroundStyle = mapped
    }

    /**
     * @param value The border style configuration of a free-form layout element.
     */
    @JvmName("kvhmevuraogidoat")
    public suspend fun borderStyle(`value`: TemplateFreeFormLayoutElementBorderStyleArgs?) {
        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("najiexhoawmtdoqn")
    public suspend fun borderStyle(argument: suspend TemplateFreeFormLayoutElementBorderStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateFreeFormLayoutElementBorderStyleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.borderStyle = mapped
    }

    /**
     * @param value A unique identifier for an element within a free-form layout.
     */
    @JvmName("hxdylutemivfwppc")
    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("jhbsckkxpnfggiix")
    public suspend fun elementType(`value`: TemplateLayoutElementType) {
        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("uchxcbiqlwynmcqw")
    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("mvrxvtxycteavsho")
    public suspend fun loadingAnimation(`value`: TemplateLoadingAnimationArgs?) {
        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("ugtiwwgppkujkgnu")
    public suspend fun loadingAnimation(argument: suspend TemplateLoadingAnimationArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateLoadingAnimationArgsBuilder().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("csuvyuiohlfubywq")
    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("xmlxhjsoyekyfesu")
    public suspend fun renderingRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateSheetElementRenderingRuleArgsBuilder().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("oqhshdsevcitgemu")
    public suspend fun renderingRules(vararg argument: suspend TemplateSheetElementRenderingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateSheetElementRenderingRuleArgsBuilder().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("bwuuunnfcsfjshlx")
    public suspend fun renderingRules(argument: suspend TemplateSheetElementRenderingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateSheetElementRenderingRuleArgsBuilder().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("pcvwryjitlgbhrtp")
    public suspend fun renderingRules(vararg values: TemplateSheetElementRenderingRuleArgs) {
        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("eiqroqcwwwmtasdn")
    public suspend fun selectedBorderStyle(`value`: TemplateFreeFormLayoutElementBorderStyleArgs?) {
        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("diyudrpyhuvpqqqd")
    public suspend fun selectedBorderStyle(argument: suspend TemplateFreeFormLayoutElementBorderStyleArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateFreeFormLayoutElementBorderStyleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.selectedBorderStyle = mapped
    }

    /**
     * @param value The visibility of an element within a free-form layout.
     */
    @JvmName("cresrylelmgruwwx")
    public suspend fun visibility(`value`: TemplateVisibility?) {
        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("eohpddnwsyqmadai")
    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("oqleatignimwesax")
    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("xhiecbyvlfcgdvvr")
    public suspend fun yAxisLocation(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.yAxisLocation = mapped
    }

    internal fun build(): TemplateFreeFormLayoutElementArgs = TemplateFreeFormLayoutElementArgs(
        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