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.selfAssignContactFlowArn
(String selfAssignContactFlowArn) The Amazon Resource Name (ARN) of the flow.The status of the task template.The tags used to organize, track, or control access for this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnTaskTemplate.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
description
The description of the task template.- Parameters:
description
- The description of the task template. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
name
The name of the task template.- Parameters:
name
- The name of the task template. This parameter is required.- Returns:
this
- See Also:
-
selfAssignContactFlowArn
@Stability(Stable) public CfnTaskTemplate.Builder selfAssignContactFlowArn(String selfAssignContactFlowArn) The Amazon Resource Name (ARN) of the flow.- Parameters:
selfAssignContactFlowArn
- The Amazon Resource Name (ARN) of the flow. This parameter is required.- Returns:
this
- See Also:
-
status
The status of the task template.- Parameters:
status
- The status of the task template. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskTemplate>
- Returns:
- a newly built instance of
CfnTaskTemplate
.
-