AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
UpdateScheduledQueryResult.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 UpdateScheduledQueryResult() = 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>
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>>
131 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
132 return *this;
133 }
134 template <typename LogGroupIdentifiersT = Aws::String>
135 UpdateScheduledQueryResult& 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>
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
180 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
181 inline void SetStartTimeOffset(long long value) {
182 m_startTimeOffsetHasBeenSet = true;
183 m_startTimeOffset = value;
184 }
186 SetStartTimeOffset(value);
187 return *this;
188 }
190
192
195 inline long long GetEndTimeOffset() const { return m_endTimeOffset; }
196 inline void SetEndTimeOffset(long long value) {
197 m_endTimeOffsetHasBeenSet = true;
198 m_endTimeOffset = value;
199 }
201 SetEndTimeOffset(value);
202 return *this;
203 }
205
207
210 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
211 template <typename DestinationConfigurationT = DestinationConfiguration>
212 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
213 m_destinationConfigurationHasBeenSet = true;
214 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
215 }
216 template <typename DestinationConfigurationT = DestinationConfiguration>
217 UpdateScheduledQueryResult& WithDestinationConfiguration(DestinationConfigurationT&& value) {
218 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
219 return *this;
220 }
222
224
227 inline ScheduledQueryState GetState() const { return m_state; }
228 inline void SetState(ScheduledQueryState value) {
229 m_stateHasBeenSet = true;
230 m_state = value;
231 }
233 SetState(value);
234 return *this;
235 }
237
239
242 inline ScheduleType GetScheduleType() const { return m_scheduleType; }
243 inline void SetScheduleType(ScheduleType value) {
244 m_scheduleTypeHasBeenSet = true;
245 m_scheduleType = value;
246 }
248 SetScheduleType(value);
249 return *this;
250 }
252
254
257 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
258 inline void SetLastTriggeredTime(long long value) {
259 m_lastTriggeredTimeHasBeenSet = true;
260 m_lastTriggeredTime = value;
261 }
264 return *this;
265 }
267
269
272 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
274 m_lastExecutionStatusHasBeenSet = true;
275 m_lastExecutionStatus = value;
276 }
279 return *this;
280 }
282
284
287 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
288 inline void SetScheduleStartTime(long long value) {
289 m_scheduleStartTimeHasBeenSet = true;
290 m_scheduleStartTime = value;
291 }
294 return *this;
295 }
297
299
302 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
303 inline void SetScheduleEndTime(long long value) {
304 m_scheduleEndTimeHasBeenSet = true;
305 m_scheduleEndTime = value;
306 }
308 SetScheduleEndTime(value);
309 return *this;
310 }
312
314
317 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
318 template <typename ExecutionRoleArnT = Aws::String>
319 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
320 m_executionRoleArnHasBeenSet = true;
321 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
322 }
323 template <typename ExecutionRoleArnT = Aws::String>
325 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
326 return *this;
327 }
329
331
334 inline long long GetCreationTime() const { return m_creationTime; }
335 inline void SetCreationTime(long long value) {
336 m_creationTimeHasBeenSet = true;
337 m_creationTime = value;
338 }
340 SetCreationTime(value);
341 return *this;
342 }
344
346
349 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
350 inline void SetLastUpdatedTime(long long value) {
351 m_lastUpdatedTimeHasBeenSet = true;
352 m_lastUpdatedTime = value;
353 }
355 SetLastUpdatedTime(value);
356 return *this;
357 }
359
361
362 inline const Aws::String& GetRequestId() const { return m_requestId; }
363 template <typename RequestIdT = Aws::String>
364 void SetRequestId(RequestIdT&& value) {
365 m_requestIdHasBeenSet = true;
366 m_requestId = std::forward<RequestIdT>(value);
367 }
368 template <typename RequestIdT = Aws::String>
370 SetRequestId(std::forward<RequestIdT>(value));
371 return *this;
372 }
374 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
375
376 private:
377 Aws::String m_scheduledQueryArn;
378
379 Aws::String m_name;
380
381 Aws::String m_description;
382
383 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
384
385 Aws::String m_queryString;
386
387 Aws::Vector<Aws::String> m_logGroupIdentifiers;
388
389 Aws::String m_scheduleExpression;
390
391 Aws::String m_timezone;
392
393 long long m_startTimeOffset{0};
394
395 long long m_endTimeOffset{0};
396
397 DestinationConfiguration m_destinationConfiguration;
398
400
401 ScheduleType m_scheduleType{ScheduleType::NOT_SET};
402
403 long long m_lastTriggeredTime{0};
404
405 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
406
407 long long m_scheduleStartTime{0};
408
409 long long m_scheduleEndTime{0};
410
411 Aws::String m_executionRoleArn;
412
413 long long m_creationTime{0};
414
415 long long m_lastUpdatedTime{0};
416
417 Aws::String m_requestId;
418 Aws::Http::HttpResponseCode m_HttpResponseCode;
419 bool m_scheduledQueryArnHasBeenSet = false;
420 bool m_nameHasBeenSet = false;
421 bool m_descriptionHasBeenSet = false;
422 bool m_queryLanguageHasBeenSet = false;
423 bool m_queryStringHasBeenSet = false;
424 bool m_logGroupIdentifiersHasBeenSet = false;
425 bool m_scheduleExpressionHasBeenSet = false;
426 bool m_timezoneHasBeenSet = false;
427 bool m_startTimeOffsetHasBeenSet = false;
428 bool m_endTimeOffsetHasBeenSet = false;
429 bool m_destinationConfigurationHasBeenSet = false;
430 bool m_stateHasBeenSet = false;
431 bool m_scheduleTypeHasBeenSet = false;
432 bool m_lastTriggeredTimeHasBeenSet = false;
433 bool m_lastExecutionStatusHasBeenSet = false;
434 bool m_scheduleStartTimeHasBeenSet = false;
435 bool m_scheduleEndTimeHasBeenSet = false;
436 bool m_executionRoleArnHasBeenSet = false;
437 bool m_creationTimeHasBeenSet = false;
438 bool m_lastUpdatedTimeHasBeenSet = false;
439 bool m_requestIdHasBeenSet = false;
440};
441
442} // namespace Model
443} // namespace CloudWatchLogs
444} // namespace Aws
UpdateScheduledQueryResult & WithStartTimeOffset(long long value)
AWS_CLOUDWATCHLOGS_API UpdateScheduledQueryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateScheduledQueryResult & WithDestinationConfiguration(DestinationConfigurationT &&value)
UpdateScheduledQueryResult & AddLogGroupIdentifiers(LogGroupIdentifiersT &&value)
const Aws::Vector< Aws::String > & GetLogGroupIdentifiers() const
UpdateScheduledQueryResult & WithLogGroupIdentifiers(LogGroupIdentifiersT &&value)
UpdateScheduledQueryResult & WithLastExecutionStatus(ExecutionStatus value)
UpdateScheduledQueryResult & WithScheduleEndTime(long long value)
UpdateScheduledQueryResult & WithEndTimeOffset(long long value)
UpdateScheduledQueryResult & WithExecutionRoleArn(ExecutionRoleArnT &&value)
UpdateScheduledQueryResult & WithScheduleExpression(ScheduleExpressionT &&value)
UpdateScheduledQueryResult & WithScheduleStartTime(long long value)
UpdateScheduledQueryResult & WithQueryString(QueryStringT &&value)
UpdateScheduledQueryResult & WithLastTriggeredTime(long long value)
UpdateScheduledQueryResult & WithState(ScheduledQueryState value)
UpdateScheduledQueryResult & WithQueryLanguage(QueryLanguage value)
const DestinationConfiguration & GetDestinationConfiguration() const
UpdateScheduledQueryResult & WithDescription(DescriptionT &&value)
void SetDestinationConfiguration(DestinationConfigurationT &&value)
UpdateScheduledQueryResult & WithScheduledQueryArn(ScheduledQueryArnT &&value)
UpdateScheduledQueryResult & WithTimezone(TimezoneT &&value)
AWS_CLOUDWATCHLOGS_API UpdateScheduledQueryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDWATCHLOGS_API UpdateScheduledQueryResult()=default
UpdateScheduledQueryResult & WithLastUpdatedTime(long long value)
UpdateScheduledQueryResult & WithScheduleType(ScheduleType value)
UpdateScheduledQueryResult & WithRequestId(RequestIdT &&value)
UpdateScheduledQueryResult & WithCreationTime(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