Interface UpdateTaskTemplateResponse.Builder

  • Method Details

    • instanceId

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

      Parameters:
      instanceId - The identifier of the Connect Customer 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

      The identifier of the task template resource.

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

      The Amazon Resource Name (ARN) for the task template resource.

      Parameters:
      arn - The Amazon Resource Name (ARN) for the task template resource.
      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

      UpdateTaskTemplateResponse.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

      UpdateTaskTemplateResponse.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

      UpdateTaskTemplateResponse.Builder selfAssignFlowId(String selfAssignFlowId)

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

      Parameters:
      selfAssignFlowId - The 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. Although this parameter is marked as optional in the API model, the service requires it when calling CreateTaskTemplate or UpdateTaskTemplate. The RequiredFields array must contain at least one element, and the field of type NAME must be included in RequiredFields.

      Parameters:
      constraints - Constraints that are applicable to the fields listed. Although this parameter is marked as optional in the API model, the service requires it when calling CreateTaskTemplate or UpdateTaskTemplate. The RequiredFields array must contain at least one element, and the field of type NAME must be included in RequiredFields.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constraints

      Constraints that are applicable to the fields listed. Although this parameter is marked as optional in the API model, the service requires it when calling CreateTaskTemplate or UpdateTaskTemplate. The RequiredFields array must contain at least one element, and the field of type NAME must be included in RequiredFields.

      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

      UpdateTaskTemplateResponse.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

      UpdateTaskTemplateResponse.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.