Interface CreateMessageTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMessageTemplateRequest.Builder,
,CreateMessageTemplateRequest> QConnectRequest.Builder
,SdkBuilder<CreateMessageTemplateRequest.Builder,
,CreateMessageTemplateRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateMessageTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptionchannelSubtype
(String channelSubtype) The channel subtype this message template applies to.channelSubtype
(ChannelSubtype channelSubtype) The channel subtype this message template applies to.clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.The content of the message template.content
(MessageTemplateContentProvider content) The content of the message template.defaultAttributes
(Consumer<MessageTemplateAttributes.Builder> defaultAttributes) An object that specifies the default values to use for variables in the message template.defaultAttributes
(MessageTemplateAttributes defaultAttributes) An object that specifies the default values to use for variables in the message template.description
(String description) The description of the message template.groupingConfiguration
(Consumer<GroupingConfiguration.Builder> groupingConfiguration) Sets the value of the GroupingConfiguration property for this object.groupingConfiguration
(GroupingConfiguration groupingConfiguration) Sets the value of the GroupingConfiguration property for this object.knowledgeBaseId
(String knowledgeBaseId) The identifier of the knowledge base.The language code value for the language in which the quick response is written.The name of the message template.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags used to organize, track, or control access for this resource.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectRequest.Builder
build
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
-
knowledgeBaseId
The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
- Parameters:
knowledgeBaseId
- The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the message template.
- Parameters:
name
- The name of the message template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the message template.
- Parameters:
content
- The content of the message template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
default CreateMessageTemplateRequest.Builder content(Consumer<MessageTemplateContentProvider.Builder> content) The content of the message template.
This is a convenience method that creates an instance of theMessageTemplateContentProvider.Builder
avoiding the need to create one manually viaMessageTemplateContentProvider.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(MessageTemplateContentProvider)
.- Parameters:
content
- a consumer that will call methods onMessageTemplateContentProvider.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The description of the message template.
- Parameters:
description
- The description of the message template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channelSubtype
The channel subtype this message template applies to.
- Parameters:
channelSubtype
- The channel subtype this message template applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
channelSubtype
The channel subtype this message template applies to.
- Parameters:
channelSubtype
- The channel subtype this message template applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
language
The language code value for the language in which the quick response is written. The supported language codes include
de_DE
,en_US
,es_ES
,fr_FR
,id_ID
,it_IT
,ja_JP
,ko_KR
,pt_BR
,zh_CN
,zh_TW
- Parameters:
language
- The language code value for the language in which the quick response is written. The supported language codes includede_DE
,en_US
,es_ES
,fr_FR
,id_ID
,it_IT
,ja_JP
,ko_KR
,pt_BR
,zh_CN
,zh_TW
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAttributes
An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
- Parameters:
defaultAttributes
- An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultAttributes
default CreateMessageTemplateRequest.Builder defaultAttributes(Consumer<MessageTemplateAttributes.Builder> defaultAttributes) An object that specifies the default values to use for variables in the message template. This object contains different categories of key-value pairs. Each key defines a variable or placeholder in the message template. The corresponding value defines the default value for that variable.
This is a convenience method that creates an instance of theMessageTemplateAttributes.Builder
avoiding the need to create one manually viaMessageTemplateAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaultAttributes(MessageTemplateAttributes)
.- Parameters:
defaultAttributes
- a consumer that will call methods onMessageTemplateAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
groupingConfiguration
CreateMessageTemplateRequest.Builder groupingConfiguration(GroupingConfiguration groupingConfiguration) Sets the value of the GroupingConfiguration property for this object.- Parameters:
groupingConfiguration
- The new value for the GroupingConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupingConfiguration
default CreateMessageTemplateRequest.Builder groupingConfiguration(Consumer<GroupingConfiguration.Builder> groupingConfiguration) Sets the value of the GroupingConfiguration property for this object. This is a convenience method that creates an instance of theGroupingConfiguration.Builder
avoiding the need to create one manually viaGroupingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroupingConfiguration(GroupingConfiguration)
.- Parameters:
groupingConfiguration
- a consumer that will call methods onGroupingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags used to organize, track, or control access for this resource.
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateMessageTemplateRequest.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
CreateMessageTemplateRequest.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.
-