Class CfnTaskTemplate.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnTaskTemplate.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskTemplate>
- Enclosing class:
- CfnTaskTemplate
@Stability(Stable)
public static final class CfnTaskTemplate.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskTemplate>
A fluent builder for
CfnTaskTemplate
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.constraints
(Object constraints) Constraints that are applicable to the fields listed.contactFlowArn
(String contactFlowArn) The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.static CfnTaskTemplate.Builder
The default values for fields when a task is created by referencing this template.defaults
(IResolvable defaults) The default values for fields when a task is created by referencing this template.description
(String description) The description of the task template.Fields that are part of the template.fields
(IResolvable fields) Fields that are part of the template.instanceArn
(String instanceArn) The Amazon Resource Name (ARN) of the Amazon Connect instance.The name of the task template.The status of the task template.The tags used to organize, track, or control access for this resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnTaskTemplate.Builder
.
-
instanceArn
The Amazon Resource Name (ARN) of the Amazon Connect instance.- Parameters:
instanceArn
- The Amazon Resource Name (ARN) of the Amazon Connect instance. This parameter is required.- Returns:
this
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This parameter is required.- Returns:
this
-
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.
- Parameters:
constraints
- Constraints that are applicable to the fields listed. This parameter is required.- Returns:
this
-
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
.- Parameters:
contactFlowArn
- The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template. This parameter is required.- Returns:
this
-
defaults
The default values for fields when a task is created by referencing this template.- Parameters:
defaults
- The default values for fields when a task is created by referencing this template. This parameter is required.- Returns:
this
-
defaults
The default values for fields when a task is created by referencing this template.- Parameters:
defaults
- The default values for fields when a task is created by referencing this template. This parameter is required.- Returns:
this
-
description
The description of the task template.- Parameters:
description
- The description of the task template. This parameter is required.- Returns:
this
-
fields
Fields that are part of the template.A template requires at least one field that has type
Name
.- Parameters:
fields
- Fields that are part of the template. This parameter is required.- Returns:
this
-
fields
Fields that are part of the template.A template requires at least one field that has type
Name
.- Parameters:
fields
- Fields that are part of the template. This parameter is required.- Returns:
this
-
name
The name of the task template.- Parameters:
name
- The name of the task template. This parameter is required.- Returns:
this
-
status
The status of the task template.- Parameters:
status
- The status of the task template. This parameter is required.- Returns:
this
-
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. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskTemplate>
- Returns:
- a newly built instance of
CfnTaskTemplate
.
-