AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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
71 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
72 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
73 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
74 void SetNameNodes(NameNodesT&& value) {
75 m_nameNodesHasBeenSet = true;
76 m_nameNodes = std::forward<NameNodesT>(value);
77 }
78 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
80 SetNameNodes(std::forward<NameNodesT>(value));
81 return *this;
82 }
83 template <typename NameNodesT = HdfsNameNode>
85 m_nameNodesHasBeenSet = true;
86 m_nameNodes.emplace_back(std::forward<NameNodesT>(value));
87 return *this;
88 }
90
92
96 inline int GetBlockSize() const { return m_blockSize; }
97 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
98 inline void SetBlockSize(int value) {
99 m_blockSizeHasBeenSet = true;
100 m_blockSize = value;
101 }
103 SetBlockSize(value);
104 return *this;
105 }
107
109
113 inline int GetReplicationFactor() const { return m_replicationFactor; }
114 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
115 inline void SetReplicationFactor(int value) {
116 m_replicationFactorHasBeenSet = true;
117 m_replicationFactor = value;
118 }
121 return *this;
122 }
124
126
129 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
130 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
131 template <typename KmsKeyProviderUriT = Aws::String>
132 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) {
133 m_kmsKeyProviderUriHasBeenSet = true;
134 m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value);
135 }
136 template <typename KmsKeyProviderUriT = Aws::String>
138 SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value));
139 return *this;
140 }
142
144
153 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
154 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
155 template <typename QopConfigurationT = QopConfiguration>
156 void SetQopConfiguration(QopConfigurationT&& value) {
157 m_qopConfigurationHasBeenSet = true;
158 m_qopConfiguration = std::forward<QopConfigurationT>(value);
159 }
160 template <typename QopConfigurationT = QopConfiguration>
162 SetQopConfiguration(std::forward<QopConfigurationT>(value));
163 return *this;
164 }
166
168
171 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
172 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
174 m_authenticationTypeHasBeenSet = true;
175 m_authenticationType = value;
176 }
179 return *this;
180 }
182
184
189 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
190 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
191 template <typename SimpleUserT = Aws::String>
192 void SetSimpleUser(SimpleUserT&& value) {
193 m_simpleUserHasBeenSet = true;
194 m_simpleUser = std::forward<SimpleUserT>(value);
195 }
196 template <typename SimpleUserT = Aws::String>
198 SetSimpleUser(std::forward<SimpleUserT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
210 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
211 template <typename KerberosPrincipalT = Aws::String>
212 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
213 m_kerberosPrincipalHasBeenSet = true;
214 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
215 }
216 template <typename KerberosPrincipalT = Aws::String>
218 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
219 return *this;
220 }
222
224
231 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
232 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
233 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
234 void SetKerberosKeytab(KerberosKeytabT&& value) {
235 m_kerberosKeytabHasBeenSet = true;
236 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
237 }
238 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
240 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
241 return *this;
242 }
244
246
254 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
255 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
256 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
257 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
258 m_kerberosKrb5ConfHasBeenSet = true;
259 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
260 }
261 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
263 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
264 return *this;
265 }
267
269
273 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
274 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
275 template <typename AgentArnsT = Aws::Vector<Aws::String>>
276 void SetAgentArns(AgentArnsT&& value) {
277 m_agentArnsHasBeenSet = true;
278 m_agentArns = std::forward<AgentArnsT>(value);
279 }
280 template <typename AgentArnsT = Aws::Vector<Aws::String>>
282 SetAgentArns(std::forward<AgentArnsT>(value));
283 return *this;
284 }
285 template <typename AgentArnsT = Aws::String>
287 m_agentArnsHasBeenSet = true;
288 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
289 return *this;
290 }
292
294
299 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
300 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
301 template <typename TagsT = Aws::Vector<TagListEntry>>
302 void SetTags(TagsT&& value) {
303 m_tagsHasBeenSet = true;
304 m_tags = std::forward<TagsT>(value);
305 }
306 template <typename TagsT = Aws::Vector<TagListEntry>>
308 SetTags(std::forward<TagsT>(value));
309 return *this;
310 }
311 template <typename TagsT = TagListEntry>
313 m_tagsHasBeenSet = true;
314 m_tags.emplace_back(std::forward<TagsT>(value));
315 return *this;
316 }
318
320
338 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
339 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
340 template <typename CmkSecretConfigT = CmkSecretConfig>
341 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
342 m_cmkSecretConfigHasBeenSet = true;
343 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
344 }
345 template <typename CmkSecretConfigT = CmkSecretConfig>
347 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
348 return *this;
349 }
351
353
366 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
367 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
368 template <typename CustomSecretConfigT = CustomSecretConfig>
369 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
370 m_customSecretConfigHasBeenSet = true;
371 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
372 }
373 template <typename CustomSecretConfigT = CustomSecretConfig>
374 CreateLocationHdfsRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
375 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
376 return *this;
377 }
379 private:
380 Aws::String m_subdirectory;
381
382 Aws::Vector<HdfsNameNode> m_nameNodes;
383
384 int m_blockSize{0};
385
386 int m_replicationFactor{0};
387
388 Aws::String m_kmsKeyProviderUri;
389
390 QopConfiguration m_qopConfiguration;
391
393
394 Aws::String m_simpleUser;
395
396 Aws::String m_kerberosPrincipal;
397
398 Aws::Utils::ByteBuffer m_kerberosKeytab{};
399
400 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
401
402 Aws::Vector<Aws::String> m_agentArns;
403
405
406 CmkSecretConfig m_cmkSecretConfig;
407
408 CustomSecretConfig m_customSecretConfig;
409 bool m_subdirectoryHasBeenSet = false;
410 bool m_nameNodesHasBeenSet = false;
411 bool m_blockSizeHasBeenSet = false;
412 bool m_replicationFactorHasBeenSet = false;
413 bool m_kmsKeyProviderUriHasBeenSet = false;
414 bool m_qopConfigurationHasBeenSet = false;
415 bool m_authenticationTypeHasBeenSet = false;
416 bool m_simpleUserHasBeenSet = false;
417 bool m_kerberosPrincipalHasBeenSet = false;
418 bool m_kerberosKeytabHasBeenSet = false;
419 bool m_kerberosKrb5ConfHasBeenSet = false;
420 bool m_agentArnsHasBeenSet = false;
421 bool m_tagsHasBeenSet = false;
422 bool m_cmkSecretConfigHasBeenSet = false;
423 bool m_customSecretConfigHasBeenSet = false;
424};
425
426} // namespace Model
427} // namespace DataSync
428} // 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