Interface UpdateCustomActionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ChatbotRequest.Builder
,CopyableBuilder<UpdateCustomActionRequest.Builder,
,UpdateCustomActionRequest> SdkBuilder<UpdateCustomActionRequest.Builder,
,UpdateCustomActionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateCustomActionRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.definition
(Consumer<CustomActionDefinition.Builder> definition) The definition of the command to run when invoked as an alias or as an action button.definition
(CustomActionDefinition definition) The definition of the command to run when invoked as an alias or as an action button.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.chatbot.model.ChatbotRequest.Builder
build
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 as an alias or as an action button.
- Parameters:
definition
- The definition of the command to run when invoked as an alias or as an action button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
default UpdateCustomActionRequest.Builder definition(Consumer<CustomActionDefinition.Builder> definition) The definition of the command to run when invoked as 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
UpdateCustomActionRequest.Builder attachments(Consumer<CustomActionAttachment.Builder>... 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:
-
overrideConfiguration
UpdateCustomActionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateCustomActionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-