/** * 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 RedshiftDataAPIService { namespace Model { /** */ class GetStatementResultRequest : public RedshiftDataAPIServiceRequest { public: AWS_REDSHIFTDATAAPISERVICE_API GetStatementResultRequest(); // 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 "GetStatementResult"; } AWS_REDSHIFTDATAAPISERVICE_API Aws::String SerializePayload() const override; AWS_REDSHIFTDATAAPISERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

The identifier of the SQL statement whose results are to be fetched. This * value is a universally unique identifier (UUID) generated by Amazon Redshift * Data API. A suffix indicates then number of the SQL statement. For example, * d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of * :2 that indicates the second SQL statement of a batch query. This * identifier is returned by BatchExecuteStatment, * ExecuteStatment, and ListStatements.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

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

A value that indicates the starting point for the next set of response * records in a subsequent request. If a value is returned in a response, you can * retrieve the next set of records by providing this returned NextToken value in * the next NextToken parameter and retrying the command. If the NextToken field is * empty, all response records have been retrieved for the request.

*/ inline GetStatementResultRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace RedshiftDataAPIService } // namespace Aws