Class CfnTaskTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnTaskTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskTemplateProps>
- Enclosing interface:
CfnTaskTemplateProps
@Stability(Stable)
public static final class CfnTaskTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskTemplateProps>
A builder for
CfnTaskTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clientToken
(String clientToken) Sets the value ofCfnTaskTemplateProps.getClientToken()
constraints
(Object constraints) Sets the value ofCfnTaskTemplateProps.getConstraints()
contactFlowArn
(String contactFlowArn) Sets the value ofCfnTaskTemplateProps.getContactFlowArn()
Sets the value ofCfnTaskTemplateProps.getDefaults()
defaults
(IResolvable defaults) Sets the value ofCfnTaskTemplateProps.getDefaults()
description
(String description) Sets the value ofCfnTaskTemplateProps.getDescription()
Sets the value ofCfnTaskTemplateProps.getFields()
fields
(IResolvable fields) Sets the value ofCfnTaskTemplateProps.getFields()
instanceArn
(String instanceArn) Sets the value ofCfnTaskTemplateProps.getInstanceArn()
Sets the value ofCfnTaskTemplateProps.getName()
Sets the value ofCfnTaskTemplateProps.getStatus()
Sets the value ofCfnTaskTemplateProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceArn
Sets the value ofCfnTaskTemplateProps.getInstanceArn()
- Parameters:
instanceArn
- The Amazon Resource Name (ARN) of the Amazon Connect instance. This parameter is required.- Returns:
this
-
clientToken
Sets the value ofCfnTaskTemplateProps.getClientToken()
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
this
-
constraints
Sets the value ofCfnTaskTemplateProps.getConstraints()
- Parameters:
constraints
- Constraints that are applicable to the fields listed. The values can be represented in either JSON or YAML format. For an example of the JSON configuration, see Examples at the bottom of this page.- Returns:
this
-
contactFlowArn
Sets the value ofCfnTaskTemplateProps.getContactFlowArn()
- Parameters:
contactFlowArn
- The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.ContactFlowArn
is not required when there is a field withfieldType
=QUICK_CONNECT
.- Returns:
this
-
defaults
Sets the value ofCfnTaskTemplateProps.getDefaults()
- Parameters:
defaults
- The default values for fields when a task is created by referencing this template.- Returns:
this
-
defaults
Sets the value ofCfnTaskTemplateProps.getDefaults()
- Parameters:
defaults
- The default values for fields when a task is created by referencing this template.- Returns:
this
-
description
Sets the value ofCfnTaskTemplateProps.getDescription()
- Parameters:
description
- The description of the task template.- Returns:
this
-
fields
Sets the value ofCfnTaskTemplateProps.getFields()
- Parameters:
fields
- Fields that are part of the template. A template requires at least one field that has typeName
.- Returns:
this
-
fields
Sets the value ofCfnTaskTemplateProps.getFields()
- Parameters:
fields
- Fields that are part of the template. A template requires at least one field that has typeName
.- Returns:
this
-
name
Sets the value ofCfnTaskTemplateProps.getName()
- Parameters:
name
- The name of the task template.- Returns:
this
-
status
Sets the value ofCfnTaskTemplateProps.getStatus()
- Parameters:
status
- The status of the task template.- Returns:
this
-
tags
Sets the value ofCfnTaskTemplateProps.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<CfnTaskTemplateProps>
- Returns:
- a new instance of
CfnTaskTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-