/** * 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 #include namespace Aws { namespace Connect { namespace Model { /** */ class CreateTaskTemplateRequest : public ConnectRequest { public: AWS_CONNECT_API CreateTaskTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTaskTemplate"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

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 bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

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_instanceIdHasBeenSet = true; 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_instanceIdHasBeenSet = true; 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_instanceIdHasBeenSet = true; 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 CreateTaskTemplateRequest& 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 CreateTaskTemplateRequest& 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 CreateTaskTemplateRequest& WithInstanceId(const char* value) { SetInstanceId(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 bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the task template.

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

The name of the task template.

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

The name of the task template.

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

The name of the task template.

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

The name of the task template.

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

The name of the task template.

*/ inline CreateTaskTemplateRequest& 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 bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the task template.

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

The description of the task template.

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

The description of the task template.

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

The description of the task template.

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

The description of the task template.

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

The description of the task template.

*/ inline CreateTaskTemplateRequest& 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 bool ContactFlowIdHasBeenSet() const { return m_contactFlowIdHasBeenSet; } /** *

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_contactFlowIdHasBeenSet = true; 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_contactFlowIdHasBeenSet = true; 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_contactFlowIdHasBeenSet = true; m_contactFlowId.assign(value); } /** *

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

*/ inline CreateTaskTemplateRequest& 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 CreateTaskTemplateRequest& 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 CreateTaskTemplateRequest& 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 bool ConstraintsHasBeenSet() const { return m_constraintsHasBeenSet; } /** *

Constraints that are applicable to the fields listed.

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

Constraints that are applicable to the fields listed.

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

Constraints that are applicable to the fields listed.

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

Constraints that are applicable to the fields listed.

*/ inline CreateTaskTemplateRequest& 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 bool DefaultsHasBeenSet() const { return m_defaultsHasBeenSet; } /** *

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

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

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

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

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

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

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

*/ inline CreateTaskTemplateRequest& WithDefaults(TaskTemplateDefaults&& value) { SetDefaults(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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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_statusHasBeenSet = true; 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_statusHasBeenSet = true; 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 CreateTaskTemplateRequest& 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 CreateTaskTemplateRequest& WithStatus(TaskTemplateStatus&& value) { SetStatus(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 bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

Fields that are part of the template.

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

Fields that are part of the template.

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

Fields that are part of the template.

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

Fields that are part of the template.

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

Fields that are part of the template.

*/ inline CreateTaskTemplateRequest& AddFields(const TaskTemplateField& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

Fields that are part of the template.

*/ inline CreateTaskTemplateRequest& AddFields(TaskTemplateField&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const Aws::String& GetClientToken() const{ return m_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.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

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.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

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.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

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.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

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.

*/ inline CreateTaskTemplateRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

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.

*/ inline CreateTaskTemplateRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

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.

*/ inline CreateTaskTemplateRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_contactFlowId; bool m_contactFlowIdHasBeenSet = false; TaskTemplateConstraints m_constraints; bool m_constraintsHasBeenSet = false; TaskTemplateDefaults m_defaults; bool m_defaultsHasBeenSet = false; TaskTemplateStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws