/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class GetQueryResultsResult { public: AWS_CLOUDTRAIL_API GetQueryResultsResult(); AWS_CLOUDTRAIL_API GetQueryResultsResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API GetQueryResultsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The status of the query. Values include QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

*/ inline const QueryStatus& GetQueryStatus() const{ return m_queryStatus; } /** *

The status of the query. Values include QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

*/ inline void SetQueryStatus(const QueryStatus& value) { m_queryStatus = value; } /** *

The status of the query. Values include QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

*/ inline void SetQueryStatus(QueryStatus&& value) { m_queryStatus = std::move(value); } /** *

The status of the query. Values include QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

*/ inline GetQueryResultsResult& WithQueryStatus(const QueryStatus& value) { SetQueryStatus(value); return *this;} /** *

The status of the query. Values include QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

*/ inline GetQueryResultsResult& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(std::move(value)); return *this;} /** *

Shows the count of query results.

*/ inline const QueryStatistics& GetQueryStatistics() const{ return m_queryStatistics; } /** *

Shows the count of query results.

*/ inline void SetQueryStatistics(const QueryStatistics& value) { m_queryStatistics = value; } /** *

Shows the count of query results.

*/ inline void SetQueryStatistics(QueryStatistics&& value) { m_queryStatistics = std::move(value); } /** *

Shows the count of query results.

*/ inline GetQueryResultsResult& WithQueryStatistics(const QueryStatistics& value) { SetQueryStatistics(value); return *this;} /** *

Shows the count of query results.

*/ inline GetQueryResultsResult& WithQueryStatistics(QueryStatistics&& value) { SetQueryStatistics(std::move(value)); return *this;} /** *

Contains the individual event results of the query.

*/ inline const Aws::Vector>>& GetQueryResultRows() const{ return m_queryResultRows; } /** *

Contains the individual event results of the query.

*/ inline void SetQueryResultRows(const Aws::Vector>>& value) { m_queryResultRows = value; } /** *

Contains the individual event results of the query.

*/ inline void SetQueryResultRows(Aws::Vector>>&& value) { m_queryResultRows = std::move(value); } /** *

Contains the individual event results of the query.

*/ inline GetQueryResultsResult& WithQueryResultRows(const Aws::Vector>>& value) { SetQueryResultRows(value); return *this;} /** *

Contains the individual event results of the query.

*/ inline GetQueryResultsResult& WithQueryResultRows(Aws::Vector>>&& value) { SetQueryResultRows(std::move(value)); return *this;} /** *

Contains the individual event results of the query.

*/ inline GetQueryResultsResult& AddQueryResultRows(const Aws::Vector>& value) { m_queryResultRows.push_back(value); return *this; } /** *

Contains the individual event results of the query.

*/ inline GetQueryResultsResult& AddQueryResultRows(Aws::Vector>&& value) { m_queryResultRows.push_back(std::move(value)); return *this; } /** *

A token you can use to get the next page of query results.

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

A token you can use to get the next page of query results.

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

A token you can use to get the next page of query results.

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

A token you can use to get the next page of query results.

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

A token you can use to get the next page of query results.

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

A token you can use to get the next page of query results.

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

A token you can use to get the next page of query results.

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

The error message returned if a query failed.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

The error message returned if a query failed.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } /** *

The error message returned if a query failed.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } /** *

The error message returned if a query failed.

*/ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** *

The error message returned if a query failed.

*/ inline GetQueryResultsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message returned if a query failed.

*/ inline GetQueryResultsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

The error message returned if a query failed.

*/ inline GetQueryResultsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetQueryResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetQueryResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetQueryResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: QueryStatus m_queryStatus; QueryStatistics m_queryStatistics; Aws::Vector>> m_queryResultRows; Aws::String m_nextToken; Aws::String m_errorMessage; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws