AWS SDK for C++

AWS SDK for C++ Version 1.11.869

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
87 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
88 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
89 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
90 void SetNameNodes(NameNodesT&& value) {
91 m_nameNodesHasBeenSet = true;
92 m_nameNodes = std::forward<NameNodesT>(value);
93 }
94 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
96 SetNameNodes(std::forward<NameNodesT>(value));
97 return *this;
98 }
99 template <typename NameNodesT = HdfsNameNode>
101 m_nameNodesHasBeenSet = true;
102 m_nameNodes.emplace_back(std::forward<NameNodesT>(value));
103 return *this;
104 }
106
108
111 inline int GetBlockSize() const { return m_blockSize; }
112 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
113 inline void SetBlockSize(int value) {
114 m_blockSizeHasBeenSet = true;
115 m_blockSize = value;
116 }
118 SetBlockSize(value);
119 return *this;
120 }
122
124
128 inline int GetReplicationFactor() const { return m_replicationFactor; }
129 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
130 inline void SetReplicationFactor(int value) {
131 m_replicationFactorHasBeenSet = true;
132 m_replicationFactor = value;
133 }
136 return *this;
137 }
139
141
144 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
145 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
146 template <typename KmsKeyProviderUriT = Aws::String>
147 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) {
148 m_kmsKeyProviderUriHasBeenSet = true;
149 m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value);
150 }
151 template <typename KmsKeyProviderUriT = Aws::String>
153 SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value));
154 return *this;
155 }
157
159
164 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
165 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
166 template <typename QopConfigurationT = QopConfiguration>
167 void SetQopConfiguration(QopConfigurationT&& value) {
168 m_qopConfigurationHasBeenSet = true;
169 m_qopConfiguration = std::forward<QopConfigurationT>(value);
170 }
171 template <typename QopConfigurationT = QopConfiguration>
173 SetQopConfiguration(std::forward<QopConfigurationT>(value));
174 return *this;
175 }
177
179
182 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
183 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
185 m_authenticationTypeHasBeenSet = true;
186 m_authenticationType = value;
187 }
190 return *this;
191 }
193
195
198 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
199 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
200 template <typename SimpleUserT = Aws::String>
201 void SetSimpleUser(SimpleUserT&& value) {
202 m_simpleUserHasBeenSet = true;
203 m_simpleUser = std::forward<SimpleUserT>(value);
204 }
205 template <typename SimpleUserT = Aws::String>
207 SetSimpleUser(std::forward<SimpleUserT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
218 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
219 template <typename KerberosPrincipalT = Aws::String>
220 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
221 m_kerberosPrincipalHasBeenSet = true;
222 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
223 }
224 template <typename KerberosPrincipalT = Aws::String>
226 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
238 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
239 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
240 void SetKerberosKeytab(KerberosKeytabT&& value) {
241 m_kerberosKeytabHasBeenSet = true;
242 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
243 }
244 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
246 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
247 return *this;
248 }
250
252
258 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
259 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
260 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
261 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
262 m_kerberosKrb5ConfHasBeenSet = true;
263 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
264 }
265 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
267 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
268 return *this;
269 }
271
273
277 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
278 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
279 template <typename AgentArnsT = Aws::Vector<Aws::String>>
280 void SetAgentArns(AgentArnsT&& value) {
281 m_agentArnsHasBeenSet = true;
282 m_agentArns = std::forward<AgentArnsT>(value);
283 }
284 template <typename AgentArnsT = Aws::Vector<Aws::String>>
286 SetAgentArns(std::forward<AgentArnsT>(value));
287 return *this;
288 }
289 template <typename AgentArnsT = Aws::String>
291 m_agentArnsHasBeenSet = true;
292 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
293 return *this;
294 }
296
298
303 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
304 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
305 template <typename CmkSecretConfigT = CmkSecretConfig>
306 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
307 m_cmkSecretConfigHasBeenSet = true;
308 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
309 }
310 template <typename CmkSecretConfigT = CmkSecretConfig>
312 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
313 return *this;
314 }
316
318
324 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
325 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
326 template <typename CustomSecretConfigT = CustomSecretConfig>
327 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
328 m_customSecretConfigHasBeenSet = true;
329 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
330 }
331 template <typename CustomSecretConfigT = CustomSecretConfig>
332 UpdateLocationHdfsRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
333 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
334 return *this;
335 }
337 private:
338 Aws::String m_locationArn;
339
340 Aws::String m_subdirectory;
341
342 Aws::Vector<HdfsNameNode> m_nameNodes;
343
344 int m_blockSize{0};
345
346 int m_replicationFactor{0};
347
348 Aws::String m_kmsKeyProviderUri;
349
350 QopConfiguration m_qopConfiguration;
351
353
354 Aws::String m_simpleUser;
355
356 Aws::String m_kerberosPrincipal;
357
358 Aws::Utils::ByteBuffer m_kerberosKeytab{};
359
360 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
361
362 Aws::Vector<Aws::String> m_agentArns;
363
364 CmkSecretConfig m_cmkSecretConfig;
365
366 CustomSecretConfig m_customSecretConfig;
367 bool m_locationArnHasBeenSet = false;
368 bool m_subdirectoryHasBeenSet = false;
369 bool m_nameNodesHasBeenSet = false;
370 bool m_blockSizeHasBeenSet = false;
371 bool m_replicationFactorHasBeenSet = false;
372 bool m_kmsKeyProviderUriHasBeenSet = false;
373 bool m_qopConfigurationHasBeenSet = false;
374 bool m_authenticationTypeHasBeenSet = false;
375 bool m_simpleUserHasBeenSet = false;
376 bool m_kerberosPrincipalHasBeenSet = false;
377 bool m_kerberosKeytabHasBeenSet = false;
378 bool m_kerberosKrb5ConfHasBeenSet = false;
379 bool m_agentArnsHasBeenSet = false;
380 bool m_cmkSecretConfigHasBeenSet = false;
381 bool m_customSecretConfigHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace DataSync
386} // 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