Class CfnMessageTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnMessageTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMessageTemplateProps>
- Enclosing interface:
CfnMessageTemplateProps
@Stability(Stable)
public static final class CfnMessageTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMessageTemplateProps>
A builder for
CfnMessageTemplateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.channelSubtype(String channelSubtype) Sets the value ofCfnMessageTemplateProps.getChannelSubtype()content(IResolvable content) Sets the value ofCfnMessageTemplateProps.getContent()Sets the value ofCfnMessageTemplateProps.getContent()defaultAttributes(IResolvable defaultAttributes) Sets the value ofCfnMessageTemplateProps.getDefaultAttributes()defaultAttributes(CfnMessageTemplate.MessageTemplateAttributesProperty defaultAttributes) Sets the value ofCfnMessageTemplateProps.getDefaultAttributes()description(String description) Sets the value ofCfnMessageTemplateProps.getDescription()groupingConfiguration(IResolvable groupingConfiguration) Sets the value ofCfnMessageTemplateProps.getGroupingConfiguration()groupingConfiguration(CfnMessageTemplate.GroupingConfigurationProperty groupingConfiguration) Sets the value ofCfnMessageTemplateProps.getGroupingConfiguration()knowledgeBaseArn(String knowledgeBaseArn) Sets the value ofCfnMessageTemplateProps.getKnowledgeBaseArn()Sets the value ofCfnMessageTemplateProps.getLanguage()messageTemplateAttachments(List<? extends Object> messageTemplateAttachments) Sets the value ofCfnMessageTemplateProps.getMessageTemplateAttachments()messageTemplateAttachments(IResolvable messageTemplateAttachments) Sets the value ofCfnMessageTemplateProps.getMessageTemplateAttachments()Sets the value ofCfnMessageTemplateProps.getName()Sets the value ofCfnMessageTemplateProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelSubtype
Sets the value ofCfnMessageTemplateProps.getChannelSubtype()- Parameters:
channelSubtype- The channel subtype this message template applies to. This parameter is required.- Returns:
this
-
content
Sets the value ofCfnMessageTemplateProps.getContent()- Parameters:
content- The content of the message template. This parameter is required.- Returns:
this
-
content
@Stability(Stable) public CfnMessageTemplateProps.Builder content(CfnMessageTemplate.ContentProperty content) Sets the value ofCfnMessageTemplateProps.getContent()- Parameters:
content- The content of the message template. This parameter is required.- Returns:
this
-
knowledgeBaseArn
Sets the value ofCfnMessageTemplateProps.getKnowledgeBaseArn()- Parameters:
knowledgeBaseArn- The Amazon Resource Name (ARN) of the knowledge base. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnMessageTemplateProps.getName()- Parameters:
name- The name of the message template. This parameter is required.- Returns:
this
-
defaultAttributes
@Stability(Stable) public CfnMessageTemplateProps.Builder defaultAttributes(IResolvable defaultAttributes) Sets the value ofCfnMessageTemplateProps.getDefaultAttributes()- 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:
this
-
defaultAttributes
@Stability(Stable) public CfnMessageTemplateProps.Builder defaultAttributes(CfnMessageTemplate.MessageTemplateAttributesProperty defaultAttributes) Sets the value ofCfnMessageTemplateProps.getDefaultAttributes()- 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:
this
-
description
Sets the value ofCfnMessageTemplateProps.getDescription()- Parameters:
description- The description of the message template.- Returns:
this
-
groupingConfiguration
@Stability(Stable) public CfnMessageTemplateProps.Builder groupingConfiguration(IResolvable groupingConfiguration) Sets the value ofCfnMessageTemplateProps.getGroupingConfiguration()- Parameters:
groupingConfiguration- The configuration information of the external data source.- Returns:
this
-
groupingConfiguration
@Stability(Stable) public CfnMessageTemplateProps.Builder groupingConfiguration(CfnMessageTemplate.GroupingConfigurationProperty groupingConfiguration) Sets the value ofCfnMessageTemplateProps.getGroupingConfiguration()- Parameters:
groupingConfiguration- The configuration information of the external data source.- Returns:
this
-
language
Sets the value ofCfnMessageTemplateProps.getLanguage()- 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:
this
-
messageTemplateAttachments
@Stability(Stable) public CfnMessageTemplateProps.Builder messageTemplateAttachments(IResolvable messageTemplateAttachments) Sets the value ofCfnMessageTemplateProps.getMessageTemplateAttachments()- Parameters:
messageTemplateAttachments- List of message template attachments.- Returns:
this
-
messageTemplateAttachments
@Stability(Stable) public CfnMessageTemplateProps.Builder messageTemplateAttachments(List<? extends Object> messageTemplateAttachments) Sets the value ofCfnMessageTemplateProps.getMessageTemplateAttachments()- Parameters:
messageTemplateAttachments- List of message template attachments.- Returns:
this
-
tags
Sets the value ofCfnMessageTemplateProps.getTags()- Parameters:
tags- The tags used to organize, track, or control access for this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMessageTemplateProps>- Returns:
- a new instance of
CfnMessageTemplateProps - Throws:
NullPointerException- if any required attribute was not provided
-