AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduledQueryDescription.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/timestream-query/model/ScheduledQueryState.h>
11#include <aws/timestream-query/model/ScheduleConfiguration.h>
12#include <aws/timestream-query/model/NotificationConfiguration.h>
13#include <aws/timestream-query/model/TargetConfiguration.h>
14#include <aws/timestream-query/model/ErrorReportConfiguration.h>
15#include <aws/timestream-query/model/ScheduledQueryRunSummary.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace TimestreamQuery
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_TIMESTREAMQUERY_API ScheduledQueryDescription() = default;
45 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 ScheduledQueryDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 ScheduledQueryDescription& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetQueryString() const { return m_queryString; }
77 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
78 template<typename QueryStringT = Aws::String>
79 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
80 template<typename QueryStringT = Aws::String>
81 ScheduledQueryDescription& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
89 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
90 template<typename CreationTimeT = Aws::Utils::DateTime>
91 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
92 template<typename CreationTimeT = Aws::Utils::DateTime>
93 ScheduledQueryDescription& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
95
97
100 inline ScheduledQueryState GetState() const { return m_state; }
101 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 inline void SetState(ScheduledQueryState value) { m_stateHasBeenSet = true; m_state = value; }
103 inline ScheduledQueryDescription& WithState(ScheduledQueryState value) { SetState(value); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const { return m_previousInvocationTime; }
111 inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; }
112 template<typename PreviousInvocationTimeT = Aws::Utils::DateTime>
113 void SetPreviousInvocationTime(PreviousInvocationTimeT&& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = std::forward<PreviousInvocationTimeT>(value); }
114 template<typename PreviousInvocationTimeT = Aws::Utils::DateTime>
115 ScheduledQueryDescription& WithPreviousInvocationTime(PreviousInvocationTimeT&& value) { SetPreviousInvocationTime(std::forward<PreviousInvocationTimeT>(value)); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetNextInvocationTime() const { return m_nextInvocationTime; }
123 inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; }
124 template<typename NextInvocationTimeT = Aws::Utils::DateTime>
125 void SetNextInvocationTime(NextInvocationTimeT&& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = std::forward<NextInvocationTimeT>(value); }
126 template<typename NextInvocationTimeT = Aws::Utils::DateTime>
127 ScheduledQueryDescription& WithNextInvocationTime(NextInvocationTimeT&& value) { SetNextInvocationTime(std::forward<NextInvocationTimeT>(value)); return *this;}
129
131
134 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
135 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
136 template<typename ScheduleConfigurationT = ScheduleConfiguration>
137 void SetScheduleConfiguration(ScheduleConfigurationT&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value); }
138 template<typename ScheduleConfigurationT = ScheduleConfiguration>
139 ScheduledQueryDescription& WithScheduleConfiguration(ScheduleConfigurationT&& value) { SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value)); return *this;}
141
143
146 inline const NotificationConfiguration& GetNotificationConfiguration() const { return m_notificationConfiguration; }
147 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
148 template<typename NotificationConfigurationT = NotificationConfiguration>
149 void SetNotificationConfiguration(NotificationConfigurationT&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::forward<NotificationConfigurationT>(value); }
150 template<typename NotificationConfigurationT = NotificationConfiguration>
151 ScheduledQueryDescription& WithNotificationConfiguration(NotificationConfigurationT&& value) { SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value)); return *this;}
153
155
158 inline const TargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
159 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
160 template<typename TargetConfigurationT = TargetConfiguration>
161 void SetTargetConfiguration(TargetConfigurationT&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::forward<TargetConfigurationT>(value); }
162 template<typename TargetConfigurationT = TargetConfiguration>
163 ScheduledQueryDescription& WithTargetConfiguration(TargetConfigurationT&& value) { SetTargetConfiguration(std::forward<TargetConfigurationT>(value)); return *this;}
165
167
170 inline const Aws::String& GetScheduledQueryExecutionRoleArn() const { return m_scheduledQueryExecutionRoleArn; }
171 inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; }
172 template<typename ScheduledQueryExecutionRoleArnT = Aws::String>
173 void SetScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT&& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = std::forward<ScheduledQueryExecutionRoleArnT>(value); }
174 template<typename ScheduledQueryExecutionRoleArnT = Aws::String>
175 ScheduledQueryDescription& WithScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT&& value) { SetScheduledQueryExecutionRoleArn(std::forward<ScheduledQueryExecutionRoleArnT>(value)); return *this;}
177
179
182 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
183 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
184 template<typename KmsKeyIdT = Aws::String>
185 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
186 template<typename KmsKeyIdT = Aws::String>
187 ScheduledQueryDescription& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
189
191
194 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const { return m_errorReportConfiguration; }
195 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
196 template<typename ErrorReportConfigurationT = ErrorReportConfiguration>
197 void SetErrorReportConfiguration(ErrorReportConfigurationT&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::forward<ErrorReportConfigurationT>(value); }
198 template<typename ErrorReportConfigurationT = ErrorReportConfiguration>
199 ScheduledQueryDescription& WithErrorReportConfiguration(ErrorReportConfigurationT&& value) { SetErrorReportConfiguration(std::forward<ErrorReportConfigurationT>(value)); return *this;}
201
203
206 inline const ScheduledQueryRunSummary& GetLastRunSummary() const { return m_lastRunSummary; }
207 inline bool LastRunSummaryHasBeenSet() const { return m_lastRunSummaryHasBeenSet; }
208 template<typename LastRunSummaryT = ScheduledQueryRunSummary>
209 void SetLastRunSummary(LastRunSummaryT&& value) { m_lastRunSummaryHasBeenSet = true; m_lastRunSummary = std::forward<LastRunSummaryT>(value); }
210 template<typename LastRunSummaryT = ScheduledQueryRunSummary>
211 ScheduledQueryDescription& WithLastRunSummary(LastRunSummaryT&& value) { SetLastRunSummary(std::forward<LastRunSummaryT>(value)); return *this;}
213
215
218 inline const Aws::Vector<ScheduledQueryRunSummary>& GetRecentlyFailedRuns() const { return m_recentlyFailedRuns; }
219 inline bool RecentlyFailedRunsHasBeenSet() const { return m_recentlyFailedRunsHasBeenSet; }
220 template<typename RecentlyFailedRunsT = Aws::Vector<ScheduledQueryRunSummary>>
221 void SetRecentlyFailedRuns(RecentlyFailedRunsT&& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns = std::forward<RecentlyFailedRunsT>(value); }
222 template<typename RecentlyFailedRunsT = Aws::Vector<ScheduledQueryRunSummary>>
223 ScheduledQueryDescription& WithRecentlyFailedRuns(RecentlyFailedRunsT&& value) { SetRecentlyFailedRuns(std::forward<RecentlyFailedRunsT>(value)); return *this;}
224 template<typename RecentlyFailedRunsT = ScheduledQueryRunSummary>
225 ScheduledQueryDescription& AddRecentlyFailedRuns(RecentlyFailedRunsT&& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns.emplace_back(std::forward<RecentlyFailedRunsT>(value)); return *this; }
227 private:
228
229 Aws::String m_arn;
230 bool m_arnHasBeenSet = false;
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 Aws::String m_queryString;
236 bool m_queryStringHasBeenSet = false;
237
238 Aws::Utils::DateTime m_creationTime{};
239 bool m_creationTimeHasBeenSet = false;
240
242 bool m_stateHasBeenSet = false;
243
244 Aws::Utils::DateTime m_previousInvocationTime{};
245 bool m_previousInvocationTimeHasBeenSet = false;
246
247 Aws::Utils::DateTime m_nextInvocationTime{};
248 bool m_nextInvocationTimeHasBeenSet = false;
249
250 ScheduleConfiguration m_scheduleConfiguration;
251 bool m_scheduleConfigurationHasBeenSet = false;
252
253 NotificationConfiguration m_notificationConfiguration;
254 bool m_notificationConfigurationHasBeenSet = false;
255
256 TargetConfiguration m_targetConfiguration;
257 bool m_targetConfigurationHasBeenSet = false;
258
259 Aws::String m_scheduledQueryExecutionRoleArn;
260 bool m_scheduledQueryExecutionRoleArnHasBeenSet = false;
261
262 Aws::String m_kmsKeyId;
263 bool m_kmsKeyIdHasBeenSet = false;
264
265 ErrorReportConfiguration m_errorReportConfiguration;
266 bool m_errorReportConfigurationHasBeenSet = false;
267
268 ScheduledQueryRunSummary m_lastRunSummary;
269 bool m_lastRunSummaryHasBeenSet = false;
270
271 Aws::Vector<ScheduledQueryRunSummary> m_recentlyFailedRuns;
272 bool m_recentlyFailedRunsHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace TimestreamQuery
277} // 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