AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
GetScheduledQueryResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/DestinationConfiguration.h>
12#include <aws/logs/model/ExecutionStatus.h>
13#include <aws/logs/model/QueryLanguage.h>
14#include <aws/logs/model/ScheduleType.h>
15#include <aws/logs/model/ScheduledQueryState.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace CloudWatchLogs {
29namespace Model {
31 public:
32 AWS_CLOUDWATCHLOGS_API GetScheduledQueryResult() = default;
35
37
40 inline const Aws::String& GetScheduledQueryArn() const { return m_scheduledQueryArn; }
41 template <typename ScheduledQueryArnT = Aws::String>
42 void SetScheduledQueryArn(ScheduledQueryArnT&& value) {
43 m_scheduledQueryArnHasBeenSet = true;
44 m_scheduledQueryArn = std::forward<ScheduledQueryArnT>(value);
45 }
46 template <typename ScheduledQueryArnT = Aws::String>
47 GetScheduledQueryResult& WithScheduledQueryArn(ScheduledQueryArnT&& value) {
48 SetScheduledQueryArn(std::forward<ScheduledQueryArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
92 inline void SetQueryLanguage(QueryLanguage value) {
93 m_queryLanguageHasBeenSet = true;
94 m_queryLanguage = value;
95 }
97 SetQueryLanguage(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetQueryString() const { return m_queryString; }
107 template <typename QueryStringT = Aws::String>
108 void SetQueryString(QueryStringT&& value) {
109 m_queryStringHasBeenSet = true;
110 m_queryString = std::forward<QueryStringT>(value);
111 }
112 template <typename QueryStringT = Aws::String>
114 SetQueryString(std::forward<QueryStringT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
124 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
125 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
126 m_logGroupIdentifiersHasBeenSet = true;
127 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
128 }
129 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
130 GetScheduledQueryResult& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
131 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
132 return *this;
133 }
134 template <typename LogGroupIdentifiersT = Aws::String>
135 GetScheduledQueryResult& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
136 m_logGroupIdentifiersHasBeenSet = true;
137 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
147 template <typename ScheduleExpressionT = Aws::String>
148 void SetScheduleExpression(ScheduleExpressionT&& value) {
149 m_scheduleExpressionHasBeenSet = true;
150 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
151 }
152 template <typename ScheduleExpressionT = Aws::String>
153 GetScheduledQueryResult& WithScheduleExpression(ScheduleExpressionT&& value) {
154 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetTimezone() const { return m_timezone; }
164 template <typename TimezoneT = Aws::String>
165 void SetTimezone(TimezoneT&& value) {
166 m_timezoneHasBeenSet = true;
167 m_timezone = std::forward<TimezoneT>(value);
168 }
169 template <typename TimezoneT = Aws::String>
171 SetTimezone(std::forward<TimezoneT>(value));
172 return *this;
173 }
175
177
181 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
182 inline void SetStartTimeOffset(long long value) {
183 m_startTimeOffsetHasBeenSet = true;
184 m_startTimeOffset = value;
185 }
187 SetStartTimeOffset(value);
188 return *this;
189 }
191
193
197 inline long long GetEndTimeOffset() const { return m_endTimeOffset; }
198 inline void SetEndTimeOffset(long long value) {
199 m_endTimeOffsetHasBeenSet = true;
200 m_endTimeOffset = value;
201 }
203 SetEndTimeOffset(value);
204 return *this;
205 }
207
209
212 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
213 template <typename DestinationConfigurationT = DestinationConfiguration>
214 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
215 m_destinationConfigurationHasBeenSet = true;
216 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
217 }
218 template <typename DestinationConfigurationT = DestinationConfiguration>
219 GetScheduledQueryResult& WithDestinationConfiguration(DestinationConfigurationT&& value) {
220 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
221 return *this;
222 }
224
226
229 inline ScheduledQueryState GetState() const { return m_state; }
230 inline void SetState(ScheduledQueryState value) {
231 m_stateHasBeenSet = true;
232 m_state = value;
233 }
235 SetState(value);
236 return *this;
237 }
239
241
245 inline ScheduleType GetScheduleType() const { return m_scheduleType; }
246 inline void SetScheduleType(ScheduleType value) {
247 m_scheduleTypeHasBeenSet = true;
248 m_scheduleType = value;
249 }
251 SetScheduleType(value);
252 return *this;
253 }
255
257
260 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
261 inline void SetLastTriggeredTime(long long value) {
262 m_lastTriggeredTimeHasBeenSet = true;
263 m_lastTriggeredTime = value;
264 }
267 return *this;
268 }
270
272
275 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
277 m_lastExecutionStatusHasBeenSet = true;
278 m_lastExecutionStatus = value;
279 }
282 return *this;
283 }
285
287
290 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
291 inline void SetScheduleStartTime(long long value) {
292 m_scheduleStartTimeHasBeenSet = true;
293 m_scheduleStartTime = value;
294 }
297 return *this;
298 }
300
302
305 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
306 inline void SetScheduleEndTime(long long value) {
307 m_scheduleEndTimeHasBeenSet = true;
308 m_scheduleEndTime = value;
309 }
311 SetScheduleEndTime(value);
312 return *this;
313 }
315
317
320 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
321 template <typename ExecutionRoleArnT = Aws::String>
322 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
323 m_executionRoleArnHasBeenSet = true;
324 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
325 }
326 template <typename ExecutionRoleArnT = Aws::String>
327 GetScheduledQueryResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
328 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
329 return *this;
330 }
332
334
337 inline long long GetCreationTime() const { return m_creationTime; }
338 inline void SetCreationTime(long long value) {
339 m_creationTimeHasBeenSet = true;
340 m_creationTime = value;
341 }
342 inline GetScheduledQueryResult& WithCreationTime(long long value) {
343 SetCreationTime(value);
344 return *this;
345 }
347
349
352 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
353 inline void SetLastUpdatedTime(long long value) {
354 m_lastUpdatedTimeHasBeenSet = true;
355 m_lastUpdatedTime = value;
356 }
358 SetLastUpdatedTime(value);
359 return *this;
360 }
362
364
365 inline const Aws::String& GetRequestId() const { return m_requestId; }
366 template <typename RequestIdT = Aws::String>
367 void SetRequestId(RequestIdT&& value) {
368 m_requestIdHasBeenSet = true;
369 m_requestId = std::forward<RequestIdT>(value);
370 }
371 template <typename RequestIdT = Aws::String>
373 SetRequestId(std::forward<RequestIdT>(value));
374 return *this;
375 }
377 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
378
379 private:
380 Aws::String m_scheduledQueryArn;
381
382 Aws::String m_name;
383
384 Aws::String m_description;
385
386 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
387
388 Aws::String m_queryString;
389
390 Aws::Vector<Aws::String> m_logGroupIdentifiers;
391
392 Aws::String m_scheduleExpression;
393
394 Aws::String m_timezone;
395
396 long long m_startTimeOffset{0};
397
398 long long m_endTimeOffset{0};
399
400 DestinationConfiguration m_destinationConfiguration;
401
403
404 ScheduleType m_scheduleType{ScheduleType::NOT_SET};
405
406 long long m_lastTriggeredTime{0};
407
408 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
409
410 long long m_scheduleStartTime{0};
411
412 long long m_scheduleEndTime{0};
413
414 Aws::String m_executionRoleArn;
415
416 long long m_creationTime{0};
417
418 long long m_lastUpdatedTime{0};
419
420 Aws::String m_requestId;
421 Aws::Http::HttpResponseCode m_HttpResponseCode;
422 bool m_scheduledQueryArnHasBeenSet = false;
423 bool m_nameHasBeenSet = false;
424 bool m_descriptionHasBeenSet = false;
425 bool m_queryLanguageHasBeenSet = false;
426 bool m_queryStringHasBeenSet = false;
427 bool m_logGroupIdentifiersHasBeenSet = false;
428 bool m_scheduleExpressionHasBeenSet = false;
429 bool m_timezoneHasBeenSet = false;
430 bool m_startTimeOffsetHasBeenSet = false;
431 bool m_endTimeOffsetHasBeenSet = false;
432 bool m_destinationConfigurationHasBeenSet = false;
433 bool m_stateHasBeenSet = false;
434 bool m_scheduleTypeHasBeenSet = false;
435 bool m_lastTriggeredTimeHasBeenSet = false;
436 bool m_lastExecutionStatusHasBeenSet = false;
437 bool m_scheduleStartTimeHasBeenSet = false;
438 bool m_scheduleEndTimeHasBeenSet = false;
439 bool m_executionRoleArnHasBeenSet = false;
440 bool m_creationTimeHasBeenSet = false;
441 bool m_lastUpdatedTimeHasBeenSet = false;
442 bool m_requestIdHasBeenSet = false;
443};
444
445} // namespace Model
446} // namespace CloudWatchLogs
447} // namespace Aws
AWS_CLOUDWATCHLOGS_API GetScheduledQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScheduledQueryResult & WithScheduledQueryArn(ScheduledQueryArnT &&value)
GetScheduledQueryResult & WithCreationTime(long long value)
GetScheduledQueryResult & WithState(ScheduledQueryState value)
GetScheduledQueryResult & WithQueryString(QueryStringT &&value)
AWS_CLOUDWATCHLOGS_API GetScheduledQueryResult()=default
GetScheduledQueryResult & WithRequestId(RequestIdT &&value)
GetScheduledQueryResult & WithDescription(DescriptionT &&value)
GetScheduledQueryResult & WithStartTimeOffset(long long value)
GetScheduledQueryResult & WithScheduleType(ScheduleType value)
GetScheduledQueryResult & WithScheduleStartTime(long long value)
GetScheduledQueryResult & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
GetScheduledQueryResult & WithExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
GetScheduledQueryResult & WithScheduleExpression(ScheduleExpressionT &&value)
GetScheduledQueryResult & WithLastUpdatedTime(long long value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
GetScheduledQueryResult & WithName(NameT &&value)
GetScheduledQueryResult & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
const DestinationConfiguration & GetDestinationConfiguration() const
GetScheduledQueryResult & WithScheduleEndTime(long long value)
GetScheduledQueryResult & WithQueryLanguage(QueryLanguage value)
GetScheduledQueryResult & WithTimezone(TimezoneT &&value)
GetScheduledQueryResult & WithLastTriggeredTime(long long value)
GetScheduledQueryResult & WithLastExecutionStatus(ExecutionStatus value)
GetScheduledQueryResult & WithDestinationConfiguration(DestinationConfigurationT &&value)
AWS_CLOUDWATCHLOGS_API GetScheduledQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetScheduledQueryResult & WithEndTimeOffset(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue