AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreatePipeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pipes/PipesRequest.h>
10#include <aws/pipes/Pipes_EXPORTS.h>
11#include <aws/pipes/model/PipeEnrichmentParameters.h>
12#include <aws/pipes/model/PipeLogConfigurationParameters.h>
13#include <aws/pipes/model/PipeSourceParameters.h>
14#include <aws/pipes/model/PipeTargetParameters.h>
15#include <aws/pipes/model/RequestedPipeState.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Pipes {
21namespace Model {
22
26 public:
27 AWS_PIPES_API CreatePipeRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePipe"; }
34
35 AWS_PIPES_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 CreatePipeRequest& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 CreatePipeRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
78 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
80 m_desiredStateHasBeenSet = true;
81 m_desiredState = value;
82 }
84 SetDesiredState(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSource() const { return m_source; }
94 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
95 template <typename SourceT = Aws::String>
96 void SetSource(SourceT&& value) {
97 m_sourceHasBeenSet = true;
98 m_source = std::forward<SourceT>(value);
99 }
100 template <typename SourceT = Aws::String>
101 CreatePipeRequest& WithSource(SourceT&& value) {
102 SetSource(std::forward<SourceT>(value));
103 return *this;
104 }
106
108
111 inline const PipeSourceParameters& GetSourceParameters() const { return m_sourceParameters; }
112 inline bool SourceParametersHasBeenSet() const { return m_sourceParametersHasBeenSet; }
113 template <typename SourceParametersT = PipeSourceParameters>
114 void SetSourceParameters(SourceParametersT&& value) {
115 m_sourceParametersHasBeenSet = true;
116 m_sourceParameters = std::forward<SourceParametersT>(value);
117 }
118 template <typename SourceParametersT = PipeSourceParameters>
119 CreatePipeRequest& WithSourceParameters(SourceParametersT&& value) {
120 SetSourceParameters(std::forward<SourceParametersT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetEnrichment() const { return m_enrichment; }
130 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
131 template <typename EnrichmentT = Aws::String>
132 void SetEnrichment(EnrichmentT&& value) {
133 m_enrichmentHasBeenSet = true;
134 m_enrichment = std::forward<EnrichmentT>(value);
135 }
136 template <typename EnrichmentT = Aws::String>
137 CreatePipeRequest& WithEnrichment(EnrichmentT&& value) {
138 SetEnrichment(std::forward<EnrichmentT>(value));
139 return *this;
140 }
142
144
147 inline const PipeEnrichmentParameters& GetEnrichmentParameters() const { return m_enrichmentParameters; }
148 inline bool EnrichmentParametersHasBeenSet() const { return m_enrichmentParametersHasBeenSet; }
149 template <typename EnrichmentParametersT = PipeEnrichmentParameters>
150 void SetEnrichmentParameters(EnrichmentParametersT&& value) {
151 m_enrichmentParametersHasBeenSet = true;
152 m_enrichmentParameters = std::forward<EnrichmentParametersT>(value);
153 }
154 template <typename EnrichmentParametersT = PipeEnrichmentParameters>
155 CreatePipeRequest& WithEnrichmentParameters(EnrichmentParametersT&& value) {
156 SetEnrichmentParameters(std::forward<EnrichmentParametersT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetTarget() const { return m_target; }
166 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
167 template <typename TargetT = Aws::String>
168 void SetTarget(TargetT&& value) {
169 m_targetHasBeenSet = true;
170 m_target = std::forward<TargetT>(value);
171 }
172 template <typename TargetT = Aws::String>
173 CreatePipeRequest& WithTarget(TargetT&& value) {
174 SetTarget(std::forward<TargetT>(value));
175 return *this;
176 }
178
180
187 inline const PipeTargetParameters& GetTargetParameters() const { return m_targetParameters; }
188 inline bool TargetParametersHasBeenSet() const { return m_targetParametersHasBeenSet; }
189 template <typename TargetParametersT = PipeTargetParameters>
190 void SetTargetParameters(TargetParametersT&& value) {
191 m_targetParametersHasBeenSet = true;
192 m_targetParameters = std::forward<TargetParametersT>(value);
193 }
194 template <typename TargetParametersT = PipeTargetParameters>
195 CreatePipeRequest& WithTargetParameters(TargetParametersT&& value) {
196 SetTargetParameters(std::forward<TargetParametersT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
206 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
207 template <typename RoleArnT = Aws::String>
208 void SetRoleArn(RoleArnT&& value) {
209 m_roleArnHasBeenSet = true;
210 m_roleArn = std::forward<RoleArnT>(value);
211 }
212 template <typename RoleArnT = Aws::String>
213 CreatePipeRequest& WithRoleArn(RoleArnT&& value) {
214 SetRoleArn(std::forward<RoleArnT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
224 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
226 void SetTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags = std::forward<TagsT>(value);
229 }
230 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 CreatePipeRequest& WithTags(TagsT&& value) {
232 SetTags(std::forward<TagsT>(value));
233 return *this;
234 }
235 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
236 CreatePipeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
239 return *this;
240 }
242
244
247 inline const PipeLogConfigurationParameters& GetLogConfiguration() const { return m_logConfiguration; }
248 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
249 template <typename LogConfigurationT = PipeLogConfigurationParameters>
250 void SetLogConfiguration(LogConfigurationT&& value) {
251 m_logConfigurationHasBeenSet = true;
252 m_logConfiguration = std::forward<LogConfigurationT>(value);
253 }
254 template <typename LogConfigurationT = PipeLogConfigurationParameters>
255 CreatePipeRequest& WithLogConfiguration(LogConfigurationT&& value) {
256 SetLogConfiguration(std::forward<LogConfigurationT>(value));
257 return *this;
258 }
260
262
272 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
273 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
274 template <typename KmsKeyIdentifierT = Aws::String>
275 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
276 m_kmsKeyIdentifierHasBeenSet = true;
277 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
278 }
279 template <typename KmsKeyIdentifierT = Aws::String>
280 CreatePipeRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
281 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_name;
287
288 Aws::String m_description;
289
291
292 Aws::String m_source;
293
294 PipeSourceParameters m_sourceParameters;
295
296 Aws::String m_enrichment;
297
298 PipeEnrichmentParameters m_enrichmentParameters;
299
300 Aws::String m_target;
301
302 PipeTargetParameters m_targetParameters;
303
304 Aws::String m_roleArn;
305
307
308 PipeLogConfigurationParameters m_logConfiguration;
309
310 Aws::String m_kmsKeyIdentifier;
311 bool m_nameHasBeenSet = false;
312 bool m_descriptionHasBeenSet = false;
313 bool m_desiredStateHasBeenSet = false;
314 bool m_sourceHasBeenSet = false;
315 bool m_sourceParametersHasBeenSet = false;
316 bool m_enrichmentHasBeenSet = false;
317 bool m_enrichmentParametersHasBeenSet = false;
318 bool m_targetHasBeenSet = false;
319 bool m_targetParametersHasBeenSet = false;
320 bool m_roleArnHasBeenSet = false;
321 bool m_tagsHasBeenSet = false;
322 bool m_logConfigurationHasBeenSet = false;
323 bool m_kmsKeyIdentifierHasBeenSet = false;
324};
325
326} // namespace Model
327} // namespace Pipes
328} // namespace Aws
const PipeSourceParameters & GetSourceParameters() const
void SetTargetParameters(TargetParametersT &&value)
CreatePipeRequest & WithTargetParameters(TargetParametersT &&value)
void SetEnrichment(EnrichmentT &&value)
CreatePipeRequest & WithTarget(TargetT &&value)
RequestedPipeState GetDesiredState() const
CreatePipeRequest & WithDescription(DescriptionT &&value)
const PipeLogConfigurationParameters & GetLogConfiguration() const
CreatePipeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetDescription() const
CreatePipeRequest & WithLogConfiguration(LogConfigurationT &&value)
CreatePipeRequest & WithTags(TagsT &&value)
CreatePipeRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreatePipeRequest & WithEnrichmentParameters(EnrichmentParametersT &&value)
void SetDescription(DescriptionT &&value)
CreatePipeRequest & WithSource(SourceT &&value)
const Aws::String & GetRoleArn() const
void SetDesiredState(RequestedPipeState value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
const Aws::String & GetSource() const
const PipeTargetParameters & GetTargetParameters() const
AWS_PIPES_API Aws::String SerializePayload() const override
const Aws::String & GetEnrichment() const
AWS_PIPES_API CreatePipeRequest()=default
const Aws::String & GetKmsKeyIdentifier() const
void SetSourceParameters(SourceParametersT &&value)
const Aws::String & GetName() const
CreatePipeRequest & WithSourceParameters(SourceParametersT &&value)
CreatePipeRequest & WithEnrichment(EnrichmentT &&value)
void SetEnrichmentParameters(EnrichmentParametersT &&value)
const PipeEnrichmentParameters & GetEnrichmentParameters() const
CreatePipeRequest & WithName(NameT &&value)
void SetLogConfiguration(LogConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetTarget() const
CreatePipeRequest & WithDesiredState(RequestedPipeState value)
CreatePipeRequest & WithRoleArn(RoleArnT &&value)
virtual const char * GetServiceRequestName() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String