Interface CustomAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomAction.Builder,
,CustomAction> SdkBuilder<CustomAction.Builder,
,CustomAction> SdkPojo
- Enclosing class:
CustomAction
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) The name of the custom action that is included in the ARN.The name used to invoke this action in the chat channel.attachments
(Collection<CustomActionAttachment> attachments) Defines when this custom action button should be attached to a notification.attachments
(Consumer<CustomActionAttachment.Builder>... attachments) Defines when this custom action button should be attached to a notification.attachments
(CustomActionAttachment... attachments) Defines when this custom action button should be attached to a notification.customActionArn
(String customActionArn) The fully defined Amazon Resource Name (ARN) of the custom action.default CustomAction.Builder
definition
(Consumer<CustomActionDefinition.Builder> definition) The definition of the command to run when invoked an alias or as an action button.definition
(CustomActionDefinition definition) The definition of the command to run when invoked an alias or as an action button.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
customActionArn
The fully defined Amazon Resource Name (ARN) of the custom action.
- Parameters:
customActionArn
- The fully defined Amazon Resource Name (ARN) of the custom action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The definition of the command to run when invoked an alias or as an action button.
- Parameters:
definition
- The definition of the command to run when invoked an alias or as an action button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The definition of the command to run when invoked an alias or as an action button.
This is a convenience method that creates an instance of theCustomActionDefinition.Builder
avoiding the need to create one manually viaCustomActionDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefinition(CustomActionDefinition)
.- Parameters:
definition
- a consumer that will call methods onCustomActionDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aliasName
The name used to invoke this action in the chat channel. For example,
@aws run my-alias
.- Parameters:
aliasName
- The name used to invoke this action in the chat channel. For example,@aws run my-alias
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Defines when this custom action button should be attached to a notification.
- Parameters:
attachments
- Defines when this custom action button should be attached to a notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Defines when this custom action button should be attached to a notification.
- Parameters:
attachments
- Defines when this custom action button should be attached to a notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
Defines when this custom action button should be attached to a notification.
This is a convenience method that creates an instance of theCustomActionAttachment.Builder
avoiding the need to create one manually viaCustomActionAttachment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<CustomActionAttachment>)
.- Parameters:
attachments
- a consumer that will call methods onCustomActionAttachment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionName
The name of the custom action that is included in the ARN.
- Parameters:
actionName
- The name of the custom action that is included in the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-