/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Athena { namespace Model { /** */ class ListQueryExecutionsRequest : public AthenaRequest { public: AWS_ATHENA_API ListQueryExecutionsRequest(); // 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 "ListQueryExecutions"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

A token generated by the Athena service that specifies where to continue * pagination if a previous request was truncated. To obtain the next set of pages, * pass in the NextToken from the response object of the previous page * call.

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

The maximum number of query executions to return in this request.

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

The maximum number of query executions to return in this request.

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

The maximum number of query executions to return in this request.

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

The maximum number of query executions to return in this request.

*/ inline ListQueryExecutionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline const Aws::String& GetWorkGroup() const{ return m_workGroup; } /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline bool WorkGroupHasBeenSet() const { return m_workGroupHasBeenSet; } /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline void SetWorkGroup(const Aws::String& value) { m_workGroupHasBeenSet = true; m_workGroup = value; } /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline void SetWorkGroup(Aws::String&& value) { m_workGroupHasBeenSet = true; m_workGroup = std::move(value); } /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline void SetWorkGroup(const char* value) { m_workGroupHasBeenSet = true; m_workGroup.assign(value); } /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline ListQueryExecutionsRequest& WithWorkGroup(const Aws::String& value) { SetWorkGroup(value); return *this;} /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline ListQueryExecutionsRequest& WithWorkGroup(Aws::String&& value) { SetWorkGroup(std::move(value)); return *this;} /** *

The name of the workgroup from which queries are being returned. If a * workgroup is not specified, a list of available query execution IDs for the * queries in the primary workgroup is returned.

*/ inline ListQueryExecutionsRequest& WithWorkGroup(const char* value) { SetWorkGroup(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_workGroup; bool m_workGroupHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws