Class CfnTaskTemplateMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.connect.CfnTaskTemplateMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskTemplateMixinProps>
- Enclosing interface:
CfnTaskTemplateMixinProps
@Stability(Stable)
public static final class CfnTaskTemplateMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskTemplateMixinProps>
A builder for
CfnTaskTemplateMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientToken(String clientToken) Sets the value ofCfnTaskTemplateMixinProps.getClientToken()constraints(Object constraints) Sets the value ofCfnTaskTemplateMixinProps.getConstraints()contactFlowArn(String contactFlowArn) Sets the value ofCfnTaskTemplateMixinProps.getContactFlowArn()Sets the value ofCfnTaskTemplateMixinProps.getDefaults()defaults(IResolvable defaults) Sets the value ofCfnTaskTemplateMixinProps.getDefaults()description(String description) Sets the value ofCfnTaskTemplateMixinProps.getDescription()Sets the value ofCfnTaskTemplateMixinProps.getFields()fields(IResolvable fields) Sets the value ofCfnTaskTemplateMixinProps.getFields()instanceArn(String instanceArn) Sets the value ofCfnTaskTemplateMixinProps.getInstanceArn()Sets the value ofCfnTaskTemplateMixinProps.getName()selfAssignContactFlowArn(String selfAssignContactFlowArn) Sets the value ofCfnTaskTemplateMixinProps.getSelfAssignContactFlowArn()Sets the value ofCfnTaskTemplateMixinProps.getStatus()Sets the value ofCfnTaskTemplateMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientToken
Sets the value ofCfnTaskTemplateMixinProps.getClientToken()- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
this
-
constraints
Sets the value ofCfnTaskTemplateMixinProps.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 ofCfnTaskTemplateMixinProps.getContactFlowArn()- Parameters:
contactFlowArn- The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.ContactFlowArnis not required when there is a field withfieldType=QUICK_CONNECT.- Returns:
this
-
defaults
Sets the value ofCfnTaskTemplateMixinProps.getDefaults()- Parameters:
defaults- The default values for fields when a task is created by referencing this template.- Returns:
this
-
defaults
@Stability(Stable) public CfnTaskTemplateMixinProps.Builder defaults(List<? extends Object> defaults) Sets the value ofCfnTaskTemplateMixinProps.getDefaults()- Parameters:
defaults- The default values for fields when a task is created by referencing this template.- Returns:
this
-
description
Sets the value ofCfnTaskTemplateMixinProps.getDescription()- Parameters:
description- The description of the task template.- Returns:
this
-
fields
Sets the value ofCfnTaskTemplateMixinProps.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 ofCfnTaskTemplateMixinProps.getFields()- Parameters:
fields- Fields that are part of the template. A template requires at least one field that has typeName.- Returns:
this
-
instanceArn
Sets the value ofCfnTaskTemplateMixinProps.getInstanceArn()- Parameters:
instanceArn- The Amazon Resource Name (ARN) of the Amazon Connect instance.- Returns:
this
-
name
Sets the value ofCfnTaskTemplateMixinProps.getName()- Parameters:
name- The name of the task template.- Returns:
this
-
selfAssignContactFlowArn
@Stability(Stable) public CfnTaskTemplateMixinProps.Builder selfAssignContactFlowArn(String selfAssignContactFlowArn) Sets the value ofCfnTaskTemplateMixinProps.getSelfAssignContactFlowArn()- Parameters:
selfAssignContactFlowArn- The Amazon Resource Name (ARN) of the flow.- Returns:
this
-
status
Sets the value ofCfnTaskTemplateMixinProps.getStatus()- Parameters:
status- The status of the task template.- Returns:
this
-
tags
Sets the value ofCfnTaskTemplateMixinProps.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<CfnTaskTemplateMixinProps>- Returns:
- a new instance of
CfnTaskTemplateMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-