/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudTrail { namespace Model { /** *

A SQL string of criteria about events that you want to collect in an event * data store.

See Also:

AWS * API Reference

*/ class Query { public: AWS_CLOUDTRAIL_API Query(); AWS_CLOUDTRAIL_API Query(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDTRAIL_API Query& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of a query.

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

The ID of a query.

*/ inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; } /** *

The ID of a query.

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

The ID of a query.

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

The ID of a query.

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

The ID of a query.

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

The ID of a query.

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

The ID of a query.

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

The status of the query. This can be QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

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

The status of the query. This can be QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

*/ inline bool QueryStatusHasBeenSet() const { return m_queryStatusHasBeenSet; } /** *

The status of the query. This can be QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

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

The status of the query. This can be QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

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

The status of the query. This can be QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

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

The status of the query. This can be QUEUED, * RUNNING, FINISHED, FAILED, * TIMED_OUT, or CANCELLED.

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

The creation time of a query.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The creation time of a query.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The creation time of a query.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The creation time of a query.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The creation time of a query.

*/ inline Query& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The creation time of a query.

*/ inline Query& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} private: Aws::String m_queryId; bool m_queryIdHasBeenSet = false; QueryStatus m_queryStatus; bool m_queryStatusHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudTrail } // namespace Aws