/** * 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 GetQueryResultsRequest : public AthenaRequest { public: AWS_ATHENA_API GetQueryResultsRequest(); // 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 "GetQueryResults"; } AWS_ATHENA_API Aws::String SerializePayload() const override; AWS_ATHENA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique ID of the query execution.

*/ inline const Aws::String& GetQueryExecutionId() const{ return m_queryExecutionId; } /** *

The unique ID of the query execution.

*/ inline bool QueryExecutionIdHasBeenSet() const { return m_queryExecutionIdHasBeenSet; } /** *

The unique ID of the query execution.

*/ inline void SetQueryExecutionId(const Aws::String& value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId = value; } /** *

The unique ID of the query execution.

*/ inline void SetQueryExecutionId(Aws::String&& value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId = std::move(value); } /** *

The unique ID of the query execution.

*/ inline void SetQueryExecutionId(const char* value) { m_queryExecutionIdHasBeenSet = true; m_queryExecutionId.assign(value); } /** *

The unique ID of the query execution.

*/ inline GetQueryResultsRequest& WithQueryExecutionId(const Aws::String& value) { SetQueryExecutionId(value); return *this;} /** *

The unique ID of the query execution.

*/ inline GetQueryResultsRequest& WithQueryExecutionId(Aws::String&& value) { SetQueryExecutionId(std::move(value)); return *this;} /** *

The unique ID of the query execution.

*/ inline GetQueryResultsRequest& WithQueryExecutionId(const char* value) { SetQueryExecutionId(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 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 GetQueryResultsRequest& 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 GetQueryResultsRequest& 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 GetQueryResultsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results (rows) to return in this request.

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

The maximum number of results (rows) to return in this request.

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

The maximum number of results (rows) to return in this request.

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

The maximum number of results (rows) to return in this request.

*/ inline GetQueryResultsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_queryExecutionId; bool m_queryExecutionIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Athena } // namespace Aws