AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateScheduledQueryRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/timestream-query/TimestreamQueryRequest.h>
11#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
12#include <aws/timestream-query/model/ErrorReportConfiguration.h>
13#include <aws/timestream-query/model/NotificationConfiguration.h>
14#include <aws/timestream-query/model/ScheduleConfiguration.h>
15#include <aws/timestream-query/model/Tag.h>
16#include <aws/timestream-query/model/TargetConfiguration.h>
17
18#include <utility>
19
20namespace Aws {
21namespace TimestreamQuery {
22namespace Model {
23
27 public:
28 AWS_TIMESTREAMQUERY_API CreateScheduledQueryRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledQuery"; }
35
36 AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override;
37
38 AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
70 inline const Aws::String& GetQueryString() const { return m_queryString; }
71 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
72 template <typename QueryStringT = Aws::String>
74 m_queryStringHasBeenSet = true;
75 m_queryString = std::forward<QueryStringT>(value);
76 }
77 template <typename QueryStringT = Aws::String>
79 SetQueryString(std::forward<QueryStringT>(value));
80 return *this;
81 }
83
85
88 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
89 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
90 template <typename ScheduleConfigurationT = ScheduleConfiguration>
92 m_scheduleConfigurationHasBeenSet = true;
93 m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value);
94 }
95 template <typename ScheduleConfigurationT = ScheduleConfiguration>
97 SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value));
98 return *this;
99 }
101
103
108 inline const NotificationConfiguration& GetNotificationConfiguration() const { return m_notificationConfiguration; }
109 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
110 template <typename NotificationConfigurationT = NotificationConfiguration>
112 m_notificationConfigurationHasBeenSet = true;
113 m_notificationConfiguration = std::forward<NotificationConfigurationT>(value);
114 }
115 template <typename NotificationConfigurationT = NotificationConfiguration>
117 SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value));
118 return *this;
119 }
121
123
126 inline const TargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
127 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
128 template <typename TargetConfigurationT = TargetConfiguration>
130 m_targetConfigurationHasBeenSet = true;
131 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
132 }
133 template <typename TargetConfigurationT = TargetConfiguration>
135 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
136 return *this;
137 }
139
141
151 inline const Aws::String& GetClientToken() const { return m_clientToken; }
152 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
153 template <typename ClientTokenT = Aws::String>
155 m_clientTokenHasBeenSet = true;
156 m_clientToken = std::forward<ClientTokenT>(value);
157 }
158 template <typename ClientTokenT = Aws::String>
160 SetClientToken(std::forward<ClientTokenT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetScheduledQueryExecutionRoleArn() const { return m_scheduledQueryExecutionRoleArn; }
171 inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; }
172 template <typename ScheduledQueryExecutionRoleArnT = Aws::String>
174 m_scheduledQueryExecutionRoleArnHasBeenSet = true;
175 m_scheduledQueryExecutionRoleArn = std::forward<ScheduledQueryExecutionRoleArnT>(value);
176 }
177 template <typename ScheduledQueryExecutionRoleArnT = Aws::String>
179 SetScheduledQueryExecutionRoleArn(std::forward<ScheduledQueryExecutionRoleArnT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 template <typename TagsT = Aws::Vector<Tag>>
191 void SetTags(TagsT&& value) {
192 m_tagsHasBeenSet = true;
193 m_tags = std::forward<TagsT>(value);
194 }
195 template <typename TagsT = Aws::Vector<Tag>>
197 SetTags(std::forward<TagsT>(value));
198 return *this;
199 }
200 template <typename TagsT = Tag>
202 m_tagsHasBeenSet = true;
203 m_tags.emplace_back(std::forward<TagsT>(value));
204 return *this;
205 }
207
209
218 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
219 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
220 template <typename KmsKeyIdT = Aws::String>
221 void SetKmsKeyId(KmsKeyIdT&& value) {
222 m_kmsKeyIdHasBeenSet = true;
223 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
224 }
225 template <typename KmsKeyIdT = Aws::String>
227 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
228 return *this;
229 }
231
233
237 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const { return m_errorReportConfiguration; }
238 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
239 template <typename ErrorReportConfigurationT = ErrorReportConfiguration>
241 m_errorReportConfigurationHasBeenSet = true;
242 m_errorReportConfiguration = std::forward<ErrorReportConfigurationT>(value);
243 }
244 template <typename ErrorReportConfigurationT = ErrorReportConfiguration>
246 SetErrorReportConfiguration(std::forward<ErrorReportConfigurationT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_name;
252
253 Aws::String m_queryString;
254
255 ScheduleConfiguration m_scheduleConfiguration;
256
257 NotificationConfiguration m_notificationConfiguration;
258
259 TargetConfiguration m_targetConfiguration;
260
262
263 Aws::String m_scheduledQueryExecutionRoleArn;
264
265 Aws::Vector<Tag> m_tags;
266
267 Aws::String m_kmsKeyId;
268
269 ErrorReportConfiguration m_errorReportConfiguration;
270 bool m_nameHasBeenSet = false;
271 bool m_queryStringHasBeenSet = false;
272 bool m_scheduleConfigurationHasBeenSet = false;
273 bool m_notificationConfigurationHasBeenSet = false;
274 bool m_targetConfigurationHasBeenSet = false;
275 bool m_clientTokenHasBeenSet = true;
276 bool m_scheduledQueryExecutionRoleArnHasBeenSet = false;
277 bool m_tagsHasBeenSet = false;
278 bool m_kmsKeyIdHasBeenSet = false;
279 bool m_errorReportConfigurationHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace TimestreamQuery
284} // namespace Aws
CreateScheduledQueryRequest & WithNotificationConfiguration(NotificationConfigurationT &&value)
AWS_TIMESTREAMQUERY_API CreateScheduledQueryRequest()=default
const NotificationConfiguration & GetNotificationConfiguration() const
CreateScheduledQueryRequest & WithErrorReportConfiguration(ErrorReportConfigurationT &&value)
CreateScheduledQueryRequest & WithScheduleConfiguration(ScheduleConfigurationT &&value)
CreateScheduledQueryRequest & WithQueryString(QueryStringT &&value)
CreateScheduledQueryRequest & WithClientToken(ClientTokenT &&value)
CreateScheduledQueryRequest & WithScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT &&value)
CreateScheduledQueryRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override
CreateScheduledQueryRequest & WithTargetConfiguration(TargetConfigurationT &&value)
void SetScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT &&value)
void SetNotificationConfiguration(NotificationConfigurationT &&value)
const ErrorReportConfiguration & GetErrorReportConfiguration() const
AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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