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

com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentEvent.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property action The action to perform when a specific event is raised.
 * @property bindingEvent Binds an event to an action on a component. When you specify a `bindingEvent` , the event is called when the action is performed.
 * @property parameters Describes information about the action.
 */
public data class ComponentEvent(
    public val action: String? = null,
    public val bindingEvent: String? = null,
    public val parameters: ComponentActionParameters? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.amplifyuibuilder.outputs.ComponentEvent): ComponentEvent = ComponentEvent(
            action = javaType.action().map({ args0 -> args0 }).orElse(null),
            bindingEvent = javaType.bindingEvent().map({ args0 -> args0 }).orElse(null),
            parameters = javaType.parameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.amplifyuibuilder.kotlin.outputs.ComponentActionParameters.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy