AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateScheduledQueryResult.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 UpdateScheduledQueryResult() = 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>
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>>
129 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
130 return *this;
131 }
132 template <typename LogGroupIdentifiersT = Aws::String>
133 UpdateScheduledQueryResult& 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>
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
178 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
179 inline void SetStartTimeOffset(long long value) {
180 m_startTimeOffsetHasBeenSet = true;
181 m_startTimeOffset = value;
182 }
184 SetStartTimeOffset(value);
185 return *this;
186 }
188
190
193 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
194 template <typename DestinationConfigurationT = DestinationConfiguration>
195 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
196 m_destinationConfigurationHasBeenSet = true;
197 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
198 }
199 template <typename DestinationConfigurationT = DestinationConfiguration>
200 UpdateScheduledQueryResult& WithDestinationConfiguration(DestinationConfigurationT&& value) {
201 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
202 return *this;
203 }
205
207
210 inline ScheduledQueryState GetState() const { return m_state; }
211 inline void SetState(ScheduledQueryState value) {
212 m_stateHasBeenSet = true;
213 m_state = value;
214 }
216 SetState(value);
217 return *this;
218 }
220
222
225 inline long long GetLastTriggeredTime() const { return m_lastTriggeredTime; }
226 inline void SetLastTriggeredTime(long long value) {
227 m_lastTriggeredTimeHasBeenSet = true;
228 m_lastTriggeredTime = value;
229 }
232 return *this;
233 }
235
237
240 inline ExecutionStatus GetLastExecutionStatus() const { return m_lastExecutionStatus; }
242 m_lastExecutionStatusHasBeenSet = true;
243 m_lastExecutionStatus = value;
244 }
247 return *this;
248 }
250
252
255 inline long long GetScheduleStartTime() const { return m_scheduleStartTime; }
256 inline void SetScheduleStartTime(long long value) {
257 m_scheduleStartTimeHasBeenSet = true;
258 m_scheduleStartTime = value;
259 }
262 return *this;
263 }
265
267
270 inline long long GetScheduleEndTime() const { return m_scheduleEndTime; }
271 inline void SetScheduleEndTime(long long value) {
272 m_scheduleEndTimeHasBeenSet = true;
273 m_scheduleEndTime = value;
274 }
276 SetScheduleEndTime(value);
277 return *this;
278 }
280
282
285 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
286 template <typename ExecutionRoleArnT = Aws::String>
287 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
288 m_executionRoleArnHasBeenSet = true;
289 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
290 }
291 template <typename ExecutionRoleArnT = Aws::String>
293 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
294 return *this;
295 }
297
299
302 inline long long GetCreationTime() const { return m_creationTime; }
303 inline void SetCreationTime(long long value) {
304 m_creationTimeHasBeenSet = true;
305 m_creationTime = value;
306 }
308 SetCreationTime(value);
309 return *this;
310 }
312
314
317 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
318 inline void SetLastUpdatedTime(long long value) {
319 m_lastUpdatedTimeHasBeenSet = true;
320 m_lastUpdatedTime = value;
321 }
323 SetLastUpdatedTime(value);
324 return *this;
325 }
327
329
330 inline const Aws::String& GetRequestId() const { return m_requestId; }
331 template <typename RequestIdT = Aws::String>
332 void SetRequestId(RequestIdT&& value) {
333 m_requestIdHasBeenSet = true;
334 m_requestId = std::forward<RequestIdT>(value);
335 }
336 template <typename RequestIdT = Aws::String>
338 SetRequestId(std::forward<RequestIdT>(value));
339 return *this;
340 }
342 private:
343 Aws::String m_scheduledQueryArn;
344
345 Aws::String m_name;
346
347 Aws::String m_description;
348
349 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
350
351 Aws::String m_queryString;
352
353 Aws::Vector<Aws::String> m_logGroupIdentifiers;
354
355 Aws::String m_scheduleExpression;
356
357 Aws::String m_timezone;
358
359 long long m_startTimeOffset{0};
360
361 DestinationConfiguration m_destinationConfiguration;
362
364
365 long long m_lastTriggeredTime{0};
366
367 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
368
369 long long m_scheduleStartTime{0};
370
371 long long m_scheduleEndTime{0};
372
373 Aws::String m_executionRoleArn;
374
375 long long m_creationTime{0};
376
377 long long m_lastUpdatedTime{0};
378
379 Aws::String m_requestId;
380 bool m_scheduledQueryArnHasBeenSet = false;
381 bool m_nameHasBeenSet = false;
382 bool m_descriptionHasBeenSet = false;
383 bool m_queryLanguageHasBeenSet = false;
384 bool m_queryStringHasBeenSet = false;
385 bool m_logGroupIdentifiersHasBeenSet = false;
386 bool m_scheduleExpressionHasBeenSet = false;
387 bool m_timezoneHasBeenSet = false;
388 bool m_startTimeOffsetHasBeenSet = false;
389 bool m_destinationConfigurationHasBeenSet = false;
390 bool m_stateHasBeenSet = false;
391 bool m_lastTriggeredTimeHasBeenSet = false;
392 bool m_lastExecutionStatusHasBeenSet = false;
393 bool m_scheduleStartTimeHasBeenSet = false;
394 bool m_scheduleEndTimeHasBeenSet = false;
395 bool m_executionRoleArnHasBeenSet = false;
396 bool m_creationTimeHasBeenSet = false;
397 bool m_lastUpdatedTimeHasBeenSet = false;
398 bool m_requestIdHasBeenSet = false;
399};
400
401} // namespace Model
402} // namespace CloudWatchLogs
403} // 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 & 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 & 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