AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ScheduledQueryDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
11#include <aws/timestream-query/model/ErrorReportConfiguration.h>
12#include <aws/timestream-query/model/NotificationConfiguration.h>
13#include <aws/timestream-query/model/ScheduleConfiguration.h>
14#include <aws/timestream-query/model/ScheduledQueryRunSummary.h>
15#include <aws/timestream-query/model/ScheduledQueryState.h>
16#include <aws/timestream-query/model/TargetConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace TimestreamQuery {
28namespace Model {
29
36 public:
37 AWS_TIMESTREAMQUERY_API ScheduledQueryDescription() = default;
40 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetQueryString() const { return m_queryString; }
83 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
84 template <typename QueryStringT = Aws::String>
86 m_queryStringHasBeenSet = true;
87 m_queryString = std::forward<QueryStringT>(value);
88 }
89 template <typename QueryStringT = Aws::String>
91 SetQueryString(std::forward<QueryStringT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
101 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
102 template <typename CreationTimeT = Aws::Utils::DateTime>
104 m_creationTimeHasBeenSet = true;
105 m_creationTime = std::forward<CreationTimeT>(value);
106 }
107 template <typename CreationTimeT = Aws::Utils::DateTime>
109 SetCreationTime(std::forward<CreationTimeT>(value));
110 return *this;
111 }
113
115
118 inline ScheduledQueryState GetState() const { return m_state; }
119 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
120 inline void SetState(ScheduledQueryState value) {
121 m_stateHasBeenSet = true;
122 m_state = value;
123 }
125 SetState(value);
126 return *this;
127 }
129
131
134 inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const { return m_previousInvocationTime; }
135 inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; }
136 template <typename PreviousInvocationTimeT = Aws::Utils::DateTime>
138 m_previousInvocationTimeHasBeenSet = true;
139 m_previousInvocationTime = std::forward<PreviousInvocationTimeT>(value);
140 }
141 template <typename PreviousInvocationTimeT = Aws::Utils::DateTime>
143 SetPreviousInvocationTime(std::forward<PreviousInvocationTimeT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetNextInvocationTime() const { return m_nextInvocationTime; }
153 inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; }
154 template <typename NextInvocationTimeT = Aws::Utils::DateTime>
156 m_nextInvocationTimeHasBeenSet = true;
157 m_nextInvocationTime = std::forward<NextInvocationTimeT>(value);
158 }
159 template <typename NextInvocationTimeT = Aws::Utils::DateTime>
161 SetNextInvocationTime(std::forward<NextInvocationTimeT>(value));
162 return *this;
163 }
165
167
170 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
171 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
172 template <typename ScheduleConfigurationT = ScheduleConfiguration>
174 m_scheduleConfigurationHasBeenSet = true;
175 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
176 }
177 template <typename ScheduleConfigurationT = ScheduleConfiguration>
179 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
180 return *this;
181 }
183
185
188 inline const NotificationConfiguration& GetNotificationConfiguration() const { return m_notificationConfiguration; }
189 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
190 template <typename NotificationConfigurationT = NotificationConfiguration>
192 m_notificationConfigurationHasBeenSet = true;
193 m_notificationConfiguration = std::forward<NotificationConfigurationT>(value);
194 }
195 template <typename NotificationConfigurationT = NotificationConfiguration>
197 SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value));
198 return *this;
199 }
201
203
206 inline const TargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
207 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
208 template <typename TargetConfigurationT = TargetConfiguration>
210 m_targetConfigurationHasBeenSet = true;
211 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
212 }
213 template <typename TargetConfigurationT = TargetConfiguration>
215 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetScheduledQueryExecutionRoleArn() const { return m_scheduledQueryExecutionRoleArn; }
225 inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; }
226 template <typename ScheduledQueryExecutionRoleArnT = Aws::String>
228 m_scheduledQueryExecutionRoleArnHasBeenSet = true;
229 m_scheduledQueryExecutionRoleArn = std::forward<ScheduledQueryExecutionRoleArnT>(value);
230 }
231 template <typename ScheduledQueryExecutionRoleArnT = Aws::String>
233 SetScheduledQueryExecutionRoleArn(std::forward<ScheduledQueryExecutionRoleArnT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
243 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
244 template <typename KmsKeyIdT = Aws::String>
245 void SetKmsKeyId(KmsKeyIdT&& value) {
246 m_kmsKeyIdHasBeenSet = true;
247 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
248 }
249 template <typename KmsKeyIdT = Aws::String>
251 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
252 return *this;
253 }
255
257
260 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const { return m_errorReportConfiguration; }
261 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
262 template <typename ErrorReportConfigurationT = ErrorReportConfiguration>
264 m_errorReportConfigurationHasBeenSet = true;
265 m_errorReportConfiguration = std::forward<ErrorReportConfigurationT>(value);
266 }
267 template <typename ErrorReportConfigurationT = ErrorReportConfiguration>
269 SetErrorReportConfiguration(std::forward<ErrorReportConfigurationT>(value));
270 return *this;
271 }
273
275
278 inline const ScheduledQueryRunSummary& GetLastRunSummary() const { return m_lastRunSummary; }
279 inline bool LastRunSummaryHasBeenSet() const { return m_lastRunSummaryHasBeenSet; }
280 template <typename LastRunSummaryT = ScheduledQueryRunSummary>
282 m_lastRunSummaryHasBeenSet = true;
283 m_lastRunSummary = std::forward<LastRunSummaryT>(value);
284 }
285 template <typename LastRunSummaryT = ScheduledQueryRunSummary>
287 SetLastRunSummary(std::forward<LastRunSummaryT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::Vector<ScheduledQueryRunSummary>& GetRecentlyFailedRuns() const { return m_recentlyFailedRuns; }
297 inline bool RecentlyFailedRunsHasBeenSet() const { return m_recentlyFailedRunsHasBeenSet; }
298 template <typename RecentlyFailedRunsT = Aws::Vector<ScheduledQueryRunSummary>>
300 m_recentlyFailedRunsHasBeenSet = true;
301 m_recentlyFailedRuns = std::forward<RecentlyFailedRunsT>(value);
302 }
303 template <typename RecentlyFailedRunsT = Aws::Vector<ScheduledQueryRunSummary>>
305 SetRecentlyFailedRuns(std::forward<RecentlyFailedRunsT>(value));
306 return *this;
307 }
308 template <typename RecentlyFailedRunsT = ScheduledQueryRunSummary>
310 m_recentlyFailedRunsHasBeenSet = true;
311 m_recentlyFailedRuns.emplace_back(std::forward<RecentlyFailedRunsT>(value));
312 return *this;
313 }
315 private:
316 Aws::String m_arn;
317
318 Aws::String m_name;
319
320 Aws::String m_queryString;
321
322 Aws::Utils::DateTime m_creationTime{};
323
325
326 Aws::Utils::DateTime m_previousInvocationTime{};
327
328 Aws::Utils::DateTime m_nextInvocationTime{};
329
330 ScheduleConfiguration m_scheduleConfiguration;
331
332 NotificationConfiguration m_notificationConfiguration;
333
334 TargetConfiguration m_targetConfiguration;
335
336 Aws::String m_scheduledQueryExecutionRoleArn;
337
338 Aws::String m_kmsKeyId;
339
340 ErrorReportConfiguration m_errorReportConfiguration;
341
342 ScheduledQueryRunSummary m_lastRunSummary;
343
344 Aws::Vector<ScheduledQueryRunSummary> m_recentlyFailedRuns;
345 bool m_arnHasBeenSet = false;
346 bool m_nameHasBeenSet = false;
347 bool m_queryStringHasBeenSet = false;
348 bool m_creationTimeHasBeenSet = false;
349 bool m_stateHasBeenSet = false;
350 bool m_previousInvocationTimeHasBeenSet = false;
351 bool m_nextInvocationTimeHasBeenSet = false;
352 bool m_scheduleConfigurationHasBeenSet = false;
353 bool m_notificationConfigurationHasBeenSet = false;
354 bool m_targetConfigurationHasBeenSet = false;
355 bool m_scheduledQueryExecutionRoleArnHasBeenSet = false;
356 bool m_kmsKeyIdHasBeenSet = false;
357 bool m_errorReportConfigurationHasBeenSet = false;
358 bool m_lastRunSummaryHasBeenSet = false;
359 bool m_recentlyFailedRunsHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace TimestreamQuery
364} // namespace Aws
ScheduledQueryDescription & WithScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT &&value)
ScheduledQueryDescription & WithRecentlyFailedRuns(RecentlyFailedRunsT &&value)
ScheduledQueryDescription & WithLastRunSummary(LastRunSummaryT &&value)
ScheduledQueryDescription & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Vector< ScheduledQueryRunSummary > & GetRecentlyFailedRuns() const
AWS_TIMESTREAMQUERY_API ScheduledQueryDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMQUERY_API ScheduledQueryDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledQueryDescription & WithPreviousInvocationTime(PreviousInvocationTimeT &&value)
const ErrorReportConfiguration & GetErrorReportConfiguration() const
ScheduledQueryDescription & WithErrorReportConfiguration(ErrorReportConfigurationT &&value)
const NotificationConfiguration & GetNotificationConfiguration() const
ScheduledQueryDescription & WithNextInvocationTime(NextInvocationTimeT &&value)
ScheduledQueryDescription & WithCreationTime(CreationTimeT &&value)
void SetNotificationConfiguration(NotificationConfigurationT &&value)
ScheduledQueryDescription & WithTargetConfiguration(TargetConfigurationT &&value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledQueryDescription & AddRecentlyFailedRuns(RecentlyFailedRunsT &&value)
ScheduledQueryDescription & WithState(ScheduledQueryState value)
void SetScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT &&value)
ScheduledQueryDescription & WithNotificationConfiguration(NotificationConfigurationT &&value)
ScheduledQueryDescription & WithQueryString(QueryStringT &&value)
void SetErrorReportConfiguration(ErrorReportConfigurationT &&value)
ScheduledQueryDescription & WithScheduleConfiguration(ScheduleConfigurationT &&value)
AWS_TIMESTREAMQUERY_API ScheduledQueryDescription()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue