Class CfnComponent.ComponentEventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.ComponentEventProperty>
- Enclosing interface:
CfnComponent.ComponentEventProperty
@Stability(Stable)
public static final class CfnComponent.ComponentEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.ComponentEventProperty>
A builder for
CfnComponent.ComponentEventProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnComponent.ComponentEventProperty.getAction()
bindingEvent
(String bindingEvent) Sets the value ofCfnComponent.ComponentEventProperty.getBindingEvent()
build()
Builds the configured instance.parameters
(IResolvable parameters) Sets the value ofCfnComponent.ComponentEventProperty.getParameters()
parameters
(CfnComponent.ActionParametersProperty parameters) Sets the value ofCfnComponent.ComponentEventProperty.getParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnComponent.ComponentEventProperty.getAction()
- Parameters:
action
- The action to perform when a specific event is raised.- Returns:
this
-
bindingEvent
@Stability(Stable) public CfnComponent.ComponentEventProperty.Builder bindingEvent(String bindingEvent) Sets the value ofCfnComponent.ComponentEventProperty.getBindingEvent()
- Parameters:
bindingEvent
- Binds an event to an action on a component. When you specify abindingEvent
, the event is called when the action is performed.- Returns:
this
-
parameters
@Stability(Stable) public CfnComponent.ComponentEventProperty.Builder parameters(IResolvable parameters) Sets the value ofCfnComponent.ComponentEventProperty.getParameters()
- Parameters:
parameters
- Describes information about the action.- Returns:
this
-
parameters
@Stability(Stable) public CfnComponent.ComponentEventProperty.Builder parameters(CfnComponent.ActionParametersProperty parameters) Sets the value ofCfnComponent.ComponentEventProperty.getParameters()
- Parameters:
parameters
- Describes information about the action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponent.ComponentEventProperty>
- Returns:
- a new instance of
CfnComponent.ComponentEventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-