AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/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 UpdateScheduledQueryResult() = 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>
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>>
130 SetLogGroupIdentifiers(std::forward<LogGroupIdentifiersT>(value));
131 return *this;
132 }
133 template <typename LogGroupIdentifiersT = Aws::String>
134 UpdateScheduledQueryResult& 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>
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
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 UpdateScheduledQueryResult& 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>
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 }
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 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
344
345 private:
346 Aws::String m_scheduledQueryArn;
347
348 Aws::String m_name;
349
350 Aws::String m_description;
351
352 QueryLanguage m_queryLanguage{QueryLanguage::NOT_SET};
353
354 Aws::String m_queryString;
355
356 Aws::Vector<Aws::String> m_logGroupIdentifiers;
357
358 Aws::String m_scheduleExpression;
359
360 Aws::String m_timezone;
361
362 long long m_startTimeOffset{0};
363
364 DestinationConfiguration m_destinationConfiguration;
365
367
368 long long m_lastTriggeredTime{0};
369
370 ExecutionStatus m_lastExecutionStatus{ExecutionStatus::NOT_SET};
371
372 long long m_scheduleStartTime{0};
373
374 long long m_scheduleEndTime{0};
375
376 Aws::String m_executionRoleArn;
377
378 long long m_creationTime{0};
379
380 long long m_lastUpdatedTime{0};
381
382 Aws::String m_requestId;
383 Aws::Http::HttpResponseCode m_HttpResponseCode;
384 bool m_scheduledQueryArnHasBeenSet = false;
385 bool m_nameHasBeenSet = false;
386 bool m_descriptionHasBeenSet = false;
387 bool m_queryLanguageHasBeenSet = false;
388 bool m_queryStringHasBeenSet = false;
389 bool m_logGroupIdentifiersHasBeenSet = false;
390 bool m_scheduleExpressionHasBeenSet = false;
391 bool m_timezoneHasBeenSet = false;
392 bool m_startTimeOffsetHasBeenSet = false;
393 bool m_destinationConfigurationHasBeenSet = false;
394 bool m_stateHasBeenSet = false;
395 bool m_lastTriggeredTimeHasBeenSet = false;
396 bool m_lastExecutionStatusHasBeenSet = false;
397 bool m_scheduleStartTimeHasBeenSet = false;
398 bool m_scheduleEndTimeHasBeenSet = false;
399 bool m_executionRoleArnHasBeenSet = false;
400 bool m_creationTimeHasBeenSet = false;
401 bool m_lastUpdatedTimeHasBeenSet = false;
402 bool m_requestIdHasBeenSet = false;
403};
404
405} // namespace Model
406} // namespace CloudWatchLogs
407} // 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