Class CfnQuickResponseProps.Builder
java.lang.Object
software.amazon.awscdk.services.wisdom.CfnQuickResponseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQuickResponseProps>
- Enclosing interface:
CfnQuickResponseProps
@Stability(Stable)
public static final class CfnQuickResponseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnQuickResponseProps>
A builder for
CfnQuickResponseProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnQuickResponseProps.getChannels()
content
(IResolvable content) Sets the value ofCfnQuickResponseProps.getContent()
Sets the value ofCfnQuickResponseProps.getContent()
contentType
(String contentType) Sets the value ofCfnQuickResponseProps.getContentType()
description
(String description) Sets the value ofCfnQuickResponseProps.getDescription()
groupingConfiguration
(IResolvable groupingConfiguration) Sets the value ofCfnQuickResponseProps.getGroupingConfiguration()
groupingConfiguration
(CfnQuickResponse.GroupingConfigurationProperty groupingConfiguration) Sets the value ofCfnQuickResponseProps.getGroupingConfiguration()
Sets the value ofCfnQuickResponseProps.getIsActive()
isActive
(IResolvable isActive) Sets the value ofCfnQuickResponseProps.getIsActive()
knowledgeBaseArn
(String knowledgeBaseArn) Sets the value ofCfnQuickResponseProps.getKnowledgeBaseArn()
Sets the value ofCfnQuickResponseProps.getLanguage()
Sets the value ofCfnQuickResponseProps.getName()
shortcutKey
(String shortcutKey) Sets the value ofCfnQuickResponseProps.getShortcutKey()
Sets the value ofCfnQuickResponseProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnQuickResponseProps.getContent()
- Parameters:
content
- The content of the quick response. This parameter is required.- Returns:
this
-
content
@Stability(Stable) public CfnQuickResponseProps.Builder content(CfnQuickResponse.QuickResponseContentProviderProperty content) Sets the value ofCfnQuickResponseProps.getContent()
- Parameters:
content
- The content of the quick response. This parameter is required.- Returns:
this
-
knowledgeBaseArn
Sets the value ofCfnQuickResponseProps.getKnowledgeBaseArn()
- Parameters:
knowledgeBaseArn
- The Amazon Resource Name (ARN) of the knowledge base. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnQuickResponseProps.getName()
- Parameters:
name
- The name of the quick response. This parameter is required.- Returns:
this
-
channels
Sets the value ofCfnQuickResponseProps.getChannels()
- Parameters:
channels
- The Amazon Connect contact channels this quick response applies to. The supported contact channel types includeChat
.- Returns:
this
-
contentType
Sets the value ofCfnQuickResponseProps.getContentType()
- Parameters:
contentType
- The media type of the quick response content.- Use
application/x.quickresponse;format=plain
for quick response written in plain text. - Use
application/x.quickresponse;format=markdown
for quick response written in richtext.
- Use
- Returns:
this
-
description
Sets the value ofCfnQuickResponseProps.getDescription()
- Parameters:
description
- The description of the quick response.- Returns:
this
-
groupingConfiguration
@Stability(Stable) public CfnQuickResponseProps.Builder groupingConfiguration(IResolvable groupingConfiguration) Sets the value ofCfnQuickResponseProps.getGroupingConfiguration()
- Parameters:
groupingConfiguration
- The configuration information of the user groups that the quick response is accessible to.- Returns:
this
-
groupingConfiguration
@Stability(Stable) public CfnQuickResponseProps.Builder groupingConfiguration(CfnQuickResponse.GroupingConfigurationProperty groupingConfiguration) Sets the value ofCfnQuickResponseProps.getGroupingConfiguration()
- Parameters:
groupingConfiguration
- The configuration information of the user groups that the quick response is accessible to.- Returns:
this
-
isActive
Sets the value ofCfnQuickResponseProps.getIsActive()
- Parameters:
isActive
- Whether the quick response is active.- Returns:
this
-
isActive
Sets the value ofCfnQuickResponseProps.getIsActive()
- Parameters:
isActive
- Whether the quick response is active.- Returns:
this
-
language
Sets the value ofCfnQuickResponseProps.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
-
shortcutKey
Sets the value ofCfnQuickResponseProps.getShortcutKey()
- Parameters:
shortcutKey
- The shortcut key of the quick response. The value should be unique across the knowledge base.- Returns:
this
-
tags
Sets the value ofCfnQuickResponseProps.getTags()
- Parameters:
tags
- The tags used to organize, track, or control access for this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnQuickResponseProps>
- Returns:
- a new instance of
CfnQuickResponseProps
- Throws:
NullPointerException
- if any required attribute was not provided
-