![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.ComponentEventArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs
import com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentEventArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @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 ComponentEventArgs(
public val action: Output? = null,
public val bindingEvent: Output? = null,
public val parameters: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentEventArgs =
com.pulumi.awsnative.amplifyuibuilder.inputs.ComponentEventArgs.builder()
.action(action?.applyValue({ args0 -> args0 }))
.bindingEvent(bindingEvent?.applyValue({ args0 -> args0 }))
.parameters(parameters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ComponentEventArgs].
*/
@PulumiTagMarker
public class ComponentEventArgsBuilder internal constructor() {
private var action: Output? = null
private var bindingEvent: Output? = null
private var parameters: Output? = null
/**
* @param value The action to perform when a specific event is raised.
*/
@JvmName("moxxmbmxcnvshihm")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Binds an event to an action on a component. When you specify a `bindingEvent` , the event is called when the action is performed.
*/
@JvmName("urjrgiygivjiwhjq")
public suspend fun bindingEvent(`value`: Output) {
this.bindingEvent = value
}
/**
* @param value Describes information about the action.
*/
@JvmName("srnydxtuvhgwytqq")
public suspend fun parameters(`value`: Output) {
this.parameters = value
}
/**
* @param value The action to perform when a specific event is raised.
*/
@JvmName("mareduyshssvhycu")
public suspend fun action(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.action = mapped
}
/**
* @param value Binds an event to an action on a component. When you specify a `bindingEvent` , the event is called when the action is performed.
*/
@JvmName("xadcbupirksyshxw")
public suspend fun bindingEvent(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bindingEvent = mapped
}
/**
* @param value Describes information about the action.
*/
@JvmName("basdjqrosfeqknqw")
public suspend fun parameters(`value`: ComponentActionParametersArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param argument Describes information about the action.
*/
@JvmName("dltddabbmbsjjeda")
public suspend fun parameters(argument: suspend ComponentActionParametersArgsBuilder.() -> Unit) {
val toBeMapped = ComponentActionParametersArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.parameters = mapped
}
internal fun build(): ComponentEventArgs = ComponentEventArgs(
action = action,
bindingEvent = bindingEvent,
parameters = parameters,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy