AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
CreateLocationHdfsRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/datasync/DataSyncRequest.h>
11#include <aws/datasync/DataSync_EXPORTS.h>
12#include <aws/datasync/model/CmkSecretConfig.h>
13#include <aws/datasync/model/CustomSecretConfig.h>
14#include <aws/datasync/model/HdfsAuthenticationType.h>
15#include <aws/datasync/model/HdfsNameNode.h>
16#include <aws/datasync/model/QopConfiguration.h>
17#include <aws/datasync/model/TagListEntry.h>
18
19#include <utility>
20
21namespace Aws {
22namespace DataSync {
23namespace Model {
24
28 public:
29 AWS_DATASYNC_API CreateLocationHdfsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationHdfs"; }
36
37 AWS_DATASYNC_API Aws::String SerializePayload() const override;
38
40
42
47 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
48 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
49 template <typename SubdirectoryT = Aws::String>
50 void SetSubdirectory(SubdirectoryT&& value) {
51 m_subdirectoryHasBeenSet = true;
52 m_subdirectory = std::forward<SubdirectoryT>(value);
53 }
54 template <typename SubdirectoryT = Aws::String>
56 SetSubdirectory(std::forward<SubdirectoryT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
69 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
70 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
71 void SetNameNodes(NameNodesT&& value) {
72 m_nameNodesHasBeenSet = true;
73 m_nameNodes = std::forward<NameNodesT>(value);
74 }
75 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
77 SetNameNodes(std::forward<NameNodesT>(value));
78 return *this;
79 }
80 template <typename NameNodesT = HdfsNameNode>
82 m_nameNodesHasBeenSet = true;
83 m_nameNodes.emplace_back(std::forward<NameNodesT>(value));
84 return *this;
85 }
87
89
93 inline int GetBlockSize() const { return m_blockSize; }
94 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
95 inline void SetBlockSize(int value) {
96 m_blockSizeHasBeenSet = true;
97 m_blockSize = value;
98 }
100 SetBlockSize(value);
101 return *this;
102 }
104
106
110 inline int GetReplicationFactor() const { return m_replicationFactor; }
111 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
112 inline void SetReplicationFactor(int value) {
113 m_replicationFactorHasBeenSet = true;
114 m_replicationFactor = value;
115 }
118 return *this;
119 }
121
123
126 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
127 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
128 template <typename KmsKeyProviderUriT = Aws::String>
129 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) {
130 m_kmsKeyProviderUriHasBeenSet = true;
131 m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value);
132 }
133 template <typename KmsKeyProviderUriT = Aws::String>
135 SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value));
136 return *this;
137 }
139
141
150 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
151 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
152 template <typename QopConfigurationT = QopConfiguration>
153 void SetQopConfiguration(QopConfigurationT&& value) {
154 m_qopConfigurationHasBeenSet = true;
155 m_qopConfiguration = std::forward<QopConfigurationT>(value);
156 }
157 template <typename QopConfigurationT = QopConfiguration>
159 SetQopConfiguration(std::forward<QopConfigurationT>(value));
160 return *this;
161 }
163
165
168 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
169 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
171 m_authenticationTypeHasBeenSet = true;
172 m_authenticationType = value;
173 }
176 return *this;
177 }
179
181
186 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
187 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
188 template <typename SimpleUserT = Aws::String>
189 void SetSimpleUser(SimpleUserT&& value) {
190 m_simpleUserHasBeenSet = true;
191 m_simpleUser = std::forward<SimpleUserT>(value);
192 }
193 template <typename SimpleUserT = Aws::String>
195 SetSimpleUser(std::forward<SimpleUserT>(value));
196 return *this;
197 }
199
201
206 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
207 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
208 template <typename KerberosPrincipalT = Aws::String>
209 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
210 m_kerberosPrincipalHasBeenSet = true;
211 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
212 }
213 template <typename KerberosPrincipalT = Aws::String>
215 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
216 return *this;
217 }
219
221
228 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
229 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
230 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
231 void SetKerberosKeytab(KerberosKeytabT&& value) {
232 m_kerberosKeytabHasBeenSet = true;
233 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
234 }
235 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
237 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
238 return *this;
239 }
241
243
251 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
252 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
253 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
254 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
255 m_kerberosKrb5ConfHasBeenSet = true;
256 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
257 }
258 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
260 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
261 return *this;
262 }
264
266
270 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
271 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
272 template <typename AgentArnsT = Aws::Vector<Aws::String>>
273 void SetAgentArns(AgentArnsT&& value) {
274 m_agentArnsHasBeenSet = true;
275 m_agentArns = std::forward<AgentArnsT>(value);
276 }
277 template <typename AgentArnsT = Aws::Vector<Aws::String>>
279 SetAgentArns(std::forward<AgentArnsT>(value));
280 return *this;
281 }
282 template <typename AgentArnsT = Aws::String>
284 m_agentArnsHasBeenSet = true;
285 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
286 return *this;
287 }
289
291
296 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
297 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
298 template <typename TagsT = Aws::Vector<TagListEntry>>
299 void SetTags(TagsT&& value) {
300 m_tagsHasBeenSet = true;
301 m_tags = std::forward<TagsT>(value);
302 }
303 template <typename TagsT = Aws::Vector<TagListEntry>>
305 SetTags(std::forward<TagsT>(value));
306 return *this;
307 }
308 template <typename TagsT = TagListEntry>
310 m_tagsHasBeenSet = true;
311 m_tags.emplace_back(std::forward<TagsT>(value));
312 return *this;
313 }
315
317
335 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
336 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
337 template <typename CmkSecretConfigT = CmkSecretConfig>
338 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
339 m_cmkSecretConfigHasBeenSet = true;
340 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
341 }
342 template <typename CmkSecretConfigT = CmkSecretConfig>
344 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
345 return *this;
346 }
348
350
363 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
364 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
365 template <typename CustomSecretConfigT = CustomSecretConfig>
366 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
367 m_customSecretConfigHasBeenSet = true;
368 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
369 }
370 template <typename CustomSecretConfigT = CustomSecretConfig>
371 CreateLocationHdfsRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
372 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
373 return *this;
374 }
376 private:
377 Aws::String m_subdirectory;
378
379 Aws::Vector<HdfsNameNode> m_nameNodes;
380
381 int m_blockSize{0};
382
383 int m_replicationFactor{0};
384
385 Aws::String m_kmsKeyProviderUri;
386
387 QopConfiguration m_qopConfiguration;
388
390
391 Aws::String m_simpleUser;
392
393 Aws::String m_kerberosPrincipal;
394
395 Aws::Utils::ByteBuffer m_kerberosKeytab{};
396
397 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
398
399 Aws::Vector<Aws::String> m_agentArns;
400
402
403 CmkSecretConfig m_cmkSecretConfig;
404
405 CustomSecretConfig m_customSecretConfig;
406 bool m_subdirectoryHasBeenSet = false;
407 bool m_nameNodesHasBeenSet = false;
408 bool m_blockSizeHasBeenSet = false;
409 bool m_replicationFactorHasBeenSet = false;
410 bool m_kmsKeyProviderUriHasBeenSet = false;
411 bool m_qopConfigurationHasBeenSet = false;
412 bool m_authenticationTypeHasBeenSet = false;
413 bool m_simpleUserHasBeenSet = false;
414 bool m_kerberosPrincipalHasBeenSet = false;
415 bool m_kerberosKeytabHasBeenSet = false;
416 bool m_kerberosKrb5ConfHasBeenSet = false;
417 bool m_agentArnsHasBeenSet = false;
418 bool m_tagsHasBeenSet = false;
419 bool m_cmkSecretConfigHasBeenSet = false;
420 bool m_customSecretConfigHasBeenSet = false;
421};
422
423} // namespace Model
424} // namespace DataSync
425} // namespace Aws
CreateLocationHdfsRequest & AddTags(TagsT &&value)
CreateLocationHdfsRequest & WithBlockSize(int value)
CreateLocationHdfsRequest & WithAgentArns(AgentArnsT &&value)
const Aws::Utils::ByteBuffer & GetKerberosKeytab() const
CreateLocationHdfsRequest & WithAuthenticationType(HdfsAuthenticationType value)
CreateLocationHdfsRequest & AddNameNodes(NameNodesT &&value)
CreateLocationHdfsRequest & WithSimpleUser(SimpleUserT &&value)
const Aws::Vector< HdfsNameNode > & GetNameNodes() const
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationHdfsRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
CreateLocationHdfsRequest & WithQopConfiguration(QopConfigurationT &&value)
AWS_DATASYNC_API CreateLocationHdfsRequest()=default
CreateLocationHdfsRequest & WithTags(TagsT &&value)
CreateLocationHdfsRequest & WithKmsKeyProviderUri(KmsKeyProviderUriT &&value)
virtual const char * GetServiceRequestName() const override
CreateLocationHdfsRequest & WithCustomSecretConfig(CustomSecretConfigT &&value)
CreateLocationHdfsRequest & WithReplicationFactor(int value)
CreateLocationHdfsRequest & WithSubdirectory(SubdirectoryT &&value)
const Aws::Utils::ByteBuffer & GetKerberosKrb5Conf() const
const Aws::Vector< Aws::String > & GetAgentArns() const
CreateLocationHdfsRequest & WithKerberosKrb5Conf(KerberosKrb5ConfT &&value)
CreateLocationHdfsRequest & WithKerberosPrincipal(KerberosPrincipalT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationHdfsRequest & WithKerberosKeytab(KerberosKeytabT &&value)
CreateLocationHdfsRequest & AddAgentArns(AgentArnsT &&value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateLocationHdfsRequest & WithNameNodes(NameNodesT &&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