/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about one CloudWatch Logs Insights query that matches the request
* in a DescribeQueries
operation. See Also:
AWS API
* Reference
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
.
The status of this query. Possible values are Cancelled
,
* Complete
, Failed
, Running
,
* Scheduled
, and Unknown
.
The status of this query. Possible values are Cancelled
,
* Complete
, Failed
, Running
,
* Scheduled
, and Unknown
.
The status of this query. Possible values are Cancelled
,
* Complete
, Failed
, Running
,
* Scheduled
, and Unknown
.
The status of this query. Possible values are Cancelled
,
* Complete
, Failed
, Running
,
* Scheduled
, and Unknown
.
The status of this query. Possible values are Cancelled
,
* Complete
, Failed
, Running
,
* Scheduled
, and Unknown
.
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