/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DescribeQueryResult { public: AWS_CLOUDTRAIL_API DescribeQueryResult(); AWS_CLOUDTRAIL_API DescribeQueryResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API DescribeQueryResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the query.

*/ inline const Aws::String& GetQueryId() const{ return m_queryId; } /** *

The ID of the query.

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

The ID of the query.

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

The ID of the query.

*/ inline void SetQueryId(const char* value) { m_queryId.assign(value); } /** *

The ID of the query.

*/ inline DescribeQueryResult& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;} /** *

The ID of the query.

*/ inline DescribeQueryResult& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;} /** *

The ID of the query.

*/ inline DescribeQueryResult& WithQueryId(const char* value) { SetQueryId(value); return *this;} /** *

The SQL code of a query.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The SQL code of a query.

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

The SQL code of a query.

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

The SQL code of a query.

*/ inline void SetQueryString(const char* value) { m_queryString.assign(value); } /** *

The SQL code of a query.

*/ inline DescribeQueryResult& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The SQL code of a query.

*/ inline DescribeQueryResult& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The SQL code of a query.

*/ inline DescribeQueryResult& WithQueryString(const char* value) { SetQueryString(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

Metadata about a query, including the number of events that were matched, the * total number of events scanned, the query run time in milliseconds, and the * query's creation time.

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

Metadata about a query, including the number of events that were matched, the * total number of events scanned, the query run time in milliseconds, and the * query's creation time.

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

Metadata about a query, including the number of events that were matched, the * total number of events scanned, the query run time in milliseconds, and the * query's creation time.

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

Metadata about a query, including the number of events that were matched, the * total number of events scanned, the query run time in milliseconds, and the * query's creation time.

*/ inline DescribeQueryResult& WithQueryStatistics(const QueryStatisticsForDescribeQuery& value) { SetQueryStatistics(value); return *this;} /** *

Metadata about a query, including the number of events that were matched, the * total number of events scanned, the query run time in milliseconds, and the * query's creation time.

*/ inline DescribeQueryResult& WithQueryStatistics(QueryStatisticsForDescribeQuery&& value) { SetQueryStatistics(std::move(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 DescribeQueryResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

The error message returned if a query failed.

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

The error message returned if a query failed.

*/ inline DescribeQueryResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

*/ inline const Aws::String& GetDeliveryS3Uri() const{ return m_deliveryS3Uri; } /** *

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

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

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

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

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

*/ inline void SetDeliveryS3Uri(const char* value) { m_deliveryS3Uri.assign(value); } /** *

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

*/ inline DescribeQueryResult& WithDeliveryS3Uri(const Aws::String& value) { SetDeliveryS3Uri(value); return *this;} /** *

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

*/ inline DescribeQueryResult& WithDeliveryS3Uri(Aws::String&& value) { SetDeliveryS3Uri(std::move(value)); return *this;} /** *

The URI for the S3 bucket where CloudTrail delivered query results, if * applicable.

*/ inline DescribeQueryResult& WithDeliveryS3Uri(const char* value) { SetDeliveryS3Uri(value); return *this;} /** *

The delivery status.

*/ inline const DeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; } /** *

The delivery status.

*/ inline void SetDeliveryStatus(const DeliveryStatus& value) { m_deliveryStatus = value; } /** *

The delivery status.

*/ inline void SetDeliveryStatus(DeliveryStatus&& value) { m_deliveryStatus = std::move(value); } /** *

The delivery status.

*/ inline DescribeQueryResult& WithDeliveryStatus(const DeliveryStatus& value) { SetDeliveryStatus(value); return *this;} /** *

The delivery status.

*/ inline DescribeQueryResult& WithDeliveryStatus(DeliveryStatus&& value) { SetDeliveryStatus(std::move(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 DescribeQueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeQueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeQueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_queryId; Aws::String m_queryString; QueryStatus m_queryStatus; QueryStatisticsForDescribeQuery m_queryStatistics; Aws::String m_errorMessage; Aws::String m_deliveryS3Uri; DeliveryStatus m_deliveryStatus; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws