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

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

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

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

import com.pulumi.awsnative.quicksight.inputs.AnalysisVisualCustomActionArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisVisualCustomActionTrigger
import com.pulumi.awsnative.quicksight.kotlin.enums.AnalysisWidgetStatus
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 AnalysisVisualCustomActionArgs(
    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.AnalysisVisualCustomActionArgs =
        com.pulumi.awsnative.quicksight.inputs.AnalysisVisualCustomActionArgs.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 [AnalysisVisualCustomActionArgs].
 */
@PulumiTagMarker
public class AnalysisVisualCustomActionArgsBuilder 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("smhkrivdyhkdseca")
    public suspend fun actionOperations(`value`: Output>) {
        this.actionOperations = value
    }

    @JvmName("qghpqcdcaqbnjrld")
    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("uoyuvdqrthqkbsam")
    public suspend fun actionOperations(values: List>) {
        this.actionOperations = Output.all(values)
    }

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

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

    /**
     * @param value The status of the `VisualCustomAction` .
     */
    @JvmName("rmcvrciiqoblmytx")
    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("evdjjugrgoynyljp")
    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("npwkqbxjnnovnwjb")
    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("qthqwsjxjhdxguov")
    public suspend fun actionOperations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalysisVisualCustomActionOperationArgsBuilder().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("jukrgptydnapkhnf")
    public suspend fun actionOperations(vararg argument: suspend AnalysisVisualCustomActionOperationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalysisVisualCustomActionOperationArgsBuilder().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("gglmunukhqkgkoff")
    public suspend fun actionOperations(argument: suspend AnalysisVisualCustomActionOperationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnalysisVisualCustomActionOperationArgsBuilder().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("nqkblavlkcaiokhc")
    public suspend fun actionOperations(vararg values: AnalysisVisualCustomActionOperationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionOperations = mapped
    }

    /**
     * @param value The ID of the `VisualCustomAction` .
     */
    @JvmName("vtqpdgwfvypstieg")
    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("fnmtttjchjenynob")
    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("gldvrjwwwlkjhabl")
    public suspend fun status(`value`: AnalysisWidgetStatus?) {
        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("emixxcsfvkuibdud")
    public suspend fun trigger(`value`: AnalysisVisualCustomActionTrigger) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trigger = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy