AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/ScheduledQueryState.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudWatchLogs {
28namespace Model {
30 public:
31 AWS_CLOUDWATCHLOGS_API GetScheduledQueryResult() = default;
34
36
39 inline const Aws::String& GetScheduledQueryArn() const { return m_scheduledQueryArn; }
40 template <typename ScheduledQueryArnT = Aws::String>
41 void SetScheduledQueryArn(ScheduledQueryArnT&& value) {
42 m_scheduledQueryArnHasBeenSet = true;
43 m_scheduledQueryArn = std::forward<ScheduledQueryArnT>(value);
44 }
45 template <typename ScheduledQueryArnT = Aws::String>
46 GetScheduledQueryResult& WithScheduledQueryArn(ScheduledQueryArnT&& value) {
47 SetScheduledQueryArn(std::forward<ScheduledQueryArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
91 inline void SetQueryLanguage(QueryLanguage value) {
92 m_queryLanguageHasBeenSet = true;
93 m_queryLanguage = value;
94 }
96 SetQueryLanguage(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetQueryString() const { return m_queryString; }
106 template <typename QueryStringT = Aws::String>
107 void SetQueryString(QueryStringT&& value) {
108 m_queryStringHasBeenSet = true;
109 m_queryString = std::forward<QueryStringT>(value);
110 }
111 template <typename QueryStringT = Aws::String>
113 SetQueryString(std::forward<QueryStringT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
123 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
124 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
125 m_logGroupIdentifiersHasBeenSet = true;
126 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
127 }
128 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
129 GetScheduledQueryResult& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
130 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
131 return *this;
132 }
133 template <typename LogGroupIdentifiersT = Aws::String>
134 GetScheduledQueryResult& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
135 m_logGroupIdentifiersHasBeenSet = true;
136 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
146 template <typename ScheduleExpressionT = Aws::String>
147 void SetScheduleExpression(ScheduleExpressionT&& value) {
148 m_scheduleExpressionHasBeenSet = true;
149 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
150 }
151 template <typename ScheduleExpressionT = Aws::String>
152 GetScheduledQueryResult& WithScheduleExpression(ScheduleExpressionT&& value) {
153 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetTimezone() const { return m_timezone; }
163 template <typename TimezoneT = Aws::String>
164 void SetTimezone(TimezoneT&& value) {
165 m_timezoneHasBeenSet = true;
166 m_timezone = std::forward<TimezoneT>(value);
167 }
168 template <typename TimezoneT = Aws::String>
170 SetTimezone(std::forward<TimezoneT>(value));
171 return *this;
172 }
174
176
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 const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
196 template <typename DestinationConfigurationT = DestinationConfiguration>
197 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
198 m_destinationConfigurationHasBeenSet = true;
199 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
200 }
201 template <typename DestinationConfigurationT = DestinationConfiguration>
202 GetScheduledQueryResult& WithDestinationConfiguration(DestinationConfigurationT&& value) {
203 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
204 return *this;
205 }
207
209
212 inline ScheduledQueryState GetState() const { return m_state; }
213 inline void SetState(ScheduledQueryState value) {
214 m_stateHasBeenSet = true;
215 m_state = value;
216 }
218 SetState(value);
219 return *this;
220 }
222
224
227 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
228 inline void SetLastTriggeredTime(long long value) {
229 m_lastTriggeredTimeHasBeenSet = true;
230 m_lastTriggeredTime = value;
231 }
234 return *this;
235 }
237
239
242 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
244 m_lastExecutionStatusHasBeenSet = true;
245 m_lastExecutionStatus = value;
246 }
249 return *this;
250 }
252
254
257 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
258 inline void SetScheduleStartTime(long long value) {
259 m_scheduleStartTimeHasBeenSet = true;
260 m_scheduleStartTime = value;
261 }
264 return *this;
265 }
267
269
272 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
273 inline void SetScheduleEndTime(long long value) {
274 m_scheduleEndTimeHasBeenSet = true;
275 m_scheduleEndTime = value;
276 }
278 SetScheduleEndTime(value);
279 return *this;
280 }
282
284
287 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
288 template <typename ExecutionRoleArnT = Aws::String>
289 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
290 m_executionRoleArnHasBeenSet = true;
291 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
292 }
293 template <typename ExecutionRoleArnT = Aws::String>
294 GetScheduledQueryResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
295 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
296 return *this;
297 }
299
301
304 inline long long GetCreationTime() const { return m_creationTime; }
305 inline void SetCreationTime(long long value) {
306 m_creationTimeHasBeenSet = true;
307 m_creationTime = value;
308 }
309 inline GetScheduledQueryResult& WithCreationTime(long long value) {
310 SetCreationTime(value);
311 return *this;
312 }
314
316
319 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
320 inline void SetLastUpdatedTime(long long value) {
321 m_lastUpdatedTimeHasBeenSet = true;
322 m_lastUpdatedTime = value;
323 }
325 SetLastUpdatedTime(value);
326 return *this;
327 }
329
331
332 inline const Aws::String& GetRequestId() const { return m_requestId; }
333 template <typename RequestIdT = Aws::String>
334 void SetRequestId(RequestIdT&& value) {
335 m_requestIdHasBeenSet = true;
336 m_requestId = std::forward<RequestIdT>(value);
337 }
338 template <typename RequestIdT = Aws::String>
340 SetRequestId(std::forward<RequestIdT>(value));
341 return *this;
342 }
344 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
345
346 private:
347 Aws::String m_scheduledQueryArn;
348
349 Aws::String m_name;
350
351 Aws::String m_description;
352
353 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
354
355 Aws::String m_queryString;
356
357 Aws::Vector<Aws::String> m_logGroupIdentifiers;
358
359 Aws::String m_scheduleExpression;
360
361 Aws::String m_timezone;
362
363 long long m_startTimeOffset{0};
364
365 DestinationConfiguration m_destinationConfiguration;
366
368
369 long long m_lastTriggeredTime{0};
370
371 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
372
373 long long m_scheduleStartTime{0};
374
375 long long m_scheduleEndTime{0};
376
377 Aws::String m_executionRoleArn;
378
379 long long m_creationTime{0};
380
381 long long m_lastUpdatedTime{0};
382
383 Aws::String m_requestId;
384 Aws::Http::HttpResponseCode m_HttpResponseCode;
385 bool m_scheduledQueryArnHasBeenSet = false;
386 bool m_nameHasBeenSet = false;
387 bool m_descriptionHasBeenSet = false;
388 bool m_queryLanguageHasBeenSet = false;
389 bool m_queryStringHasBeenSet = false;
390 bool m_logGroupIdentifiersHasBeenSet = false;
391 bool m_scheduleExpressionHasBeenSet = false;
392 bool m_timezoneHasBeenSet = false;
393 bool m_startTimeOffsetHasBeenSet = false;
394 bool m_destinationConfigurationHasBeenSet = false;
395 bool m_stateHasBeenSet = false;
396 bool m_lastTriggeredTimeHasBeenSet = false;
397 bool m_lastExecutionStatusHasBeenSet = false;
398 bool m_scheduleStartTimeHasBeenSet = false;
399 bool m_scheduleEndTimeHasBeenSet = false;
400 bool m_executionRoleArnHasBeenSet = false;
401 bool m_creationTimeHasBeenSet = false;
402 bool m_lastUpdatedTimeHasBeenSet = false;
403 bool m_requestIdHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace CloudWatchLogs
408} // 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 & 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue