Interface GetTaskTemplateResponse.Builder

  • Method Details

    • instanceId

      GetTaskTemplateResponse.Builder instanceId(String instanceId)

      The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

      Parameters:
      instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      A unique identifier for the task template.

      Parameters:
      id - A unique identifier for the task template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN).

      Parameters:
      arn - The Amazon Resource Name (ARN).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the task template.

      Parameters:
      name - The name of the task template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      GetTaskTemplateResponse.Builder description(String description)

      The description of the task template.

      Parameters:
      description - The description of the task template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contactFlowId

      GetTaskTemplateResponse.Builder contactFlowId(String contactFlowId)

      The identifier of the flow that runs by default when a task is created by referencing this template.

      Parameters:
      contactFlowId - The identifier of the flow that runs by default when a task is created by referencing this template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selfAssignFlowId

      GetTaskTemplateResponse.Builder selfAssignFlowId(String selfAssignFlowId)

      ContactFlowId for the flow that will be run if this template is used to create a self-assigned task

      Parameters:
      selfAssignFlowId - ContactFlowId for the flow that will be run if this template is used to create a self-assigned task
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      Constraints that are applicable to the fields listed.

      Parameters:
      constraints - Constraints that are applicable to the fields listed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      Constraints that are applicable to the fields listed.

      This is a convenience method that creates an instance of the TaskTemplateConstraints.Builder avoiding the need to create one manually via TaskTemplateConstraints.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to constraints(TaskTemplateConstraints).

      Parameters:
      constraints - a consumer that will call methods on TaskTemplateConstraints.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaults

      The default values for fields when a task is created by referencing this template.

      This is a convenience method that creates an instance of the TaskTemplateDefaults.Builder avoiding the need to create one manually via TaskTemplateDefaults.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to defaults(TaskTemplateDefaults).

      Parameters:
      defaults - a consumer that will call methods on TaskTemplateDefaults.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fields

      Fields that are part of the template.

      Parameters:
      fields - Fields that are part of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fields

      Fields that are part of the template.

      Parameters:
      fields - Fields that are part of the template.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fields

      Fields that are part of the template.

      This is a convenience method that creates an instance of the TaskTemplateField.Builder avoiding the need to create one manually via TaskTemplateField.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fields(List<TaskTemplateField>).

      Parameters:
      fields - a consumer that will call methods on TaskTemplateField.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.

      Parameters:
      status - Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.

      Parameters:
      status - Marks a template as ACTIVE or INACTIVE for a task to refer to it. Tasks can only be created from ACTIVE templates. If a template is marked as INACTIVE, then a task that refers to this template cannot be created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastModifiedTime

      GetTaskTemplateResponse.Builder lastModifiedTime(Instant lastModifiedTime)

      The timestamp when the task template was last modified.

      Parameters:
      lastModifiedTime - The timestamp when the task template was last modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdTime

      GetTaskTemplateResponse.Builder createdTime(Instant createdTime)

      The timestamp when the task template was created.

      Parameters:
      createdTime - The timestamp when the task template was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

      Parameters:
      tags - The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
      Returns:
      Returns a reference to this object so that method calls can be chained together.