AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
UpdateLocationHdfsRequest.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
18#include <utility>
19
20namespace Aws {
21namespace DataSync {
22namespace Model {
23
27 public:
28 AWS_DATASYNC_API UpdateLocationHdfsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateLocationHdfs"; }
35
36 AWS_DATASYNC_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
45 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
46 template <typename LocationArnT = Aws::String>
47 void SetLocationArn(LocationArnT&& value) {
48 m_locationArnHasBeenSet = true;
49 m_locationArn = std::forward<LocationArnT>(value);
50 }
51 template <typename LocationArnT = Aws::String>
53 SetLocationArn(std::forward<LocationArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
64 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
65 template <typename SubdirectoryT = Aws::String>
66 void SetSubdirectory(SubdirectoryT&& value) {
67 m_subdirectoryHasBeenSet = true;
68 m_subdirectory = std::forward<SubdirectoryT>(value);
69 }
70 template <typename SubdirectoryT = Aws::String>
72 SetSubdirectory(std::forward<SubdirectoryT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
85 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
86 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
87 void SetNameNodes(NameNodesT&& value) {
88 m_nameNodesHasBeenSet = true;
89 m_nameNodes = std::forward<NameNodesT>(value);
90 }
91 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
93 SetNameNodes(std::forward<NameNodesT>(value));
94 return *this;
95 }
96 template <typename NameNodesT = HdfsNameNode>
98 m_nameNodesHasBeenSet = true;
99 m_nameNodes.emplace_back(std::forward<NameNodesT>(value));
100 return *this;
101 }
103
105
108 inline int GetBlockSize() const { return m_blockSize; }
109 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
110 inline void SetBlockSize(int value) {
111 m_blockSizeHasBeenSet = true;
112 m_blockSize = value;
113 }
115 SetBlockSize(value);
116 return *this;
117 }
119
121
125 inline int GetReplicationFactor() const { return m_replicationFactor; }
126 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
127 inline void SetReplicationFactor(int value) {
128 m_replicationFactorHasBeenSet = true;
129 m_replicationFactor = value;
130 }
133 return *this;
134 }
136
138
141 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
142 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
143 template <typename KmsKeyProviderUriT = Aws::String>
144 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) {
145 m_kmsKeyProviderUriHasBeenSet = true;
146 m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value);
147 }
148 template <typename KmsKeyProviderUriT = Aws::String>
150 SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value));
151 return *this;
152 }
154
156
161 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
162 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
163 template <typename QopConfigurationT = QopConfiguration>
164 void SetQopConfiguration(QopConfigurationT&& value) {
165 m_qopConfigurationHasBeenSet = true;
166 m_qopConfiguration = std::forward<QopConfigurationT>(value);
167 }
168 template <typename QopConfigurationT = QopConfiguration>
170 SetQopConfiguration(std::forward<QopConfigurationT>(value));
171 return *this;
172 }
174
176
179 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
180 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
182 m_authenticationTypeHasBeenSet = true;
183 m_authenticationType = value;
184 }
187 return *this;
188 }
190
192
195 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
196 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
197 template <typename SimpleUserT = Aws::String>
198 void SetSimpleUser(SimpleUserT&& value) {
199 m_simpleUserHasBeenSet = true;
200 m_simpleUser = std::forward<SimpleUserT>(value);
201 }
202 template <typename SimpleUserT = Aws::String>
204 SetSimpleUser(std::forward<SimpleUserT>(value));
205 return *this;
206 }
208
210
214 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
215 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
216 template <typename KerberosPrincipalT = Aws::String>
217 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
218 m_kerberosPrincipalHasBeenSet = true;
219 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
220 }
221 template <typename KerberosPrincipalT = Aws::String>
223 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
224 return *this;
225 }
227
229
234 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
235 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
236 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
237 void SetKerberosKeytab(KerberosKeytabT&& value) {
238 m_kerberosKeytabHasBeenSet = true;
239 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
240 }
241 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
243 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
244 return *this;
245 }
247
249
255 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
256 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
257 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
258 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
259 m_kerberosKrb5ConfHasBeenSet = true;
260 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
261 }
262 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
264 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
265 return *this;
266 }
268
270
274 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
275 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
276 template <typename AgentArnsT = Aws::Vector<Aws::String>>
277 void SetAgentArns(AgentArnsT&& value) {
278 m_agentArnsHasBeenSet = true;
279 m_agentArns = std::forward<AgentArnsT>(value);
280 }
281 template <typename AgentArnsT = Aws::Vector<Aws::String>>
283 SetAgentArns(std::forward<AgentArnsT>(value));
284 return *this;
285 }
286 template <typename AgentArnsT = Aws::String>
288 m_agentArnsHasBeenSet = true;
289 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
290 return *this;
291 }
293
295
300 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
301 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
302 template <typename CmkSecretConfigT = CmkSecretConfig>
303 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
304 m_cmkSecretConfigHasBeenSet = true;
305 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
306 }
307 template <typename CmkSecretConfigT = CmkSecretConfig>
309 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
310 return *this;
311 }
313
315
321 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
322 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
323 template <typename CustomSecretConfigT = CustomSecretConfig>
324 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
325 m_customSecretConfigHasBeenSet = true;
326 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
327 }
328 template <typename CustomSecretConfigT = CustomSecretConfig>
329 UpdateLocationHdfsRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
330 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
331 return *this;
332 }
334 private:
335 Aws::String m_locationArn;
336
337 Aws::String m_subdirectory;
338
339 Aws::Vector<HdfsNameNode> m_nameNodes;
340
341 int m_blockSize{0};
342
343 int m_replicationFactor{0};
344
345 Aws::String m_kmsKeyProviderUri;
346
347 QopConfiguration m_qopConfiguration;
348
350
351 Aws::String m_simpleUser;
352
353 Aws::String m_kerberosPrincipal;
354
355 Aws::Utils::ByteBuffer m_kerberosKeytab{};
356
357 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
358
359 Aws::Vector<Aws::String> m_agentArns;
360
361 CmkSecretConfig m_cmkSecretConfig;
362
363 CustomSecretConfig m_customSecretConfig;
364 bool m_locationArnHasBeenSet = false;
365 bool m_subdirectoryHasBeenSet = false;
366 bool m_nameNodesHasBeenSet = false;
367 bool m_blockSizeHasBeenSet = false;
368 bool m_replicationFactorHasBeenSet = false;
369 bool m_kmsKeyProviderUriHasBeenSet = false;
370 bool m_qopConfigurationHasBeenSet = false;
371 bool m_authenticationTypeHasBeenSet = false;
372 bool m_simpleUserHasBeenSet = false;
373 bool m_kerberosPrincipalHasBeenSet = false;
374 bool m_kerberosKeytabHasBeenSet = false;
375 bool m_kerberosKrb5ConfHasBeenSet = false;
376 bool m_agentArnsHasBeenSet = false;
377 bool m_cmkSecretConfigHasBeenSet = false;
378 bool m_customSecretConfigHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace DataSync
383} // namespace Aws
AWS_DATASYNC_API UpdateLocationHdfsRequest()=default
UpdateLocationHdfsRequest & WithKerberosKrb5Conf(KerberosKrb5ConfT &&value)
UpdateLocationHdfsRequest & WithBlockSize(int value)
const Aws::Vector< Aws::String > & GetAgentArns() const
UpdateLocationHdfsRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
UpdateLocationHdfsRequest & WithNameNodes(NameNodesT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< HdfsNameNode > & GetNameNodes() const
UpdateLocationHdfsRequest & WithSimpleUser(SimpleUserT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLocationHdfsRequest & WithReplicationFactor(int value)
UpdateLocationHdfsRequest & WithKerberosPrincipal(KerberosPrincipalT &&value)
UpdateLocationHdfsRequest & WithSubdirectory(SubdirectoryT &&value)
UpdateLocationHdfsRequest & WithCustomSecretConfig(CustomSecretConfigT &&value)
UpdateLocationHdfsRequest & WithKmsKeyProviderUri(KmsKeyProviderUriT &&value)
UpdateLocationHdfsRequest & WithAgentArns(AgentArnsT &&value)
UpdateLocationHdfsRequest & WithLocationArn(LocationArnT &&value)
const Aws::Utils::ByteBuffer & GetKerberosKrb5Conf() const
UpdateLocationHdfsRequest & AddNameNodes(NameNodesT &&value)
UpdateLocationHdfsRequest & WithQopConfiguration(QopConfigurationT &&value)
UpdateLocationHdfsRequest & WithAuthenticationType(HdfsAuthenticationType value)
const Aws::Utils::ByteBuffer & GetKerberosKeytab() const
AWS_DATASYNC_API Aws::String SerializePayload() const override
UpdateLocationHdfsRequest & AddAgentArns(AgentArnsT &&value)
UpdateLocationHdfsRequest & WithKerberosKeytab(KerberosKeytabT &&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