AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreatePipeRequest.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/pipes/PipesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pipes/model/RequestedPipeState.h>
11#include <aws/pipes/model/PipeSourceParameters.h>
12#include <aws/pipes/model/PipeEnrichmentParameters.h>
13#include <aws/pipes/model/PipeTargetParameters.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/pipes/model/PipeLogConfigurationParameters.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Pipes
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_PIPES_API CreatePipeRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreatePipe"; }
37
38 AWS_PIPES_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreatePipeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreatePipeRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
69 inline RequestedPipeState GetDesiredState() const { return m_desiredState; }
70 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
71 inline void SetDesiredState(RequestedPipeState value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
74
76
79 inline const Aws::String& GetSource() const { return m_source; }
80 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
81 template<typename SourceT = Aws::String>
82 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
83 template<typename SourceT = Aws::String>
84 CreatePipeRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
86
88
91 inline const PipeSourceParameters& GetSourceParameters() const { return m_sourceParameters; }
92 inline bool SourceParametersHasBeenSet() const { return m_sourceParametersHasBeenSet; }
93 template<typename SourceParametersT = PipeSourceParameters>
94 void SetSourceParameters(SourceParametersT&& value) { m_sourceParametersHasBeenSet = true; m_sourceParameters = std::forward<SourceParametersT>(value); }
95 template<typename SourceParametersT = PipeSourceParameters>
96 CreatePipeRequest& WithSourceParameters(SourceParametersT&& value) { SetSourceParameters(std::forward<SourceParametersT>(value)); return *this;}
98
100
103 inline const Aws::String& GetEnrichment() const { return m_enrichment; }
104 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
105 template<typename EnrichmentT = Aws::String>
106 void SetEnrichment(EnrichmentT&& value) { m_enrichmentHasBeenSet = true; m_enrichment = std::forward<EnrichmentT>(value); }
107 template<typename EnrichmentT = Aws::String>
108 CreatePipeRequest& WithEnrichment(EnrichmentT&& value) { SetEnrichment(std::forward<EnrichmentT>(value)); return *this;}
110
112
115 inline const PipeEnrichmentParameters& GetEnrichmentParameters() const { return m_enrichmentParameters; }
116 inline bool EnrichmentParametersHasBeenSet() const { return m_enrichmentParametersHasBeenSet; }
117 template<typename EnrichmentParametersT = PipeEnrichmentParameters>
118 void SetEnrichmentParameters(EnrichmentParametersT&& value) { m_enrichmentParametersHasBeenSet = true; m_enrichmentParameters = std::forward<EnrichmentParametersT>(value); }
119 template<typename EnrichmentParametersT = PipeEnrichmentParameters>
120 CreatePipeRequest& WithEnrichmentParameters(EnrichmentParametersT&& value) { SetEnrichmentParameters(std::forward<EnrichmentParametersT>(value)); return *this;}
122
124
127 inline const Aws::String& GetTarget() const { return m_target; }
128 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
129 template<typename TargetT = Aws::String>
130 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
131 template<typename TargetT = Aws::String>
132 CreatePipeRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
134
136
143 inline const PipeTargetParameters& GetTargetParameters() const { return m_targetParameters; }
144 inline bool TargetParametersHasBeenSet() const { return m_targetParametersHasBeenSet; }
145 template<typename TargetParametersT = PipeTargetParameters>
146 void SetTargetParameters(TargetParametersT&& value) { m_targetParametersHasBeenSet = true; m_targetParameters = std::forward<TargetParametersT>(value); }
147 template<typename TargetParametersT = PipeTargetParameters>
148 CreatePipeRequest& WithTargetParameters(TargetParametersT&& value) { SetTargetParameters(std::forward<TargetParametersT>(value)); return *this;}
150
152
155 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
156 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
157 template<typename RoleArnT = Aws::String>
158 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
159 template<typename RoleArnT = Aws::String>
160 CreatePipeRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
162
164
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
171 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 CreatePipeRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
173 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 CreatePipeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
176 }
178
180
183 inline const PipeLogConfigurationParameters& GetLogConfiguration() const { return m_logConfiguration; }
184 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
185 template<typename LogConfigurationT = PipeLogConfigurationParameters>
186 void SetLogConfiguration(LogConfigurationT&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::forward<LogConfigurationT>(value); }
187 template<typename LogConfigurationT = PipeLogConfigurationParameters>
188 CreatePipeRequest& WithLogConfiguration(LogConfigurationT&& value) { SetLogConfiguration(std::forward<LogConfigurationT>(value)); return *this;}
190
192
202 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
203 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
204 template<typename KmsKeyIdentifierT = Aws::String>
205 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
206 template<typename KmsKeyIdentifierT = Aws::String>
207 CreatePipeRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
209 private:
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
218 bool m_desiredStateHasBeenSet = false;
219
220 Aws::String m_source;
221 bool m_sourceHasBeenSet = false;
222
223 PipeSourceParameters m_sourceParameters;
224 bool m_sourceParametersHasBeenSet = false;
225
226 Aws::String m_enrichment;
227 bool m_enrichmentHasBeenSet = false;
228
229 PipeEnrichmentParameters m_enrichmentParameters;
230 bool m_enrichmentParametersHasBeenSet = false;
231
232 Aws::String m_target;
233 bool m_targetHasBeenSet = false;
234
235 PipeTargetParameters m_targetParameters;
236 bool m_targetParametersHasBeenSet = false;
237
238 Aws::String m_roleArn;
239 bool m_roleArnHasBeenSet = false;
240
242 bool m_tagsHasBeenSet = false;
243
244 PipeLogConfigurationParameters m_logConfiguration;
245 bool m_logConfigurationHasBeenSet = false;
246
247 Aws::String m_kmsKeyIdentifier;
248 bool m_kmsKeyIdentifierHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace Pipes
253} // 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