public class CreateTaskTemplateRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates a new task template in the specified Amazon Connect instance.
| Constructor and Description |
|---|
CreateTaskTemplateRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
TaskTemplateConstraints |
getConstraints()
Constraints that are applicable to the fields listed.
|
java.lang.String |
getContactFlowId()
The identifier of the flow that runs by default when a task is created by
referencing this template.
|
TaskTemplateDefaults |
getDefaults()
The default values for fields when a task is created by referencing this
template.
|
java.lang.String |
getDescription()
The description of the task template.
|
java.util.List<TaskTemplateField> |
getFields()
Fields that are part of the template.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getName()
The name of the task template.
|
java.lang.String |
getStatus()
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
void |
setConstraints(TaskTemplateConstraints constraints)
Constraints that are applicable to the fields listed.
|
void |
setContactFlowId(java.lang.String contactFlowId)
The identifier of the flow that runs by default when a task is created by
referencing this template.
|
void |
setDefaults(TaskTemplateDefaults defaults)
The default values for fields when a task is created by referencing this
template.
|
void |
setDescription(java.lang.String description)
The description of the task template.
|
void |
setFields(java.util.Collection<TaskTemplateField> fields)
Fields that are part of the template.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setName(java.lang.String name)
The name of the task template.
|
void |
setStatus(java.lang.String status)
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
void |
setStatus(TaskTemplateStatus status)
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTaskTemplateRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
CreateTaskTemplateRequest |
withConstraints(TaskTemplateConstraints constraints)
Constraints that are applicable to the fields listed.
|
CreateTaskTemplateRequest |
withContactFlowId(java.lang.String contactFlowId)
The identifier of the flow that runs by default when a task is created by
referencing this template.
|
CreateTaskTemplateRequest |
withDefaults(TaskTemplateDefaults defaults)
The default values for fields when a task is created by referencing this
template.
|
CreateTaskTemplateRequest |
withDescription(java.lang.String description)
The description of the task template.
|
CreateTaskTemplateRequest |
withFields(java.util.Collection<TaskTemplateField> fields)
Fields that are part of the template.
|
CreateTaskTemplateRequest |
withFields(TaskTemplateField... fields)
Fields that are part of the template.
|
CreateTaskTemplateRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
CreateTaskTemplateRequest |
withName(java.lang.String name)
The name of the task template.
|
CreateTaskTemplateRequest |
withStatus(java.lang.String status)
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
CreateTaskTemplateRequest |
withStatus(TaskTemplateStatus status)
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public CreateTaskTemplateRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.lang.String getName()
The name of the task template.
Constraints:
Length: 1 - 100
The name of the task template.
public void setName(java.lang.String name)
The name of the task template.
Constraints:
Length: 1 - 100
name - The name of the task template.
public CreateTaskTemplateRequest withName(java.lang.String name)
The name of the task template.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
name - The name of the task template.
public java.lang.String getDescription()
The description of the task template.
Constraints:
Length: 1 - 255
The description of the task template.
public void setDescription(java.lang.String description)
The description of the task template.
Constraints:
Length: 1 - 255
description - The description of the task template.
public CreateTaskTemplateRequest withDescription(java.lang.String description)
The description of the task template.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
description - The description of the task template.
public java.lang.String getContactFlowId()
The identifier of the flow that runs by default when a task is created by referencing this template.
Constraints:
Length: - 500
The identifier of the flow that runs by default when a task is created by referencing this template.
public void setContactFlowId(java.lang.String contactFlowId)
The identifier of the flow that runs by default when a task is created by referencing this template.
Constraints:
Length: - 500
contactFlowId - The identifier of the flow that runs by default when a task is created by referencing this template.
public CreateTaskTemplateRequest withContactFlowId(java.lang.String contactFlowId)
The identifier of the flow that runs by default when a task is created by referencing this template.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 500
contactFlowId - The identifier of the flow that runs by default when a task is created by referencing this template.
public TaskTemplateConstraints getConstraints()
Constraints that are applicable to the fields listed.
Constraints that are applicable to the fields listed.
public void setConstraints(TaskTemplateConstraints constraints)
Constraints that are applicable to the fields listed.
constraints - Constraints that are applicable to the fields listed.
public CreateTaskTemplateRequest withConstraints(TaskTemplateConstraints constraints)
Constraints that are applicable to the fields listed.
Returns a reference to this object so that method calls can be chained together.
constraints - Constraints that are applicable to the fields listed.
public TaskTemplateDefaults getDefaults()
The default values for fields when a task is created by referencing this template.
The default values for fields when a task is created by referencing this template.
public void setDefaults(TaskTemplateDefaults defaults)
The default values for fields when a task is created by referencing this template.
defaults - The default values for fields when a task is created by referencing this template.
public CreateTaskTemplateRequest withDefaults(TaskTemplateDefaults defaults)
The default values for fields when a task is created by referencing this template.
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.
public java.lang.String getStatus()
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.
Constraints:
Allowed Values: ACTIVE, INACTIVE
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.
TaskTemplateStatuspublic void setStatus(java.lang.String 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.
Constraints:
Allowed Values: ACTIVE, INACTIVE
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.
TaskTemplateStatuspublic CreateTaskTemplateRequest withStatus(java.lang.String 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 a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, INACTIVE
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.
TaskTemplateStatuspublic void setStatus(TaskTemplateStatus 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.
Constraints:
Allowed Values: ACTIVE, INACTIVE
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.
TaskTemplateStatuspublic CreateTaskTemplateRequest withStatus(TaskTemplateStatus 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 a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, INACTIVE
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.
TaskTemplateStatuspublic java.util.List<TaskTemplateField> getFields()
Fields that are part of the template.
Fields that are part of the template.
public void setFields(java.util.Collection<TaskTemplateField> fields)
Fields that are part of the template.
fields - Fields that are part of the template.
public CreateTaskTemplateRequest withFields(TaskTemplateField... fields)
Fields that are part of the template.
Returns a reference to this object so that method calls can be chained together.
fields - Fields that are part of the template.
public CreateTaskTemplateRequest withFields(java.util.Collection<TaskTemplateField> fields)
Fields that are part of the template.
Returns a reference to this object so that method calls can be chained together.
fields - Fields that are part of the template.
public java.lang.String getClientToken()
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.
Constraints:
Length: - 500
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.
public void setClientToken(java.lang.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.
Constraints:
Length: - 500
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.
public CreateTaskTemplateRequest withClientToken(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 500
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.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object