AWS SDK for C++  1.9.106
AWS SDK for C++
QueryInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CloudWatchLogs
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetQueryId() const{ return m_queryId; }
46 
50  inline bool QueryIdHasBeenSet() const { return m_queryIdHasBeenSet; }
51 
55  inline void SetQueryId(const Aws::String& value) { m_queryIdHasBeenSet = true; m_queryId = value; }
56 
60  inline void SetQueryId(Aws::String&& value) { m_queryIdHasBeenSet = true; m_queryId = std::move(value); }
61 
65  inline void SetQueryId(const char* value) { m_queryIdHasBeenSet = true; m_queryId.assign(value); }
66 
70  inline QueryInfo& WithQueryId(const Aws::String& value) { SetQueryId(value); return *this;}
71 
75  inline QueryInfo& WithQueryId(Aws::String&& value) { SetQueryId(std::move(value)); return *this;}
76 
80  inline QueryInfo& WithQueryId(const char* value) { SetQueryId(value); return *this;}
81 
82 
86  inline const Aws::String& GetQueryString() const{ return m_queryString; }
87 
91  inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
92 
96  inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
97 
101  inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
102 
106  inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
107 
111  inline QueryInfo& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
112 
116  inline QueryInfo& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
117 
121  inline QueryInfo& WithQueryString(const char* value) { SetQueryString(value); return *this;}
122 
123 
129  inline const QueryStatus& GetStatus() const{ return m_status; }
130 
136  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 
143  inline void SetStatus(const QueryStatus& value) { m_statusHasBeenSet = true; m_status = value; }
144 
150  inline void SetStatus(QueryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
151 
157  inline QueryInfo& WithStatus(const QueryStatus& value) { SetStatus(value); return *this;}
158 
164  inline QueryInfo& WithStatus(QueryStatus&& value) { SetStatus(std::move(value)); return *this;}
165 
166 
170  inline long long GetCreateTime() const{ return m_createTime; }
171 
175  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
176 
180  inline void SetCreateTime(long long value) { m_createTimeHasBeenSet = true; m_createTime = value; }
181 
185  inline QueryInfo& WithCreateTime(long long value) { SetCreateTime(value); return *this;}
186 
187 
191  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
192 
196  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
197 
201  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
202 
206  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
207 
211  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
212 
216  inline QueryInfo& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
217 
221  inline QueryInfo& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
222 
226  inline QueryInfo& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
227 
228  private:
229 
230  Aws::String m_queryId;
231  bool m_queryIdHasBeenSet;
232 
233  Aws::String m_queryString;
234  bool m_queryStringHasBeenSet;
235 
236  QueryStatus m_status;
237  bool m_statusHasBeenSet;
238 
239  long long m_createTime;
240  bool m_createTimeHasBeenSet;
241 
242  Aws::String m_logGroupName;
243  bool m_logGroupNameHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace CloudWatchLogs
248 } // namespace Aws
Aws::CloudWatchLogs::Model::QueryInfo::QueryInfo
QueryInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::CloudWatchLogs::Model::QueryInfo
Definition: QueryInfo.h:34
Aws::CloudWatchLogs::Model::QueryInfo::SetQueryString
void SetQueryString(const char *value)
Definition: QueryInfo.h:106
Aws::CloudWatchLogs::Model::QueryInfo::WithLogGroupName
QueryInfo & WithLogGroupName(const Aws::String &value)
Definition: QueryInfo.h:216
Aws::CloudWatchLogs::Model::QueryInfo::operator=
QueryInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CloudWatchLogs::Model::QueryInfo::SetQueryString
void SetQueryString(const Aws::String &value)
Definition: QueryInfo.h:96
Aws::CloudWatchLogs::Model::QueryInfo::SetStatus
void SetStatus(const QueryStatus &value)
Definition: QueryInfo.h:143
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::QueryInfo::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: QueryInfo.h:191
Aws::CloudWatchLogs::Model::QueryInfo::QueryIdHasBeenSet
bool QueryIdHasBeenSet() const
Definition: QueryInfo.h:50
Aws::CloudWatchLogs::Model::QueryInfo::WithQueryId
QueryInfo & WithQueryId(const char *value)
Definition: QueryInfo.h:80
QueryStatus.h
Aws::CloudWatchLogs::Model::QueryInfo::SetQueryId
void SetQueryId(const char *value)
Definition: QueryInfo.h:65
Aws::CloudWatchLogs::Model::QueryInfo::WithQueryString
QueryInfo & WithQueryString(const char *value)
Definition: QueryInfo.h:121
Aws::CloudWatchLogs::Model::QueryInfo::SetQueryId
void SetQueryId(const Aws::String &value)
Definition: QueryInfo.h:55
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::QueryInfo::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: QueryInfo.h:136
Aws::CloudWatchLogs::Model::QueryInfo::GetQueryString
const Aws::String & GetQueryString() const
Definition: QueryInfo.h:86
Aws::CloudWatchLogs::Model::QueryInfo::QueryStringHasBeenSet
bool QueryStringHasBeenSet() const
Definition: QueryInfo.h:91
Aws::CloudWatchLogs::Model::QueryInfo::GetQueryId
const Aws::String & GetQueryId() const
Definition: QueryInfo.h:45
Aws::CloudWatchLogs::Model::QueryStatus
QueryStatus
Definition: QueryStatus.h:17
Aws::CloudWatchLogs::Model::QueryInfo::SetQueryString
void SetQueryString(Aws::String &&value)
Definition: QueryInfo.h:101
Aws::CloudWatchLogs::Model::QueryInfo::GetStatus
const QueryStatus & GetStatus() const
Definition: QueryInfo.h:129
Aws::CloudWatchLogs::Model::QueryInfo::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: QueryInfo.h:201
Aws::CloudWatchLogs::Model::QueryInfo::WithQueryString
QueryInfo & WithQueryString(Aws::String &&value)
Definition: QueryInfo.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CloudWatchLogs::Model::QueryInfo::WithLogGroupName
QueryInfo & WithLogGroupName(const char *value)
Definition: QueryInfo.h:226
Aws::CloudWatchLogs::Model::QueryInfo::WithStatus
QueryInfo & WithStatus(QueryStatus &&value)
Definition: QueryInfo.h:164
Aws::CloudWatchLogs::Model::QueryInfo::WithStatus
QueryInfo & WithStatus(const QueryStatus &value)
Definition: QueryInfo.h:157
Aws::CloudWatchLogs::Model::QueryInfo::WithCreateTime
QueryInfo & WithCreateTime(long long value)
Definition: QueryInfo.h:185
Aws::CloudWatchLogs::Model::QueryInfo::SetQueryId
void SetQueryId(Aws::String &&value)
Definition: QueryInfo.h:60
Aws::CloudWatchLogs::Model::QueryInfo::WithQueryId
QueryInfo & WithQueryId(Aws::String &&value)
Definition: QueryInfo.h:75
Aws::CloudWatchLogs::Model::QueryInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CloudWatchLogs::Model::QueryInfo::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: QueryInfo.h:211
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::QueryInfo::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: QueryInfo.h:196
Aws::CloudWatchLogs::Model::QueryInfo::WithQueryId
QueryInfo & WithQueryId(const Aws::String &value)
Definition: QueryInfo.h:70
Aws::CloudWatchLogs::Model::QueryInfo::QueryInfo
QueryInfo()
Aws::CloudWatchLogs::Model::QueryInfo::SetCreateTime
void SetCreateTime(long long value)
Definition: QueryInfo.h:180
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::QueryInfo::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: QueryInfo.h:175
Aws::CloudWatchLogs::Model::QueryInfo::WithQueryString
QueryInfo & WithQueryString(const Aws::String &value)
Definition: QueryInfo.h:111
Aws::CloudWatchLogs::Model::QueryInfo::WithLogGroupName
QueryInfo & WithLogGroupName(Aws::String &&value)
Definition: QueryInfo.h:221
Aws::CloudWatchLogs::Model::QueryInfo::GetCreateTime
long long GetCreateTime() const
Definition: QueryInfo.h:170
Aws::CloudWatchLogs::Model::QueryInfo::SetStatus
void SetStatus(QueryStatus &&value)
Definition: QueryInfo.h:150
Aws::CloudWatchLogs::Model::QueryInfo::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: QueryInfo.h:206