AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
QueryInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/QueryLanguage.h>
10#include <aws/logs/model/QueryStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs {
22namespace Model {
23
30class QueryInfo {
31 public:
32 AWS_CLOUDWATCHLOGS_API QueryInfo() = default;
33 AWS_CLOUDWATCHLOGS_API QueryInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API QueryInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
45 inline bool QueryLanguageHasBeenSet() const { return m_queryLanguageHasBeenSet; }
46 inline void SetQueryLanguage(QueryLanguage value) {
47 m_queryLanguageHasBeenSet = true;
48 m_queryLanguage = value;
49 }
51 SetQueryLanguage(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetQueryId() const { return m_queryId; }
61 inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
62 template <typename QueryIdT = Aws::String>
63 void SetQueryId(QueryIdT&& value) {
64 m_queryIdHasBeenSet = true;
65 m_queryId = std::forward<QueryIdT>(value);
66 }
67 template <typename QueryIdT = Aws::String>
68 QueryInfo& WithQueryId(QueryIdT&& value) {
69 SetQueryId(std::forward<QueryIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetQueryString() const { return m_queryString; }
79 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
80 template <typename QueryStringT = Aws::String>
81 void SetQueryString(QueryStringT&& value) {
82 m_queryStringHasBeenSet = true;
83 m_queryString = std::forward<QueryStringT>(value);
84 }
85 template <typename QueryStringT = Aws::String>
86 QueryInfo& WithQueryString(QueryStringT&& value) {
87 SetQueryString(std::forward<QueryStringT>(value));
88 return *this;
89 }
91
93
98 inline QueryStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(QueryStatus value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline long long GetCreateTime() const { return m_createTime; }
115 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
116 inline void SetCreateTime(long long value) {
117 m_createTimeHasBeenSet = true;
118 m_createTime = value;
119 }
120 inline QueryInfo& WithCreateTime(long long value) {
121 SetCreateTime(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
131 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
132 template <typename LogGroupNameT = Aws::String>
133 void SetLogGroupName(LogGroupNameT&& value) {
134 m_logGroupNameHasBeenSet = true;
135 m_logGroupName = std::forward<LogGroupNameT>(value);
136 }
137 template <typename LogGroupNameT = Aws::String>
138 QueryInfo& WithLogGroupName(LogGroupNameT&& value) {
139 SetLogGroupName(std::forward<LogGroupNameT>(value));
140 return *this;
141 }
143 private:
144 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
145
146 Aws::String m_queryId;
147
148 Aws::String m_queryString;
149
151
152 long long m_createTime{0};
153
154 Aws::String m_logGroupName;
155 bool m_queryLanguageHasBeenSet = false;
156 bool m_queryIdHasBeenSet = false;
157 bool m_queryStringHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159 bool m_createTimeHasBeenSet = false;
160 bool m_logGroupNameHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CloudWatchLogs
165} // namespace Aws
void SetLogGroupName(LogGroupNameT &&value)
Definition QueryInfo.h:133
AWS_CLOUDWATCHLOGS_API QueryInfo(Aws::Utils::Json::JsonView jsonValue)
QueryInfo & WithStatus(QueryStatus value)
Definition QueryInfo.h:104
AWS_CLOUDWATCHLOGS_API QueryInfo()=default
QueryLanguage GetQueryLanguage() const
Definition QueryInfo.h:44
QueryInfo & WithLogGroupName(LogGroupNameT &&value)
Definition QueryInfo.h:138
void SetQueryString(QueryStringT &&value)
Definition QueryInfo.h:81
QueryInfo & WithQueryString(QueryStringT &&value)
Definition QueryInfo.h:86
const Aws::String & GetQueryString() const
Definition QueryInfo.h:78
QueryInfo & WithQueryLanguage(QueryLanguage value)
Definition QueryInfo.h:50
QueryInfo & WithQueryId(QueryIdT &&value)
Definition QueryInfo.h:68
QueryInfo & WithCreateTime(long long value)
Definition QueryInfo.h:120
const Aws::String & GetQueryId() const
Definition QueryInfo.h:60
AWS_CLOUDWATCHLOGS_API QueryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetQueryLanguage(QueryLanguage value)
Definition QueryInfo.h:46
void SetQueryId(QueryIdT &&value)
Definition QueryInfo.h:63
void SetCreateTime(long long value)
Definition QueryInfo.h:116
const Aws::String & GetLogGroupName() const
Definition QueryInfo.h:130
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(QueryStatus value)
Definition QueryInfo.h:100
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue