AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScheduledQueryRequest.h
1
6#pragma once
7#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
8#include <aws/timestream-query/TimestreamQueryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-query/model/ScheduleConfiguration.h>
11#include <aws/timestream-query/model/NotificationConfiguration.h>
12#include <aws/timestream-query/model/TargetConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/timestream-query/model/ErrorReportConfiguration.h>
15#include <aws/timestream-query/model/Tag.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace TimestreamQuery
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_TIMESTREAMQUERY_API CreateScheduledQueryRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateScheduledQuery"; }
38
39 AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override;
40
41 AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CreateScheduledQueryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CreateScheduledQueryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CreateScheduledQueryRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
70 inline const Aws::String& GetQueryString() const{ return m_queryString; }
71 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
72 inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; }
73 inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); }
74 inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); }
75 inline CreateScheduledQueryRequest& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;}
76 inline CreateScheduledQueryRequest& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;}
77 inline CreateScheduledQueryRequest& WithQueryString(const char* value) { SetQueryString(value); return *this;}
79
81
84 inline const ScheduleConfiguration& GetScheduleConfiguration() const{ return m_scheduleConfiguration; }
85 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
86 inline void SetScheduleConfiguration(const ScheduleConfiguration& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = value; }
87 inline void SetScheduleConfiguration(ScheduleConfiguration&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::move(value); }
91
93
98 inline const NotificationConfiguration& GetNotificationConfiguration() const{ return m_notificationConfiguration; }
99 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
100 inline void SetNotificationConfiguration(const NotificationConfiguration& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = value; }
101 inline void SetNotificationConfiguration(NotificationConfiguration&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::move(value); }
105
107
110 inline const TargetConfiguration& GetTargetConfiguration() const{ return m_targetConfiguration; }
111 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
112 inline void SetTargetConfiguration(const TargetConfiguration& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = value; }
113 inline void SetTargetConfiguration(TargetConfiguration&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::move(value); }
117
119
129 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
132 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
133 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
134 inline CreateScheduledQueryRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
135 inline CreateScheduledQueryRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
136 inline CreateScheduledQueryRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
138
140
144 inline const Aws::String& GetScheduledQueryExecutionRoleArn() const{ return m_scheduledQueryExecutionRoleArn; }
145 inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; }
146 inline void SetScheduledQueryExecutionRoleArn(const Aws::String& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = value; }
147 inline void SetScheduledQueryExecutionRoleArn(Aws::String&& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = std::move(value); }
148 inline void SetScheduledQueryExecutionRoleArn(const char* value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn.assign(value); }
153
155
158 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
161 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
162 inline CreateScheduledQueryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
163 inline CreateScheduledQueryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
164 inline CreateScheduledQueryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
165 inline CreateScheduledQueryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
167
169
178 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
179 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
180 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
181 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
182 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
183 inline CreateScheduledQueryRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
184 inline CreateScheduledQueryRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
185 inline CreateScheduledQueryRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
187
189
193 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const{ return m_errorReportConfiguration; }
194 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
195 inline void SetErrorReportConfiguration(const ErrorReportConfiguration& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = value; }
196 inline void SetErrorReportConfiguration(ErrorReportConfiguration&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::move(value); }
200 private:
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_queryString;
206 bool m_queryStringHasBeenSet = false;
207
208 ScheduleConfiguration m_scheduleConfiguration;
209 bool m_scheduleConfigurationHasBeenSet = false;
210
211 NotificationConfiguration m_notificationConfiguration;
212 bool m_notificationConfigurationHasBeenSet = false;
213
214 TargetConfiguration m_targetConfiguration;
215 bool m_targetConfigurationHasBeenSet = false;
216
217 Aws::String m_clientToken;
218 bool m_clientTokenHasBeenSet = false;
219
220 Aws::String m_scheduledQueryExecutionRoleArn;
221 bool m_scheduledQueryExecutionRoleArnHasBeenSet = false;
222
223 Aws::Vector<Tag> m_tags;
224 bool m_tagsHasBeenSet = false;
225
226 Aws::String m_kmsKeyId;
227 bool m_kmsKeyIdHasBeenSet = false;
228
229 ErrorReportConfiguration m_errorReportConfiguration;
230 bool m_errorReportConfigurationHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace TimestreamQuery
235} // namespace Aws
CreateScheduledQueryRequest & WithName(const char *value)
void SetScheduleConfiguration(const ScheduleConfiguration &value)
CreateScheduledQueryRequest & WithQueryString(const char *value)
CreateScheduledQueryRequest & WithTargetConfiguration(TargetConfiguration &&value)
void SetNotificationConfiguration(const NotificationConfiguration &value)
CreateScheduledQueryRequest & WithTargetConfiguration(const TargetConfiguration &value)
CreateScheduledQueryRequest & WithTags(const Aws::Vector< Tag > &value)
const NotificationConfiguration & GetNotificationConfiguration() const
CreateScheduledQueryRequest & WithName(const Aws::String &value)
CreateScheduledQueryRequest & WithScheduleConfiguration(ScheduleConfiguration &&value)
CreateScheduledQueryRequest & WithKmsKeyId(const char *value)
CreateScheduledQueryRequest & WithErrorReportConfiguration(const ErrorReportConfiguration &value)
void SetErrorReportConfiguration(const ErrorReportConfiguration &value)
CreateScheduledQueryRequest & WithKmsKeyId(const Aws::String &value)
CreateScheduledQueryRequest & WithErrorReportConfiguration(ErrorReportConfiguration &&value)
CreateScheduledQueryRequest & WithClientToken(const char *value)
CreateScheduledQueryRequest & AddTags(const Tag &value)
CreateScheduledQueryRequest & WithNotificationConfiguration(NotificationConfiguration &&value)
CreateScheduledQueryRequest & WithScheduledQueryExecutionRoleArn(const Aws::String &value)
CreateScheduledQueryRequest & WithTags(Aws::Vector< Tag > &&value)
CreateScheduledQueryRequest & WithNotificationConfiguration(const NotificationConfiguration &value)
CreateScheduledQueryRequest & WithScheduleConfiguration(const ScheduleConfiguration &value)
AWS_TIMESTREAMQUERY_API Aws::String SerializePayload() const override
CreateScheduledQueryRequest & WithName(Aws::String &&value)
CreateScheduledQueryRequest & WithQueryString(Aws::String &&value)
CreateScheduledQueryRequest & WithClientToken(const Aws::String &value)
CreateScheduledQueryRequest & WithClientToken(Aws::String &&value)
CreateScheduledQueryRequest & WithScheduledQueryExecutionRoleArn(const char *value)
const ErrorReportConfiguration & GetErrorReportConfiguration() const
CreateScheduledQueryRequest & WithKmsKeyId(Aws::String &&value)
CreateScheduledQueryRequest & WithQueryString(const Aws::String &value)
AWS_TIMESTREAMQUERY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScheduledQueryRequest & WithScheduledQueryExecutionRoleArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector