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

com.pulumi.awsnative.quicksight.kotlin.inputs.DashboardVisualCustomActionArgs.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.DashboardVisualCustomActionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardVisualCustomActionTrigger
import com.pulumi.awsnative.quicksight.kotlin.enums.DashboardWidgetStatus
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 actionOperations A list of `VisualCustomActionOperations` .
 * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
 * @property customActionId The ID of the `VisualCustomAction` .
 * @property name The name of the `VisualCustomAction` .
 * @property status The status of the `VisualCustomAction` .
 * @property trigger The trigger of the `VisualCustomAction` .
 * Valid values are defined as follows:
 * - `DATA_POINT_CLICK` : Initiates a custom action by a left pointer click on a data point.
 * - `DATA_POINT_MENU` : Initiates a custom action by right pointer click from the menu.
 */
public data class DashboardVisualCustomActionArgs(
    public val actionOperations: Output>,
    public val customActionId: Output,
    public val name: Output,
    public val status: Output? = null,
    public val trigger: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DashboardVisualCustomActionArgs =
        com.pulumi.awsnative.quicksight.inputs.DashboardVisualCustomActionArgs.builder()
            .actionOperations(
                actionOperations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .customActionId(customActionId.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .trigger(trigger.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DashboardVisualCustomActionArgs].
 */
@PulumiTagMarker
public class DashboardVisualCustomActionArgsBuilder internal constructor() {
    private var actionOperations: Output>? = null

    private var customActionId: Output? = null

    private var name: Output? = null

    private var status: Output? = null

    private var trigger: Output? = null

    /**
     * @param value A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("rmlpjbacbaihhacx")
    public suspend fun actionOperations(`value`: Output>) {
        this.actionOperations = value
    }

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

    /**
     * @param values A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("jimdalyyitwndjkr")
    public suspend fun actionOperations(values: List>) {
        this.actionOperations = Output.all(values)
    }

    /**
     * @param value The ID of the `VisualCustomAction` .
     */
    @JvmName("pkmqgvqfnebhgyqq")
    public suspend fun customActionId(`value`: Output) {
        this.customActionId = value
    }

    /**
     * @param value The name of the `VisualCustomAction` .
     */
    @JvmName("durhnbcbjasmrwkj")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The status of the `VisualCustomAction` .
     */
    @JvmName("phaliriplfdvsqmq")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value The trigger of the `VisualCustomAction` .
     * Valid values are defined as follows:
     * - `DATA_POINT_CLICK` : Initiates a custom action by a left pointer click on a data point.
     * - `DATA_POINT_MENU` : Initiates a custom action by right pointer click from the menu.
     */
    @JvmName("jagwrssauvjopgvs")
    public suspend fun trigger(`value`: Output) {
        this.trigger = value
    }

    /**
     * @param value A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("tkoshgaygifehfaj")
    public suspend fun actionOperations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionOperations = mapped
    }

    /**
     * @param argument A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("oervaabyqreubdxc")
    public suspend fun actionOperations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DashboardVisualCustomActionOperationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.actionOperations = mapped
    }

    /**
     * @param argument A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("banvybdlsymfsaqw")
    public suspend fun actionOperations(vararg argument: suspend DashboardVisualCustomActionOperationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DashboardVisualCustomActionOperationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.actionOperations = mapped
    }

    /**
     * @param argument A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("kcylkqkfwjvlwqyq")
    public suspend fun actionOperations(argument: suspend DashboardVisualCustomActionOperationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DashboardVisualCustomActionOperationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.actionOperations = mapped
    }

    /**
     * @param values A list of `VisualCustomActionOperations` .
     * This is a union type structure. For this structure to be valid, only one of the attributes can be defined.
     */
    @JvmName("trxmxhtmwbifvkig")
    public suspend fun actionOperations(vararg values: DashboardVisualCustomActionOperationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionOperations = mapped
    }

    /**
     * @param value The ID of the `VisualCustomAction` .
     */
    @JvmName("yoncsergatgaibpw")
    public suspend fun customActionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.customActionId = mapped
    }

    /**
     * @param value The name of the `VisualCustomAction` .
     */
    @JvmName("yfagpvkvphiknpgr")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The status of the `VisualCustomAction` .
     */
    @JvmName("uaqyfwleroasriap")
    public suspend fun status(`value`: DashboardWidgetStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value The trigger of the `VisualCustomAction` .
     * Valid values are defined as follows:
     * - `DATA_POINT_CLICK` : Initiates a custom action by a left pointer click on a data point.
     * - `DATA_POINT_MENU` : Initiates a custom action by right pointer click from the menu.
     */
    @JvmName("txsufgxtdpxdlcns")
    public suspend fun trigger(`value`: DashboardVisualCustomActionTrigger) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trigger = mapped
    }

    internal fun build(): DashboardVisualCustomActionArgs = DashboardVisualCustomActionArgs(
        actionOperations = actionOperations ?: throw PulumiNullFieldException("actionOperations"),
        customActionId = customActionId ?: throw PulumiNullFieldException("customActionId"),
        name = name ?: throw PulumiNullFieldException("name"),
        status = status,
        trigger = trigger ?: throw PulumiNullFieldException("trigger"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy