AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetScheduledQueryResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/DestinationConfiguration.h>
11#include <aws/logs/model/ExecutionStatus.h>
12#include <aws/logs/model/QueryLanguage.h>
13#include <aws/logs/model/ScheduledQueryState.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudWatchLogs {
27namespace Model {
29 public:
30 AWS_CLOUDWATCHLOGS_API GetScheduledQueryResult() = default;
33
35
38 inline const Aws::String& GetScheduledQueryArn() const { return m_scheduledQueryArn; }
39 template <typename ScheduledQueryArnT = Aws::String>
40 void SetScheduledQueryArn(ScheduledQueryArnT&& value) {
41 m_scheduledQueryArnHasBeenSet = true;
42 m_scheduledQueryArn = std::forward<ScheduledQueryArnT>(value);
43 }
44 template <typename ScheduledQueryArnT = Aws::String>
45 GetScheduledQueryResult& WithScheduledQueryArn(ScheduledQueryArnT&& value) {
46 SetScheduledQueryArn(std::forward<ScheduledQueryArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 template <typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) {
75 m_descriptionHasBeenSet = true;
76 m_description = std::forward<DescriptionT>(value);
77 }
78 template <typename DescriptionT = Aws::String>
80 SetDescription(std::forward<DescriptionT>(value));
81 return *this;
82 }
84
86
89 inline QueryLanguage GetQueryLanguage() const { return m_queryLanguage; }
90 inline void SetQueryLanguage(QueryLanguage value) {
91 m_queryLanguageHasBeenSet = true;
92 m_queryLanguage = value;
93 }
95 SetQueryLanguage(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetQueryString() const { return m_queryString; }
105 template <typename QueryStringT = Aws::String>
106 void SetQueryString(QueryStringT&& value) {
107 m_queryStringHasBeenSet = true;
108 m_queryString = std::forward<QueryStringT>(value);
109 }
110 template <typename QueryStringT = Aws::String>
112 SetQueryString(std::forward<QueryStringT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Aws::String>& GetLogGroupIdentifiers() const { return m_logGroupIdentifiers; }
122 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
123 void SetLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
124 m_logGroupIdentifiersHasBeenSet = true;
125 m_logGroupIdentifiers = std::forward<LogGroupIdentifiersT>(value);
126 }
127 template <typename LogGroupIdentifiersT = Aws::Vector<Aws::String>>
128 GetScheduledQueryResult& WithLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
129 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
130 return *this;
131 }
132 template <typename LogGroupIdentifiersT = Aws::String>
133 GetScheduledQueryResult& AddLogGroupIdentifiers(LogGroupIdentifiersT&& value) {
134 m_logGroupIdentifiersHasBeenSet = true;
135 m_logGroupIdentifiers.emplace_back(std::forward<LogGroupIdentifiersT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
145 template <typename ScheduleExpressionT = Aws::String>
146 void SetScheduleExpression(ScheduleExpressionT&& value) {
147 m_scheduleExpressionHasBeenSet = true;
148 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
149 }
150 template <typename ScheduleExpressionT = Aws::String>
151 GetScheduledQueryResult& WithScheduleExpression(ScheduleExpressionT&& value) {
152 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetTimezone() const { return m_timezone; }
162 template <typename TimezoneT = Aws::String>
163 void SetTimezone(TimezoneT&& value) {
164 m_timezoneHasBeenSet = true;
165 m_timezone = std::forward<TimezoneT>(value);
166 }
167 template <typename TimezoneT = Aws::String>
169 SetTimezone(std::forward<TimezoneT>(value));
170 return *this;
171 }
173
175
179 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
180 inline void SetStartTimeOffset(long long value) {
181 m_startTimeOffsetHasBeenSet = true;
182 m_startTimeOffset = value;
183 }
185 SetStartTimeOffset(value);
186 return *this;
187 }
189
191
194 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
195 template <typename DestinationConfigurationT = DestinationConfiguration>
196 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
197 m_destinationConfigurationHasBeenSet = true;
198 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
199 }
200 template <typename DestinationConfigurationT = DestinationConfiguration>
201 GetScheduledQueryResult& WithDestinationConfiguration(DestinationConfigurationT&& value) {
202 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
203 return *this;
204 }
206
208
211 inline ScheduledQueryState GetState() const { return m_state; }
212 inline void SetState(ScheduledQueryState value) {
213 m_stateHasBeenSet = true;
214 m_state = value;
215 }
217 SetState(value);
218 return *this;
219 }
221
223
226 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
227 inline void SetLastTriggeredTime(long long value) {
228 m_lastTriggeredTimeHasBeenSet = true;
229 m_lastTriggeredTime = value;
230 }
233 return *this;
234 }
236
238
241 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
243 m_lastExecutionStatusHasBeenSet = true;
244 m_lastExecutionStatus = value;
245 }
248 return *this;
249 }
251
253
256 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
257 inline void SetScheduleStartTime(long long value) {
258 m_scheduleStartTimeHasBeenSet = true;
259 m_scheduleStartTime = value;
260 }
263 return *this;
264 }
266
268
271 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
272 inline void SetScheduleEndTime(long long value) {
273 m_scheduleEndTimeHasBeenSet = true;
274 m_scheduleEndTime = value;
275 }
277 SetScheduleEndTime(value);
278 return *this;
279 }
281
283
286 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
287 template <typename ExecutionRoleArnT = Aws::String>
288 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
289 m_executionRoleArnHasBeenSet = true;
290 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
291 }
292 template <typename ExecutionRoleArnT = Aws::String>
293 GetScheduledQueryResult& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
294 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
295 return *this;
296 }
298
300
303 inline long long GetCreationTime() const { return m_creationTime; }
304 inline void SetCreationTime(long long value) {
305 m_creationTimeHasBeenSet = true;
306 m_creationTime = value;
307 }
308 inline GetScheduledQueryResult& WithCreationTime(long long value) {
309 SetCreationTime(value);
310 return *this;
311 }
313
315
318 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
319 inline void SetLastUpdatedTime(long long value) {
320 m_lastUpdatedTimeHasBeenSet = true;
321 m_lastUpdatedTime = value;
322 }
324 SetLastUpdatedTime(value);
325 return *this;
326 }
328
330
331 inline const Aws::String& GetRequestId() const { return m_requestId; }
332 template <typename RequestIdT = Aws::String>
333 void SetRequestId(RequestIdT&& value) {
334 m_requestIdHasBeenSet = true;
335 m_requestId = std::forward<RequestIdT>(value);
336 }
337 template <typename RequestIdT = Aws::String>
339 SetRequestId(std::forward<RequestIdT>(value));
340 return *this;
341 }
343 private:
344 Aws::String m_scheduledQueryArn;
345
346 Aws::String m_name;
347
348 Aws::String m_description;
349
350 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
351
352 Aws::String m_queryString;
353
354 Aws::Vector<Aws::String> m_logGroupIdentifiers;
355
356 Aws::String m_scheduleExpression;
357
358 Aws::String m_timezone;
359
360 long long m_startTimeOffset{0};
361
362 DestinationConfiguration m_destinationConfiguration;
363
365
366 long long m_lastTriggeredTime{0};
367
368 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
369
370 long long m_scheduleStartTime{0};
371
372 long long m_scheduleEndTime{0};
373
374 Aws::String m_executionRoleArn;
375
376 long long m_creationTime{0};
377
378 long long m_lastUpdatedTime{0};
379
380 Aws::String m_requestId;
381 bool m_scheduledQueryArnHasBeenSet = false;
382 bool m_nameHasBeenSet = false;
383 bool m_descriptionHasBeenSet = false;
384 bool m_queryLanguageHasBeenSet = false;
385 bool m_queryStringHasBeenSet = false;
386 bool m_logGroupIdentifiersHasBeenSet = false;
387 bool m_scheduleExpressionHasBeenSet = false;
388 bool m_timezoneHasBeenSet = false;
389 bool m_startTimeOffsetHasBeenSet = false;
390 bool m_destinationConfigurationHasBeenSet = false;
391 bool m_stateHasBeenSet = false;
392 bool m_lastTriggeredTimeHasBeenSet = false;
393 bool m_lastExecutionStatusHasBeenSet = false;
394 bool m_scheduleStartTimeHasBeenSet = false;
395 bool m_scheduleEndTimeHasBeenSet = false;
396 bool m_executionRoleArnHasBeenSet = false;
397 bool m_creationTimeHasBeenSet = false;
398 bool m_lastUpdatedTimeHasBeenSet = false;
399 bool m_requestIdHasBeenSet = false;
400};
401
402} // namespace Model
403} // namespace CloudWatchLogs
404} // 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