/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Connect { namespace Model { /** */ class ListTaskTemplatesRequest : public ConnectRequest { public: AWS_CONNECT_API ListTaskTemplatesRequest(); // 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 "ListTaskTemplates"; } AWS_CONNECT_API Aws::String SerializePayload() const override; AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) 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 ListTaskTemplatesRequest& 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 ListTaskTemplatesRequest& 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 ListTaskTemplatesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline ListTaskTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline ListTaskTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*

It is not expected that you set this because the value returned * in the previous response is always null.

*/ inline ListTaskTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return per page.

It is * not expected that you set this.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return per page.

It is * not expected that you set this.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return per page.

It is * not expected that you set this.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return per page.

It is * not expected that you set this.

*/ inline ListTaskTemplatesRequest& WithMaxResults(int value) { SetMaxResults(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 ListTaskTemplatesRequest& 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 ListTaskTemplatesRequest& WithStatus(TaskTemplateStatus&& value) { SetStatus(std::move(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 ListTaskTemplatesRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the task template.

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

The name of the task template.

*/ inline ListTaskTemplatesRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; TaskTemplateStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws