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 Details

    • create

      @Stability(Stable) public static CfnTaskTemplate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTaskTemplate.Builder.
    • instanceArn

      @Stability(Stable) public CfnTaskTemplate.Builder instanceArn(String 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

      @Stability(Stable) public CfnTaskTemplate.Builder clientToken(String 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

      @Stability(Stable) public CfnTaskTemplate.Builder constraints(Object 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

      @Stability(Stable) public CfnTaskTemplate.Builder contactFlowArn(String 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 with fieldType = 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

      @Stability(Stable) public CfnTaskTemplate.Builder defaults(IResolvable 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

      @Stability(Stable) public CfnTaskTemplate.Builder defaults(List<? extends Object> 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

      @Stability(Stable) public CfnTaskTemplate.Builder description(String description)
      The description of the task template.

      Parameters:
      description - The description of the task template. This parameter is required.
      Returns:
      this
    • fields

      @Stability(Stable) public CfnTaskTemplate.Builder fields(IResolvable 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

      @Stability(Stable) public CfnTaskTemplate.Builder fields(List<? extends Object> 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

      @Stability(Stable) public CfnTaskTemplate.Builder name(String name)
      The name of the task template.

      Parameters:
      name - The name of the task template. This parameter is required.
      Returns:
      this
    • status

      @Stability(Stable) public CfnTaskTemplate.Builder status(String status)
      The status of the task template.

      Parameters:
      status - The status of the task template. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnTaskTemplate.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnTaskTemplate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTaskTemplate>
      Returns:
      a newly built instance of CfnTaskTemplate.