Interface CreateTaskTemplateRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<CreateTaskTemplateRequest.Builder,CreateTaskTemplateRequest>,SdkBuilder<CreateTaskTemplateRequest.Builder,CreateTaskTemplateRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateTaskTemplateRequest
public static interface CreateTaskTemplateRequest.Builder extends ConnectRequest.Builder, SdkPojo, CopyableBuilder<CreateTaskTemplateRequest.Builder,CreateTaskTemplateRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateTaskTemplateRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.default CreateTaskTemplateRequest.Builderconstraints(Consumer<TaskTemplateConstraints.Builder> constraints)Constraints that are applicable to the fields listed.CreateTaskTemplateRequest.Builderconstraints(TaskTemplateConstraints constraints)Constraints that are applicable to the fields listed.CreateTaskTemplateRequest.BuildercontactFlowId(String contactFlowId)The identifier of the flow that runs by default when a task is created by referencing this template.default CreateTaskTemplateRequest.Builderdefaults(Consumer<TaskTemplateDefaults.Builder> defaults)The default values for fields when a task is created by referencing this template.CreateTaskTemplateRequest.Builderdefaults(TaskTemplateDefaults defaults)The default values for fields when a task is created by referencing this template.CreateTaskTemplateRequest.Builderdescription(String description)The description of the task template.CreateTaskTemplateRequest.Builderfields(Collection<TaskTemplateField> fields)Fields that are part of the template.CreateTaskTemplateRequest.Builderfields(Consumer<TaskTemplateField.Builder>... fields)Fields that are part of the template.CreateTaskTemplateRequest.Builderfields(TaskTemplateField... fields)Fields that are part of the template.CreateTaskTemplateRequest.BuilderinstanceId(String instanceId)The identifier of the Amazon Connect instance.CreateTaskTemplateRequest.Buildername(String name)The name of the task template.CreateTaskTemplateRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateTaskTemplateRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateTaskTemplateRequest.Builderstatus(String status)Marks a template asACTIVEorINACTIVEfor a task to refer to it.CreateTaskTemplateRequest.Builderstatus(TaskTemplateStatus status)Marks a template asACTIVEorINACTIVEfor a task to refer to it.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
build
-
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
-
-
-
-
Method Detail
-
instanceId
CreateTaskTemplateRequest.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.
-
name
CreateTaskTemplateRequest.Builder name(String 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
CreateTaskTemplateRequest.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
CreateTaskTemplateRequest.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.
-
constraints
CreateTaskTemplateRequest.Builder constraints(TaskTemplateConstraints 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 CreateTaskTemplateRequest.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.Builderavoiding the need to create one manually viaTaskTemplateConstraints.builder().When the
Consumercompletes,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:
constraints(TaskTemplateConstraints)
-
defaults
CreateTaskTemplateRequest.Builder defaults(TaskTemplateDefaults 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
default CreateTaskTemplateRequest.Builder defaults(Consumer<TaskTemplateDefaults.Builder> 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.Builderavoiding the need to create one manually viaTaskTemplateDefaults.builder().When the
Consumercompletes,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:
defaults(TaskTemplateDefaults)
-
status
CreateTaskTemplateRequest.Builder status(String status)
Marks a template as
ACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. If a template is marked asINACTIVE, then a task that refers to this template cannot be created.- Parameters:
status- Marks a template asACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. 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:
TaskTemplateStatus,TaskTemplateStatus
-
status
CreateTaskTemplateRequest.Builder status(TaskTemplateStatus status)
Marks a template as
ACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. If a template is marked asINACTIVE, then a task that refers to this template cannot be created.- Parameters:
status- Marks a template asACTIVEorINACTIVEfor a task to refer to it. Tasks can only be created fromACTIVEtemplates. 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:
TaskTemplateStatus,TaskTemplateStatus
-
fields
CreateTaskTemplateRequest.Builder fields(Collection<TaskTemplateField> 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
CreateTaskTemplateRequest.Builder fields(TaskTemplateField... 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
CreateTaskTemplateRequest.Builder fields(Consumer<TaskTemplateField.Builder>... fields)
Fields that are part of the template.
This is a convenience method that creates an instance of theTaskTemplateField.Builderavoiding the need to create one manually viaTaskTemplateField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fields(List.) - 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:
#fields(java.util.Collection)
-
clientToken
CreateTaskTemplateRequest.Builder clientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateTaskTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTaskTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-