* The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *
*/ private String instanceId; /** ** A unique identifier for the task template. *
*/ private String id; /** ** The Amazon Resource Name (ARN). *
*/ private String arn; /** ** The name of the task template. *
*/ private String name; /** ** The description of the task template. *
*/ private String description; /** ** The identifier of the flow that runs by default when a task is created by referencing this template. *
*/ private String contactFlowId; /** ** Constraints that are applicable to the fields listed. *
*/ private TaskTemplateConstraints constraints; /** ** The default values for fields when a task is created by referencing this template. *
*/ private TaskTemplateDefaults defaults; /** ** Fields that are part of the template. *
*/ private java.util.List
* 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.
*
* The timestamp when the task template was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** The timestamp when the task template was created. *
*/ private java.util.Date createdTime; /** ** The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
*/ private java.util.Map* The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *
* * @param instanceId * 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(String instanceId) { this.instanceId = instanceId; } /** ** The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *
* * @return The identifier of the Amazon Connect instance. You can find the instance * ID in the Amazon Resource Name (ARN) of the instance. */ public String getInstanceId() { return this.instanceId; } /** ** The identifier of the Amazon Connect instance. You can find the instance ID in * the Amazon Resource Name (ARN) of the instance. *
* * @param instanceId * The identifier of the Amazon Connect instance. You can find the instance * ID in the Amazon Resource Name (ARN) of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** A unique identifier for the task template. *
* * @param id * A unique identifier for the task template. */ public void setId(String id) { this.id = id; } /** ** A unique identifier for the task template. *
* * @return A unique identifier for the task template. */ public String getId() { return this.id; } /** ** A unique identifier for the task template. *
* * @param id * A unique identifier for the task template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name (ARN). *
* * @param arn * The Amazon Resource Name (ARN). */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN). *
* * @return The Amazon Resource Name (ARN). */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN). *
* * @param arn * The Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withArn(String arn) { setArn(arn); return this; } /** ** The name of the task template. *
* * @param name * The name of the task template. */ public void setName(String name) { this.name = name; } /** ** The name of the task template. *
* * @return The name of the task template. */ public String getName() { return this.name; } /** ** The name of the task template. *
* * @param name * The name of the task template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withName(String name) { setName(name); return this; } /** ** The description of the task template. *
* * @param description * The description of the task template. */ public void setDescription(String description) { this.description = description; } /** ** The description of the task template. *
* * @return The description of the task template. */ public String getDescription() { return this.description; } /** ** The description of the task template. *
* * @param description * The description of the task template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withDescription(String description) { setDescription(description); return this; } /** ** The identifier of the flow that runs by default when a task is created by referencing this template. *
* * @param contactFlowId * The identifier of the flow that runs by default when a task is created by referencing this template. */ public void setContactFlowId(String contactFlowId) { this.contactFlowId = contactFlowId; } /** ** The identifier of the flow that runs by default when a task is created by referencing this template. *
* * @return The identifier of the flow that runs by default when a task is created by referencing this template. */ public String getContactFlowId() { return this.contactFlowId; } /** ** The identifier of the flow that runs by default when a task is created by referencing this template. *
* * @param contactFlowId * The identifier of the flow that runs by default when a task is created by referencing this template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withContactFlowId(String contactFlowId) { setContactFlowId(contactFlowId); return this; } /** ** Constraints that are applicable to the fields listed. *
* * @param constraints * Constraints that are applicable to the fields listed. */ public void setConstraints(TaskTemplateConstraints constraints) { this.constraints = constraints; } /** ** Constraints that are applicable to the fields listed. *
* * @return Constraints that are applicable to the fields listed. */ public TaskTemplateConstraints getConstraints() { return this.constraints; } /** ** Constraints that are applicable to the fields listed. *
* * @param constraints * Constraints that are applicable to the fields listed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withConstraints(TaskTemplateConstraints constraints) { setConstraints(constraints); return this; } /** ** The default values for fields when a task is created by referencing this template. *
* * @param defaults * The default values for fields when a task is created by referencing this template. */ public void setDefaults(TaskTemplateDefaults defaults) { this.defaults = defaults; } /** ** The default values for fields when a task is created by referencing this template. *
* * @return The default values for fields when a task is created by referencing this template. */ public TaskTemplateDefaults getDefaults() { return this.defaults; } /** ** The default values for fields when a task is created by referencing this template. *
* * @param defaults * The default values for fields when a task is created by referencing this template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withDefaults(TaskTemplateDefaults defaults) { setDefaults(defaults); return this; } /** ** Fields that are part of the template. *
* * @return Fields that are part of the template. */ public java.util.List* Fields that are part of the template. *
* * @param fields * Fields that are part of the template. */ public void setFields(java.util.Collection* Fields that are part of the template. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFields(java.util.Collection)} or {@link #withFields(java.util.Collection)} if you want to override the * existing values. *
* * @param fields * Fields that are part of the template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withFields(TaskTemplateField... fields) { if (this.fields == null) { setFields(new java.util.ArrayList* Fields that are part of the template. *
* * @param fields * Fields that are part of the template. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withFields(java.util.Collection
* 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.
*
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.
* @see TaskTemplateStatus
*/
public void setStatus(String status) {
this.status = 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.
*
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.
* @see TaskTemplateStatus
*/
public String getStatus() {
return this.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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskTemplateStatus
*/
public GetTaskTemplateResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskTemplateStatus
*/
public GetTaskTemplateResult withStatus(TaskTemplateStatus status) {
this.status = status.toString();
return this;
}
/**
* * The timestamp when the task template was last modified. *
* * @param lastModifiedTime * The timestamp when the task template was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The timestamp when the task template was last modified. *
* * @return The timestamp when the task template was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** ** The timestamp when the task template was last modified. *
* * @param lastModifiedTime * The timestamp when the task template was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** ** The timestamp when the task template was created. *
* * @param createdTime * The timestamp when the task template was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The timestamp when the task template was created. *
* * @return The timestamp when the task template was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The timestamp when the task template was created. *
* * @param createdTime * The timestamp when the task template was created. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @return The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. */ public java.util.Map* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @param tags * The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. */ public void setTags(java.util.Map* The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* * @param tags * The tags used to organize, track, or control access for this resource. For example, { "tags": * {"key1":"value1", "key2":"value2"} }. * @return Returns a reference to this object so that method calls can be chained together. */ public GetTaskTemplateResult withTags(java.util.Map