Interface GetTaskTemplateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,ConnectResponse.Builder
,CopyableBuilder<GetTaskTemplateResponse.Builder,
,GetTaskTemplateResponse> SdkBuilder<GetTaskTemplateResponse.Builder,
,GetTaskTemplateResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetTaskTemplateResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN).default GetTaskTemplateResponse.Builder
constraints
(Consumer<TaskTemplateConstraints.Builder> constraints) Constraints that are applicable to the fields listed.constraints
(TaskTemplateConstraints constraints) Constraints that are applicable to the fields listed.contactFlowId
(String contactFlowId) The identifier of the flow that runs by default when a task is created by referencing this template.createdTime
(Instant createdTime) The timestamp when the task template was created.default GetTaskTemplateResponse.Builder
defaults
(Consumer<TaskTemplateDefaults.Builder> defaults) The default values for fields when a task is created by referencing this template.defaults
(TaskTemplateDefaults 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
(Collection<TaskTemplateField> fields) Fields that are part of the template.fields
(Consumer<TaskTemplateField.Builder>... fields) Fields that are part of the template.fields
(TaskTemplateField... fields) Fields that are part of the template.A unique identifier for the task template.instanceId
(String instanceId) The identifier of the Amazon Connect instance.lastModifiedTime
(Instant lastModifiedTime) The timestamp when the task template was last modified.The name of the task template.Marks a template asACTIVE
orINACTIVE
for a task to refer to it.status
(TaskTemplateStatus status) Marks a template asACTIVE
orINACTIVE
for a task to refer to it.The tags used to organize, track, or control access for this resource.Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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
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.
-
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
default GetTaskTemplateResponse.Builder constraints(Consumer<TaskTemplateConstraints.Builder> constraints) Constraints that are applicable to the fields listed.
This is a convenience method that creates an instance of theTaskTemplateConstraints.Builder
avoiding the need to create one manually viaTaskTemplateConstraints.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconstraints(TaskTemplateConstraints)
.- Parameters:
constraints
- a consumer that will call methods onTaskTemplateConstraints.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 theTaskTemplateDefaults.Builder
avoiding the need to create one manually viaTaskTemplateDefaults.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefaults(TaskTemplateDefaults)
.- Parameters:
defaults
- a consumer that will call methods onTaskTemplateDefaults.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 theTaskTemplateField.Builder
avoiding the need to create one manually viaTaskTemplateField.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofields(List<TaskTemplateField>)
.- Parameters:
fields
- a consumer that will call methods onTaskTemplateField.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Marks a template as
ACTIVE
orINACTIVE
for a task to refer to it. Tasks can only be created fromACTIVE
templates. If a template is marked asINACTIVE
, then a task that refers to this template cannot be created.- Parameters:
status
- Marks a template asACTIVE
orINACTIVE
for a task to refer to it. Tasks can only be created fromACTIVE
templates. If a template is marked asINACTIVE
, 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
orINACTIVE
for a task to refer to it. Tasks can only be created fromACTIVE
templates. If a template is marked asINACTIVE
, then a task that refers to this template cannot be created.- Parameters:
status
- Marks a template asACTIVE
orINACTIVE
for a task to refer to it. Tasks can only be created fromACTIVE
templates. If a template is marked asINACTIVE
, 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
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
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.
-