Interface CreateCustomActionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ChatbotRequest.Builder,CopyableBuilder<CreateCustomActionRequest.Builder,CreateCustomActionRequest>,SdkBuilder<CreateCustomActionRequest.Builder,CreateCustomActionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateCustomActionRequest
public static interface CreateCustomActionRequest.Builder extends ChatbotRequest.Builder, SdkPojo, CopyableBuilder<CreateCustomActionRequest.Builder,CreateCustomActionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateCustomActionRequest.BuilderactionName(String actionName)The name of the custom action.CreateCustomActionRequest.BuilderaliasName(String aliasName)The name used to invoke this action in a chat channel.CreateCustomActionRequest.Builderattachments(Collection<CustomActionAttachment> attachments)Defines when this custom action button should be attached to a notification.CreateCustomActionRequest.Builderattachments(Consumer<CustomActionAttachment.Builder>... attachments)Defines when this custom action button should be attached to a notification.CreateCustomActionRequest.Builderattachments(CustomActionAttachment... attachments)Defines when this custom action button should be attached to a notification.CreateCustomActionRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.default CreateCustomActionRequest.Builderdefinition(Consumer<CustomActionDefinition.Builder> definition)The definition of the command to run when invoked as an alias or as an action button.CreateCustomActionRequest.Builderdefinition(CustomActionDefinition definition)The definition of the command to run when invoked as an alias or as an action button.CreateCustomActionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateCustomActionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateCustomActionRequest.Buildertags(Collection<Tag> tags)A map of tags assigned to a resource.CreateCustomActionRequest.Buildertags(Consumer<Tag.Builder>... tags)A map of tags assigned to a resource.CreateCustomActionRequest.Buildertags(Tag... tags)A map of tags assigned to a resource.-
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 Detail
-
definition
CreateCustomActionRequest.Builder definition(CustomActionDefinition 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 CreateCustomActionRequest.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.Builderavoiding the need to create one manually viaCustomActionDefinition.builder().When the
Consumercompletes,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:
definition(CustomActionDefinition)
-
aliasName
CreateCustomActionRequest.Builder aliasName(String aliasName)
The name used to invoke this action in a chat channel. For example,
@aws run my-alias.- Parameters:
aliasName- The name used to invoke this action in a chat channel. For example,@aws run my-alias.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
CreateCustomActionRequest.Builder attachments(Collection<CustomActionAttachment> 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
CreateCustomActionRequest.Builder attachments(CustomActionAttachment... 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
CreateCustomActionRequest.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.Builderavoiding the need to create one manually viaCustomActionAttachment.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#attachments(List.) - 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:
#attachments(java.util.Collection)
-
tags
CreateCustomActionRequest.Builder tags(Collection<Tag> tags)
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
- Parameters:
tags- A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateCustomActionRequest.Builder tags(Tag... tags)
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
- Parameters:
tags- A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateCustomActionRequest.Builder tags(Consumer<Tag.Builder>... tags)
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
clientToken
CreateCustomActionRequest.Builder clientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.
If you do not specify a client token, one is automatically generated by the SDK.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Idempotency ensures that an API request completes only once. With an idempotent request, if the original request completes successfully, subsequent retries with the same client token returns the result from the original successful request.If you do not specify a client token, one is automatically generated by the SDK.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionName
CreateCustomActionRequest.Builder actionName(String actionName)
The name of the custom action. This name is included in the Amazon Resource Name (ARN).
- Parameters:
actionName- The name of the custom action. This name is included in the Amazon Resource Name (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateCustomActionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateCustomActionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-