/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.connect.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* 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. *
*/ public class UpdateTaskTemplateRequest extends AmazonWebServiceRequest implements Serializable { /** ** A unique identifier for the task template. *
*
* Constraints:
* Length: 1 - 500
*/
private String taskTemplateId;
/**
*
* 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
*/
private String instanceId;
/**
*
* The name of the task template. *
*
* Constraints:
* Length: 1 - 100
*/
private String name;
/**
*
* The description of the task template. *
*
* Constraints:
* Length: 1 - 255
*/
private String description;
/**
*
* The identifier of the flow that runs by default when a task is created by * referencing this template. *
*
* Constraints:
* Length: - 500
*/
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; /** *
* 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
*/
private String status;
/**
*
* Fields that are part of the template. *
*/ private java.util.List* A unique identifier for the task template. *
*
* Constraints:
* Length: 1 - 500
*
* @return
* A unique identifier for the task template. *
*/ public String getTaskTemplateId() { return taskTemplateId; } /** ** A unique identifier for the task template. *
*
* Constraints:
* Length: 1 - 500
*
* @param taskTemplateId
* A unique identifier for the task template. *
*/ public void setTaskTemplateId(String taskTemplateId) { this.taskTemplateId = 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
*
* @param taskTemplateId
* A unique identifier for the task template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withTaskTemplateId(String taskTemplateId) { this.taskTemplateId = taskTemplateId; return this; } /** ** 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
*
* @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 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
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 100
*
* @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 A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withInstanceId(String instanceId) { this.instanceId = instanceId; return this; } /** ** The name of the task template. *
*
* Constraints:
* Length: 1 - 100
*
* @return
* The name of the task template. *
*/ public String getName() { return name; } /** ** The name of the task template. *
*
* Constraints:
* Length: 1 - 100
*
* @param name
* The name of the task template. *
*/ public void setName(String name) { this.name = 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
*
* @param name
* The name of the task template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withName(String name) { this.name = name; return this; } /** ** The description of the task template. *
*
* Constraints:
* Length: 1 - 255
*
* @return
* The description of the task template. *
*/ public String getDescription() { return description; } /** ** The description of the task template. *
*
* Constraints:
* Length: 1 - 255
*
* @param description
* The description of the task template. *
*/ public void setDescription(String description) { this.description = 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
*
* @param description
* The description of the task template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withDescription(String description) { this.description = description; return this; } /** ** The identifier of the flow that runs by default when a task is created by * referencing this template. *
*
* Constraints:
* Length: - 500
*
* @return
* The identifier of the flow that runs by default when a task is * created by referencing this template. *
*/ public String getContactFlowId() { return contactFlowId; } /** ** The identifier of the flow that runs by default when a task is created by * referencing this template. *
*
* Constraints:
* Length: - 500
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 500
*
* @param contactFlowId
* The identifier of the flow that runs by default when a task is * created by referencing this template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withContactFlowId(String contactFlowId) { this.contactFlowId = contactFlowId; return this; } /** ** Constraints that are applicable to the fields listed. *
* * @return* Constraints that are applicable to the fields listed. *
*/ public TaskTemplateConstraints getConstraints() { return constraints; } /** ** 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param constraints
* Constraints that are applicable to the fields listed. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withConstraints(TaskTemplateConstraints constraints) { this.constraints = constraints; return this; } /** ** 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 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. *
*/ public void setDefaults(TaskTemplateDefaults defaults) { this.defaults = 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. * * @param defaults
* The default values for fields when a task is created by * referencing this template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withDefaults(TaskTemplateDefaults defaults) { this.defaults = defaults; 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.
*
* Constraints:
* Allowed Values: ACTIVE, INACTIVE
*
* @return
* 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.
*
* 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
*
* @param 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.
*
* 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
*
* @param 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.
*
* 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
*
* @param 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.
*
* 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
*
* @param 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.
*
* 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param fields
* Fields that are part of the template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withFields(TaskTemplateField... fields) { if (getFields() == null) { this.fields = new java.util.ArrayList* Fields that are part of the template. *
** Returns a reference to this object so that method calls can be chained * together. * * @param fields
* Fields that are part of the template. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UpdateTaskTemplateRequest withFields(java.util.Collection