AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/HdfsAuthenticationType.h>
13#include <aws/datasync/model/HdfsNameNode.h>
14#include <aws/datasync/model/QopConfiguration.h>
15#include <aws/datasync/model/TagListEntry.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataSync {
21namespace Model {
22
26 public:
27 AWS_DATASYNC_API CreateLocationHdfsRequest() = 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 "CreateLocationHdfs"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
40
45 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
46 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
47 template <typename SubdirectoryT = Aws::String>
48 void SetSubdirectory(SubdirectoryT&& value) {
49 m_subdirectoryHasBeenSet = true;
50 m_subdirectory = std::forward<SubdirectoryT>(value);
51 }
52 template <typename SubdirectoryT = Aws::String>
54 SetSubdirectory(std::forward<SubdirectoryT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
67 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
68 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
69 void SetNameNodes(NameNodesT&& value) {
70 m_nameNodesHasBeenSet = true;
71 m_nameNodes = std::forward<NameNodesT>(value);
72 }
73 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
75 SetNameNodes(std::forward<NameNodesT>(value));
76 return *this;
77 }
78 template <typename NameNodesT = HdfsNameNode>
80 m_nameNodesHasBeenSet = true;
81 m_nameNodes.emplace_back(std::forward<NameNodesT>(value));
82 return *this;
83 }
85
87
91 inline int GetBlockSize() const { return m_blockSize; }
92 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
93 inline void SetBlockSize(int value) {
94 m_blockSizeHasBeenSet = true;
95 m_blockSize = value;
96 }
98 SetBlockSize(value);
99 return *this;
100 }
102
104
108 inline int GetReplicationFactor() const { return m_replicationFactor; }
109 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
110 inline void SetReplicationFactor(int value) {
111 m_replicationFactorHasBeenSet = true;
112 m_replicationFactor = value;
113 }
116 return *this;
117 }
119
121
124 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
125 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
126 template <typename KmsKeyProviderUriT = Aws::String>
127 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) {
128 m_kmsKeyProviderUriHasBeenSet = true;
129 m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value);
130 }
131 template <typename KmsKeyProviderUriT = Aws::String>
133 SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value));
134 return *this;
135 }
137
139
148 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
149 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
150 template <typename QopConfigurationT = QopConfiguration>
151 void SetQopConfiguration(QopConfigurationT&& value) {
152 m_qopConfigurationHasBeenSet = true;
153 m_qopConfiguration = std::forward<QopConfigurationT>(value);
154 }
155 template <typename QopConfigurationT = QopConfiguration>
157 SetQopConfiguration(std::forward<QopConfigurationT>(value));
158 return *this;
159 }
161
163
166 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
167 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
169 m_authenticationTypeHasBeenSet = true;
170 m_authenticationType = value;
171 }
174 return *this;
175 }
177
179
184 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
185 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
186 template <typename SimpleUserT = Aws::String>
187 void SetSimpleUser(SimpleUserT&& value) {
188 m_simpleUserHasBeenSet = true;
189 m_simpleUser = std::forward<SimpleUserT>(value);
190 }
191 template <typename SimpleUserT = Aws::String>
193 SetSimpleUser(std::forward<SimpleUserT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
205 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
206 template <typename KerberosPrincipalT = Aws::String>
207 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
208 m_kerberosPrincipalHasBeenSet = true;
209 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
210 }
211 template <typename KerberosPrincipalT = Aws::String>
213 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
214 return *this;
215 }
217
219
226 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
227 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
228 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
229 void SetKerberosKeytab(KerberosKeytabT&& value) {
230 m_kerberosKeytabHasBeenSet = true;
231 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
232 }
233 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
235 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
236 return *this;
237 }
239
241
249 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
250 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
251 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
252 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
253 m_kerberosKrb5ConfHasBeenSet = true;
254 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
255 }
256 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
258 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
259 return *this;
260 }
262
264
268 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
269 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
270 template <typename AgentArnsT = Aws::Vector<Aws::String>>
271 void SetAgentArns(AgentArnsT&& value) {
272 m_agentArnsHasBeenSet = true;
273 m_agentArns = std::forward<AgentArnsT>(value);
274 }
275 template <typename AgentArnsT = Aws::Vector<Aws::String>>
277 SetAgentArns(std::forward<AgentArnsT>(value));
278 return *this;
279 }
280 template <typename AgentArnsT = Aws::String>
282 m_agentArnsHasBeenSet = true;
283 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
284 return *this;
285 }
287
289
294 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
295 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
296 template <typename TagsT = Aws::Vector<TagListEntry>>
297 void SetTags(TagsT&& value) {
298 m_tagsHasBeenSet = true;
299 m_tags = std::forward<TagsT>(value);
300 }
301 template <typename TagsT = Aws::Vector<TagListEntry>>
303 SetTags(std::forward<TagsT>(value));
304 return *this;
305 }
306 template <typename TagsT = TagListEntry>
308 m_tagsHasBeenSet = true;
309 m_tags.emplace_back(std::forward<TagsT>(value));
310 return *this;
311 }
313 private:
314 Aws::String m_subdirectory;
315
316 Aws::Vector<HdfsNameNode> m_nameNodes;
317
318 int m_blockSize{0};
319
320 int m_replicationFactor{0};
321
322 Aws::String m_kmsKeyProviderUri;
323
324 QopConfiguration m_qopConfiguration;
325
327
328 Aws::String m_simpleUser;
329
330 Aws::String m_kerberosPrincipal;
331
332 Aws::Utils::ByteBuffer m_kerberosKeytab{};
333
334 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
335
336 Aws::Vector<Aws::String> m_agentArns;
337
339 bool m_subdirectoryHasBeenSet = false;
340 bool m_nameNodesHasBeenSet = false;
341 bool m_blockSizeHasBeenSet = false;
342 bool m_replicationFactorHasBeenSet = false;
343 bool m_kmsKeyProviderUriHasBeenSet = false;
344 bool m_qopConfigurationHasBeenSet = false;
345 bool m_authenticationTypeHasBeenSet = false;
346 bool m_simpleUserHasBeenSet = false;
347 bool m_kerberosPrincipalHasBeenSet = false;
348 bool m_kerberosKeytabHasBeenSet = false;
349 bool m_kerberosKrb5ConfHasBeenSet = false;
350 bool m_agentArnsHasBeenSet = false;
351 bool m_tagsHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace DataSync
356} // 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 & WithQopConfiguration(QopConfigurationT &&value)
AWS_DATASYNC_API CreateLocationHdfsRequest()=default
CreateLocationHdfsRequest & WithTags(TagsT &&value)
CreateLocationHdfsRequest & WithKmsKeyProviderUri(KmsKeyProviderUriT &&value)
virtual const char * GetServiceRequestName() const override
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