AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreateScheduledQueryRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
68 inline const Aws::String& GetQueryString() const { return m_queryString; }
69 inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; }
70 template<typename QueryStringT = Aws::String>
71 void SetQueryString(QueryStringT&& value) { m_queryStringHasBeenSet = true; m_queryString = std::forward<QueryStringT>(value); }
72 template<typename QueryStringT = Aws::String>
73 CreateScheduledQueryRequest& WithQueryString(QueryStringT&& value) { SetQueryString(std::forward<QueryStringT>(value)); return *this;}
75
77
80 inline const ScheduleConfiguration& GetScheduleConfiguration() const { return m_scheduleConfiguration; }
81 inline bool ScheduleConfigurationHasBeenSet() const { return m_scheduleConfigurationHasBeenSet; }
82 template<typename ScheduleConfigurationT = ScheduleConfiguration>
83 void SetScheduleConfiguration(ScheduleConfigurationT&& value) { m_scheduleConfigurationHasBeenSet = true; m_scheduleConfiguration = std::forward<ScheduleConfigurationT>(value); }
84 template<typename ScheduleConfigurationT = ScheduleConfiguration>
85 CreateScheduledQueryRequest& WithScheduleConfiguration(ScheduleConfigurationT&& value) { SetScheduleConfiguration(std::forward<ScheduleConfigurationT>(value)); return *this;}
87
89
94 inline const NotificationConfiguration& GetNotificationConfiguration() const { return m_notificationConfiguration; }
95 inline bool NotificationConfigurationHasBeenSet() const { return m_notificationConfigurationHasBeenSet; }
96 template<typename NotificationConfigurationT = NotificationConfiguration>
97 void SetNotificationConfiguration(NotificationConfigurationT&& value) { m_notificationConfigurationHasBeenSet = true; m_notificationConfiguration = std::forward<NotificationConfigurationT>(value); }
98 template<typename NotificationConfigurationT = NotificationConfiguration>
99 CreateScheduledQueryRequest& WithNotificationConfiguration(NotificationConfigurationT&& value) { SetNotificationConfiguration(std::forward<NotificationConfigurationT>(value)); return *this;}
101
103
106 inline const TargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
107 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
108 template<typename TargetConfigurationT = TargetConfiguration>
109 void SetTargetConfiguration(TargetConfigurationT&& value) { m_targetConfigurationHasBeenSet = true; m_targetConfiguration = std::forward<TargetConfigurationT>(value); }
110 template<typename TargetConfigurationT = TargetConfiguration>
111 CreateScheduledQueryRequest& WithTargetConfiguration(TargetConfigurationT&& value) { SetTargetConfiguration(std::forward<TargetConfigurationT>(value)); return *this;}
113
115
125 inline const Aws::String& GetClientToken() const { return m_clientToken; }
126 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
127 template<typename ClientTokenT = Aws::String>
128 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
129 template<typename ClientTokenT = Aws::String>
130 CreateScheduledQueryRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
132
134
138 inline const Aws::String& GetScheduledQueryExecutionRoleArn() const { return m_scheduledQueryExecutionRoleArn; }
139 inline bool ScheduledQueryExecutionRoleArnHasBeenSet() const { return m_scheduledQueryExecutionRoleArnHasBeenSet; }
140 template<typename ScheduledQueryExecutionRoleArnT = Aws::String>
141 void SetScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT&& value) { m_scheduledQueryExecutionRoleArnHasBeenSet = true; m_scheduledQueryExecutionRoleArn = std::forward<ScheduledQueryExecutionRoleArnT>(value); }
142 template<typename ScheduledQueryExecutionRoleArnT = Aws::String>
143 CreateScheduledQueryRequest& WithScheduledQueryExecutionRoleArn(ScheduledQueryExecutionRoleArnT&& value) { SetScheduledQueryExecutionRoleArn(std::forward<ScheduledQueryExecutionRoleArnT>(value)); return *this;}
145
147
150 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template<typename TagsT = Aws::Vector<Tag>>
153 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
154 template<typename TagsT = Aws::Vector<Tag>>
155 CreateScheduledQueryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
156 template<typename TagsT = Tag>
157 CreateScheduledQueryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
159
161
170 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
171 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
172 template<typename KmsKeyIdT = Aws::String>
173 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
174 template<typename KmsKeyIdT = Aws::String>
175 CreateScheduledQueryRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
177
179
183 inline const ErrorReportConfiguration& GetErrorReportConfiguration() const { return m_errorReportConfiguration; }
184 inline bool ErrorReportConfigurationHasBeenSet() const { return m_errorReportConfigurationHasBeenSet; }
185 template<typename ErrorReportConfigurationT = ErrorReportConfiguration>
186 void SetErrorReportConfiguration(ErrorReportConfigurationT&& value) { m_errorReportConfigurationHasBeenSet = true; m_errorReportConfiguration = std::forward<ErrorReportConfigurationT>(value); }
187 template<typename ErrorReportConfigurationT = ErrorReportConfiguration>
188 CreateScheduledQueryRequest& WithErrorReportConfiguration(ErrorReportConfigurationT&& value) { SetErrorReportConfiguration(std::forward<ErrorReportConfigurationT>(value)); return *this;}
190 private:
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 Aws::String m_queryString;
196 bool m_queryStringHasBeenSet = false;
197
198 ScheduleConfiguration m_scheduleConfiguration;
199 bool m_scheduleConfigurationHasBeenSet = false;
200
201 NotificationConfiguration m_notificationConfiguration;
202 bool m_notificationConfigurationHasBeenSet = false;
203
204 TargetConfiguration m_targetConfiguration;
205 bool m_targetConfigurationHasBeenSet = false;
206
208 bool m_clientTokenHasBeenSet = true;
209
210 Aws::String m_scheduledQueryExecutionRoleArn;
211 bool m_scheduledQueryExecutionRoleArnHasBeenSet = false;
212
213 Aws::Vector<Tag> m_tags;
214 bool m_tagsHasBeenSet = false;
215
216 Aws::String m_kmsKeyId;
217 bool m_kmsKeyIdHasBeenSet = false;
218
219 ErrorReportConfiguration m_errorReportConfiguration;
220 bool m_errorReportConfigurationHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace TimestreamQuery
225} // 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