/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Connect { namespace Model { class UpdateTaskTemplateResult { public: AWS_CONNECT_API UpdateTaskTemplateResult(); AWS_CONNECT_API UpdateTaskTemplateResult(const Aws::AmazonWebServiceResult& result); AWS_CONNECT_API UpdateTaskTemplateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceId = value; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline UpdateTaskTemplateResult& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline UpdateTaskTemplateResult& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline UpdateTaskTemplateResult& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The identifier of the task template resource.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the task template resource.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The identifier of the task template resource.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The identifier of the task template resource.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The identifier of the task template resource.

*/ inline UpdateTaskTemplateResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the task template resource.

*/ inline UpdateTaskTemplateResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the task template resource.

*/ inline UpdateTaskTemplateResult& WithId(const char* value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline UpdateTaskTemplateResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline UpdateTaskTemplateResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the task template resource.

*/ inline UpdateTaskTemplateResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the task template.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the task template.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the task template.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the task template.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the task template.

*/ inline UpdateTaskTemplateResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the task template.

*/ inline UpdateTaskTemplateResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the task template.

*/ inline UpdateTaskTemplateResult& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the task template.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the task template.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the task template.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description of the task template.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the task template.

*/ inline UpdateTaskTemplateResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the task template.

*/ inline UpdateTaskTemplateResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the task template.

*/ inline UpdateTaskTemplateResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline const Aws::String& GetContactFlowId() const{ return m_contactFlowId; } /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline void SetContactFlowId(const Aws::String& value) { m_contactFlowId = value; } /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline void SetContactFlowId(Aws::String&& value) { m_contactFlowId = std::move(value); } /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline void SetContactFlowId(const char* value) { m_contactFlowId.assign(value); } /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline UpdateTaskTemplateResult& WithContactFlowId(const Aws::String& value) { SetContactFlowId(value); return *this;} /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline UpdateTaskTemplateResult& WithContactFlowId(Aws::String&& value) { SetContactFlowId(std::move(value)); return *this;} /** *

The identifier of the flow that runs by default when a task is created by * referencing this template.

*/ inline UpdateTaskTemplateResult& WithContactFlowId(const char* value) { SetContactFlowId(value); return *this;} /** *

Constraints that are applicable to the fields listed.

*/ inline const TaskTemplateConstraints& GetConstraints() const{ return m_constraints; } /** *

Constraints that are applicable to the fields listed.

*/ inline void SetConstraints(const TaskTemplateConstraints& value) { m_constraints = value; } /** *

Constraints that are applicable to the fields listed.

*/ inline void SetConstraints(TaskTemplateConstraints&& value) { m_constraints = std::move(value); } /** *

Constraints that are applicable to the fields listed.

*/ inline UpdateTaskTemplateResult& WithConstraints(const TaskTemplateConstraints& value) { SetConstraints(value); return *this;} /** *

Constraints that are applicable to the fields listed.

*/ inline UpdateTaskTemplateResult& WithConstraints(TaskTemplateConstraints&& value) { SetConstraints(std::move(value)); return *this;} /** *

The default values for fields when a task is created by referencing this * template.

*/ inline const TaskTemplateDefaults& GetDefaults() const{ return m_defaults; } /** *

The default values for fields when a task is created by referencing this * template.

*/ inline void SetDefaults(const TaskTemplateDefaults& value) { m_defaults = value; } /** *

The default values for fields when a task is created by referencing this * template.

*/ inline void SetDefaults(TaskTemplateDefaults&& value) { m_defaults = std::move(value); } /** *

The default values for fields when a task is created by referencing this * template.

*/ inline UpdateTaskTemplateResult& WithDefaults(const TaskTemplateDefaults& value) { SetDefaults(value); return *this;} /** *

The default values for fields when a task is created by referencing this * template.

*/ inline UpdateTaskTemplateResult& WithDefaults(TaskTemplateDefaults&& value) { SetDefaults(std::move(value)); return *this;} /** *

Fields that are part of the template.

*/ inline const Aws::Vector& GetFields() const{ return m_fields; } /** *

Fields that are part of the template.

*/ inline void SetFields(const Aws::Vector& value) { m_fields = value; } /** *

Fields that are part of the template.

*/ inline void SetFields(Aws::Vector&& value) { m_fields = std::move(value); } /** *

Fields that are part of the template.

*/ inline UpdateTaskTemplateResult& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

Fields that are part of the template.

*/ inline UpdateTaskTemplateResult& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

Fields that are part of the template.

*/ inline UpdateTaskTemplateResult& AddFields(const TaskTemplateField& value) { m_fields.push_back(value); return *this; } /** *

Fields that are part of the template.

*/ inline UpdateTaskTemplateResult& AddFields(TaskTemplateField&& value) { m_fields.push_back(std::move(value)); 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.

*/ inline const TaskTemplateStatus& GetStatus() const{ return m_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.

*/ inline void SetStatus(const TaskTemplateStatus& value) { m_status = value; } /** *

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.

*/ inline void SetStatus(TaskTemplateStatus&& value) { m_status = std::move(value); } /** *

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.

*/ inline UpdateTaskTemplateResult& WithStatus(const TaskTemplateStatus& value) { SetStatus(value); 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.

*/ inline UpdateTaskTemplateResult& WithStatus(TaskTemplateStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The timestamp when the task template was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The timestamp when the task template was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

The timestamp when the task template was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

The timestamp when the task template was last modified.

*/ inline UpdateTaskTemplateResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The timestamp when the task template was last modified.

*/ inline UpdateTaskTemplateResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

The timestamp when the task template was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The timestamp when the task template was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTime = value; } /** *

The timestamp when the task template was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTime = std::move(value); } /** *

The timestamp when the task template was created.

*/ inline UpdateTaskTemplateResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The timestamp when the task template was created.

*/ inline UpdateTaskTemplateResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateTaskTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateTaskTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateTaskTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_instanceId; Aws::String m_id; Aws::String m_arn; Aws::String m_name; Aws::String m_description; Aws::String m_contactFlowId; TaskTemplateConstraints m_constraints; TaskTemplateDefaults m_defaults; Aws::Vector m_fields; TaskTemplateStatus m_status; Aws::Utils::DateTime m_lastModifiedTime; Aws::Utils::DateTime m_createdTime; Aws::String m_requestId; }; } // namespace Model } // namespace Connect } // namespace Aws