/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

Information about one CloudWatch Logs Insights query that matches the request * in a DescribeQueries operation.

See Also:

AWS API * Reference

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The unique ID number of this query.

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

The query string used in this query.

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

The query string used in this query.

*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *

The query string used in this query.

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

The query string used in this query.

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

The query string used in this query.

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

The query string used in this query.

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

The query string used in this query.

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

The query string used in this query.

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

The status of this query. Possible values are Cancelled, * Complete, Failed, Running, * Scheduled, and Unknown.

*/ inline const QueryStatus& GetStatus() const{ return m_status; } /** *

The status of this query. Possible values are Cancelled, * Complete, Failed, Running, * Scheduled, and Unknown.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of this query. Possible values are Cancelled, * Complete, Failed, Running, * Scheduled, and Unknown.

*/ inline void SetStatus(const QueryStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of this query. Possible values are Cancelled, * Complete, Failed, Running, * Scheduled, and Unknown.

*/ inline void SetStatus(QueryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of this query. Possible values are Cancelled, * Complete, Failed, Running, * Scheduled, and Unknown.

*/ inline QueryInfo& WithStatus(const QueryStatus& value) { SetStatus(value); return *this;} /** *

The status of this query. Possible values are Cancelled, * Complete, Failed, Running, * Scheduled, and Unknown.

*/ inline QueryInfo& WithStatus(QueryStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The date and time that this query was created.

*/ inline long long GetCreateTime() const{ return m_createTime; } /** *

The date and time that this query was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The date and time that this query was created.

*/ inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The date and time that this query was created.

*/ inline QueryInfo& WithCreateTime(long long value) { SetCreateTime(value); return *this;} /** *

The name of the log group scanned by this query.

*/ inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; } /** *

The name of the log group scanned by this query.

*/ inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; } /** *

The name of the log group scanned by this query.

*/ inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; } /** *

The name of the log group scanned by this query.

*/ inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); } /** *

The name of the log group scanned by this query.

*/ inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); } /** *

The name of the log group scanned by this query.

*/ inline QueryInfo& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;} /** *

The name of the log group scanned by this query.

*/ inline QueryInfo& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;} /** *

The name of the log group scanned by this query.

*/ inline QueryInfo& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;} private: Aws::String m_queryId; bool m_queryIdHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; QueryStatus m_status; bool m_statusHasBeenSet = false; long long m_createTime; bool m_createTimeHasBeenSet = false; Aws::String m_logGroupName; bool m_logGroupNameHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws