public class UpdateTaskTemplateRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Updates details about a specific task template in the specified Amazon Connect instance. This operation does not support partial updates. Instead it does a full update of template content.
| Constructor and Description |
|---|
UpdateTaskTemplateRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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. |
java.lang.String |
getTaskTemplateId()
A unique identifier for the task template.
|
int |
hashCode() |
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. |
void |
setTaskTemplateId(java.lang.String taskTemplateId)
A unique identifier for the task template.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateTaskTemplateRequest |
withConstraints(TaskTemplateConstraints constraints)
Constraints that are applicable to the fields listed.
|
UpdateTaskTemplateRequest |
withContactFlowId(java.lang.String contactFlowId)
The identifier of the flow that runs by default when a task is created by
referencing this template.
|
UpdateTaskTemplateRequest |
withDefaults(TaskTemplateDefaults defaults)
The default values for fields when a task is created by referencing this
template.
|
UpdateTaskTemplateRequest |
withDescription(java.lang.String description)
The description of the task template.
|
UpdateTaskTemplateRequest |
withFields(java.util.Collection<TaskTemplateField> fields)
Fields that are part of the template.
|
UpdateTaskTemplateRequest |
withFields(TaskTemplateField... fields)
Fields that are part of the template.
|
UpdateTaskTemplateRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
UpdateTaskTemplateRequest |
withName(java.lang.String name)
The name of the task template.
|
UpdateTaskTemplateRequest |
withStatus(java.lang.String status)
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
UpdateTaskTemplateRequest |
withStatus(TaskTemplateStatus status)
Marks a template as
ACTIVE or INACTIVE for a
task to refer to it. |
UpdateTaskTemplateRequest |
withTaskTemplateId(java.lang.String taskTemplateId)
A unique identifier for the task template.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getTaskTemplateId()
A unique identifier for the task template.
Constraints:
Length: 1 - 500
A unique identifier for the task template.
public void setTaskTemplateId(java.lang.String taskTemplateId)
A unique identifier for the task template.
Constraints:
Length: 1 - 500
taskTemplateId - A unique identifier for the task template.
public UpdateTaskTemplateRequest withTaskTemplateId(java.lang.String taskTemplateId)
A unique identifier for the task template.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 500
taskTemplateId - A unique identifier for the task template.
public 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 UpdateTaskTemplateRequest 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 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