/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { class CancelQueryResult { public: AWS_CLOUDTRAIL_API CancelQueryResult(); AWS_CLOUDTRAIL_API CancelQueryResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDTRAIL_API CancelQueryResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the canceled query.

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

The ID of the canceled query.

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

The ID of the canceled query.

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

The ID of the canceled query.

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

The ID of the canceled query.

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

The ID of the canceled query.

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

The ID of the canceled query.

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

Shows the status of a query after a CancelQuery request. * Typically, the values shown are either RUNNING or * CANCELLED.

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

Shows the status of a query after a CancelQuery request. * Typically, the values shown are either RUNNING or * CANCELLED.

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

Shows the status of a query after a CancelQuery request. * Typically, the values shown are either RUNNING or * CANCELLED.

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

Shows the status of a query after a CancelQuery request. * Typically, the values shown are either RUNNING or * CANCELLED.

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

Shows the status of a query after a CancelQuery request. * Typically, the values shown are either RUNNING or * CANCELLED.

*/ inline CancelQueryResult& WithQueryStatus(QueryStatus&& value) { SetQueryStatus(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 CancelQueryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CancelQueryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CancelQueryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_queryId; QueryStatus m_queryStatus; Aws::String m_requestId; }; } // namespace Model } // namespace CloudTrail } // namespace Aws