AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43 AWS_TIMESTREAMQUERY_API ScheduledQueryDescription(Aws::Utils::Json::JsonView jsonValue);
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline ScheduledQueryDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline ScheduledQueryDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline ScheduledQueryDescription& WithArn(const char* value) { SetArn(value); return *this;}
61
63
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline ScheduledQueryDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline ScheduledQueryDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline ScheduledQueryDescription& WithName(const char* value) { SetName(value); return *this;}
75
77
80 inline const Aws::String& GetQueryString() const{ return m_queryString; }
81 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
82 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
83 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
84 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
85 inline ScheduledQueryDescription& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
86 inline ScheduledQueryDescription& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
87 inline ScheduledQueryDescription& WithQueryString(const char* value) { SetQueryString(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
95 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
96 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
97 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
99 inline ScheduledQueryDescription& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
101
103
106 inline const ScheduledQueryState& GetState() const{ return m_state; }
107 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
108 inline void SetState(const ScheduledQueryState& value) { m_stateHasBeenSet = true; m_state = value; }
109 inline void SetState(ScheduledQueryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
110 inline ScheduledQueryDescription& WithState(const ScheduledQueryState& value) { SetState(value); return *this;}
111 inline ScheduledQueryDescription& WithState(ScheduledQueryState&& value) { SetState(std::move(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetPreviousInvocationTime() const{ return m_previousInvocationTime; }
119 inline bool PreviousInvocationTimeHasBeenSet() const { return m_previousInvocationTimeHasBeenSet; }
120 inline void SetPreviousInvocationTime(const Aws::Utils::DateTime& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = value; }
121 inline void SetPreviousInvocationTime(Aws::Utils::DateTime&& value) { m_previousInvocationTimeHasBeenSet = true; m_previousInvocationTime = std::move(value); }
125
127
130 inline const Aws::Utils::DateTime& GetNextInvocationTime() const{ return m_nextInvocationTime; }
131 inline bool NextInvocationTimeHasBeenSet() const { return m_nextInvocationTimeHasBeenSet; }
132 inline void SetNextInvocationTime(const Aws::Utils::DateTime& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = value; }
133 inline void SetNextInvocationTime(Aws::Utils::DateTime&& value) { m_nextInvocationTimeHasBeenSet = true; m_nextInvocationTime = std::move(value); }
137
139
142 inline const ScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; }
143 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
144 inline void SetScheduleConfiguration(const ScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; }
145 inline void SetScheduleConfiguration(ScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); }
149
151
154 inline const NotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; }
155 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
156 inline void SetNotificationConfiguration(const NotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; }
157 inline void SetNotificationConfiguration(NotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); }
161
163
166 inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
167 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
168 inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
169 inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
173
175
178 inline const Aws::String& GetScheduledQueryExecutionRoleArn() const{ return m_scheduledQueryExecutionRoleArn; }
179 inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; }
180 inline void SetScheduledQueryExecutionRoleArn(const Aws::String& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = value; }
181 inline void SetScheduledQueryExecutionRoleArn(Aws::String&& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = std::move(value); }
182 inline void SetScheduledQueryExecutionRoleArn(const char* value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn.assign(value); }
187
189
192 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
193 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
194 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
195 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
196 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
197 inline ScheduledQueryDescription& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
198 inline ScheduledQueryDescription& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
199 inline ScheduledQueryDescription& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
201
203
206 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const{ return m_errorReportConfiguration; }
207 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
208 inline void SetErrorReportConfiguration(const ErrorReportConfiguration& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = value; }
209 inline void SetErrorReportConfiguration(ErrorReportConfiguration&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::move(value); }
213
215
218 inline const ScheduledQueryRunSummary& GetLastRunSummary() const{ return m_lastRunSummary; }
219 inline bool LastRunSummaryHasBeenSet() const { return m_lastRunSummaryHasBeenSet; }
220 inline void SetLastRunSummary(const ScheduledQueryRunSummary& value) { m_lastRunSummaryHasBeenSet = true; m_lastRunSummary = value; }
221 inline void SetLastRunSummary(ScheduledQueryRunSummary&& value) { m_lastRunSummaryHasBeenSet = true; m_lastRunSummary = std::move(value); }
225
227
230 inline const Aws::Vector<ScheduledQueryRunSummary>& GetRecentlyFailedRuns() const{ return m_recentlyFailedRuns; }
231 inline bool RecentlyFailedRunsHasBeenSet() const { return m_recentlyFailedRunsHasBeenSet; }
232 inline void SetRecentlyFailedRuns(const Aws::Vector<ScheduledQueryRunSummary>& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns = value; }
233 inline void SetRecentlyFailedRuns(Aws::Vector<ScheduledQueryRunSummary>&& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns = std::move(value); }
236 inline ScheduledQueryDescription& AddRecentlyFailedRuns(const ScheduledQueryRunSummary& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns.push_back(value); return *this; }
237 inline ScheduledQueryDescription& AddRecentlyFailedRuns(ScheduledQueryRunSummary&& value) { m_recentlyFailedRunsHasBeenSet = true; m_recentlyFailedRuns.push_back(std::move(value)); return *this; }
239 private:
240
241 Aws::String m_arn;
242 bool m_arnHasBeenSet = false;
243
244 Aws::String m_name;
245 bool m_nameHasBeenSet = false;
246
247 Aws::String m_queryString;
248 bool m_queryStringHasBeenSet = false;
249
250 Aws::Utils::DateTime m_creationTime;
251 bool m_creationTimeHasBeenSet = false;
252
253 ScheduledQueryState m_state;
254 bool m_stateHasBeenSet = false;
255
256 Aws::Utils::DateTime m_previousInvocationTime;
257 bool m_previousInvocationTimeHasBeenSet = false;
258
259 Aws::Utils::DateTime m_nextInvocationTime;
260 bool m_nextInvocationTimeHasBeenSet = false;
261
262 ScheduleConfiguration m_scheduleConfiguration;
263 bool m_scheduleConfigurationHasBeenSet = false;
264
265 NotificationConfiguration m_notificationConfiguration;
266 bool m_notificationConfigurationHasBeenSet = false;
267
268 TargetConfiguration m_targetConfiguration;
269 bool m_targetConfigurationHasBeenSet = false;
270
271 Aws::String m_scheduledQueryExecutionRoleArn;
272 bool m_scheduledQueryExecutionRoleArnHasBeenSet = false;
273
274 Aws::String m_kmsKeyId;
275 bool m_kmsKeyIdHasBeenSet = false;
276
277 ErrorReportConfiguration m_errorReportConfiguration;
278 bool m_errorReportConfigurationHasBeenSet = false;
279
280 ScheduledQueryRunSummary m_lastRunSummary;
281 bool m_lastRunSummaryHasBeenSet = false;
282
283 Aws::Vector<ScheduledQueryRunSummary> m_recentlyFailedRuns;
284 bool m_recentlyFailedRunsHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace TimestreamQuery
289} // namespace Aws
void SetRecentlyFailedRuns(const Aws::Vector< ScheduledQueryRunSummary > &value)
ScheduledQueryDescription & AddRecentlyFailedRuns(const ScheduledQueryRunSummary &value)
ScheduledQueryDescription & WithScheduledQueryExecutionRoleArn(const Aws::String &value)
ScheduledQueryDescription & WithArn(const char *value)
void SetNextInvocationTime(const Aws::Utils::DateTime &value)
ScheduledQueryDescription & WithScheduledQueryExecutionRoleArn(Aws::String &&value)
ScheduledQueryDescription & WithName(const Aws::String &value)
ScheduledQueryDescription & WithScheduledQueryExecutionRoleArn(const char *value)
ScheduledQueryDescription & WithRecentlyFailedRuns(const Aws::Vector< ScheduledQueryRunSummary > &value)
const Aws::Vector< ScheduledQueryRunSummary > & GetRecentlyFailedRuns() const
ScheduledQueryDescription & WithTargetConfiguration(const TargetConfiguration &value)
ScheduledQueryDescription & WithTargetConfiguration(TargetConfiguration &&value)
ScheduledQueryDescription & WithCreationTime(Aws::Utils::DateTime &&value)
AWS_TIMESTREAMQUERY_API ScheduledQueryDescription(Aws::Utils::Json::JsonView jsonValue)
ScheduledQueryDescription & WithName(const char *value)
void SetNotificationConfiguration(NotificationConfiguration &&value)
ScheduledQueryDescription & WithScheduleConfiguration(ScheduleConfiguration &&value)
AWS_TIMESTREAMQUERY_API ScheduledQueryDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorReportConfiguration(const ErrorReportConfiguration &value)
const ErrorReportConfiguration & GetErrorReportConfiguration() const
ScheduledQueryDescription & WithQueryString(Aws::String &&value)
ScheduledQueryDescription & WithState(ScheduledQueryState &&value)
ScheduledQueryDescription & WithNotificationConfiguration(const NotificationConfiguration &value)
const NotificationConfiguration & GetNotificationConfiguration() const
ScheduledQueryDescription & WithPreviousInvocationTime(Aws::Utils::DateTime &&value)
ScheduledQueryDescription & WithCreationTime(const Aws::Utils::DateTime &value)
ScheduledQueryDescription & WithName(Aws::String &&value)
ScheduledQueryDescription & WithNextInvocationTime(const Aws::Utils::DateTime &value)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledQueryDescription & WithScheduleConfiguration(const ScheduleConfiguration &value)
ScheduledQueryDescription & WithNextInvocationTime(Aws::Utils::DateTime &&value)
ScheduledQueryDescription & WithQueryString(const Aws::String &value)
ScheduledQueryDescription & WithPreviousInvocationTime(const Aws::Utils::DateTime &value)
ScheduledQueryDescription & WithState(const ScheduledQueryState &value)
ScheduledQueryDescription & WithRecentlyFailedRuns(Aws::Vector< ScheduledQueryRunSummary > &&value)
ScheduledQueryDescription & WithKmsKeyId(const Aws::String &value)
ScheduledQueryDescription & WithKmsKeyId(const char *value)
void SetRecentlyFailedRuns(Aws::Vector< ScheduledQueryRunSummary > &&value)
ScheduledQueryDescription & WithQueryString(const char *value)
void SetNotificationConfiguration(const NotificationConfiguration &value)
ScheduledQueryDescription & WithLastRunSummary(ScheduledQueryRunSummary &&value)
ScheduledQueryDescription & WithKmsKeyId(Aws::String &&value)
ScheduledQueryDescription & WithArn(const Aws::String &value)
ScheduledQueryDescription & WithErrorReportConfiguration(ErrorReportConfiguration &&value)
ScheduledQueryDescription & WithNotificationConfiguration(NotificationConfiguration &&value)
void SetErrorReportConfiguration(ErrorReportConfiguration &&value)
ScheduledQueryDescription & WithLastRunSummary(const ScheduledQueryRunSummary &value)
void SetLastRunSummary(const ScheduledQueryRunSummary &value)
ScheduledQueryDescription & AddRecentlyFailedRuns(ScheduledQueryRunSummary &&value)
void SetPreviousInvocationTime(const Aws::Utils::DateTime &value)
ScheduledQueryDescription & WithErrorReportConfiguration(const ErrorReportConfiguration &value)
void SetScheduleConfiguration(const ScheduleConfiguration &value)
ScheduledQueryDescription & WithArn(Aws::String &&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