AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/HdfsAuthenticationType.h>
13#include <aws/datasync/model/HdfsNameNode.h>
14#include <aws/datasync/model/QopConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DataSync {
20namespace Model {
21
25 public:
26 AWS_DATASYNC_API UpdateLocationHdfsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateLocationHdfs"; }
33
34 AWS_DATASYNC_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
43 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
44 template <typename LocationArnT = Aws::String>
45 void SetLocationArn(LocationArnT&& value) {
46 m_locationArnHasBeenSet = true;
47 m_locationArn = std::forward<LocationArnT>(value);
48 }
49 template <typename LocationArnT = Aws::String>
51 SetLocationArn(std::forward<LocationArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
62 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
63 template <typename SubdirectoryT = Aws::String>
64 void SetSubdirectory(SubdirectoryT&& value) {
65 m_subdirectoryHasBeenSet = true;
66 m_subdirectory = std::forward<SubdirectoryT>(value);
67 }
68 template <typename SubdirectoryT = Aws::String>
70 SetSubdirectory(std::forward<SubdirectoryT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
83 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
84 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
85 void SetNameNodes(NameNodesT&& value) {
86 m_nameNodesHasBeenSet = true;
87 m_nameNodes = std::forward<NameNodesT>(value);
88 }
89 template <typename NameNodesT = Aws::Vector<HdfsNameNode>>
91 SetNameNodes(std::forward<NameNodesT>(value));
92 return *this;
93 }
94 template <typename NameNodesT = HdfsNameNode>
96 m_nameNodesHasBeenSet = true;
97 m_nameNodes.emplace_back(std::forward<NameNodesT>(value));
98 return *this;
99 }
101
103
106 inline int GetBlockSize() const { return m_blockSize; }
107 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
108 inline void SetBlockSize(int value) {
109 m_blockSizeHasBeenSet = true;
110 m_blockSize = value;
111 }
113 SetBlockSize(value);
114 return *this;
115 }
117
119
123 inline int GetReplicationFactor() const { return m_replicationFactor; }
124 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
125 inline void SetReplicationFactor(int value) {
126 m_replicationFactorHasBeenSet = true;
127 m_replicationFactor = value;
128 }
131 return *this;
132 }
134
136
139 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
140 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
141 template <typename KmsKeyProviderUriT = Aws::String>
142 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) {
143 m_kmsKeyProviderUriHasBeenSet = true;
144 m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value);
145 }
146 template <typename KmsKeyProviderUriT = Aws::String>
148 SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value));
149 return *this;
150 }
152
154
159 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
160 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
161 template <typename QopConfigurationT = QopConfiguration>
162 void SetQopConfiguration(QopConfigurationT&& value) {
163 m_qopConfigurationHasBeenSet = true;
164 m_qopConfiguration = std::forward<QopConfigurationT>(value);
165 }
166 template <typename QopConfigurationT = QopConfiguration>
168 SetQopConfiguration(std::forward<QopConfigurationT>(value));
169 return *this;
170 }
172
174
177 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
178 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
180 m_authenticationTypeHasBeenSet = true;
181 m_authenticationType = value;
182 }
185 return *this;
186 }
188
190
193 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
194 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
195 template <typename SimpleUserT = Aws::String>
196 void SetSimpleUser(SimpleUserT&& value) {
197 m_simpleUserHasBeenSet = true;
198 m_simpleUser = std::forward<SimpleUserT>(value);
199 }
200 template <typename SimpleUserT = Aws::String>
202 SetSimpleUser(std::forward<SimpleUserT>(value));
203 return *this;
204 }
206
208
212 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
213 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
214 template <typename KerberosPrincipalT = Aws::String>
215 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
216 m_kerberosPrincipalHasBeenSet = true;
217 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
218 }
219 template <typename KerberosPrincipalT = Aws::String>
221 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
222 return *this;
223 }
225
227
232 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
233 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
234 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
235 void SetKerberosKeytab(KerberosKeytabT&& value) {
236 m_kerberosKeytabHasBeenSet = true;
237 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
238 }
239 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
241 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
242 return *this;
243 }
245
247
253 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
254 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
255 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
256 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
257 m_kerberosKrb5ConfHasBeenSet = true;
258 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
259 }
260 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
262 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
263 return *this;
264 }
266
268
272 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
273 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
274 template <typename AgentArnsT = Aws::Vector<Aws::String>>
275 void SetAgentArns(AgentArnsT&& value) {
276 m_agentArnsHasBeenSet = true;
277 m_agentArns = std::forward<AgentArnsT>(value);
278 }
279 template <typename AgentArnsT = Aws::Vector<Aws::String>>
281 SetAgentArns(std::forward<AgentArnsT>(value));
282 return *this;
283 }
284 template <typename AgentArnsT = Aws::String>
286 m_agentArnsHasBeenSet = true;
287 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_locationArn;
293
294 Aws::String m_subdirectory;
295
296 Aws::Vector<HdfsNameNode> m_nameNodes;
297
298 int m_blockSize{0};
299
300 int m_replicationFactor{0};
301
302 Aws::String m_kmsKeyProviderUri;
303
304 QopConfiguration m_qopConfiguration;
305
307
308 Aws::String m_simpleUser;
309
310 Aws::String m_kerberosPrincipal;
311
312 Aws::Utils::ByteBuffer m_kerberosKeytab{};
313
314 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
315
316 Aws::Vector<Aws::String> m_agentArns;
317 bool m_locationArnHasBeenSet = false;
318 bool m_subdirectoryHasBeenSet = false;
319 bool m_nameNodesHasBeenSet = false;
320 bool m_blockSizeHasBeenSet = false;
321 bool m_replicationFactorHasBeenSet = false;
322 bool m_kmsKeyProviderUriHasBeenSet = false;
323 bool m_qopConfigurationHasBeenSet = false;
324 bool m_authenticationTypeHasBeenSet = false;
325 bool m_simpleUserHasBeenSet = false;
326 bool m_kerberosPrincipalHasBeenSet = false;
327 bool m_kerberosKeytabHasBeenSet = false;
328 bool m_kerberosKrb5ConfHasBeenSet = false;
329 bool m_agentArnsHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace DataSync
334} // namespace Aws
AWS_DATASYNC_API UpdateLocationHdfsRequest()=default
UpdateLocationHdfsRequest & WithKerberosKrb5Conf(KerberosKrb5ConfT &&value)
UpdateLocationHdfsRequest & WithBlockSize(int value)
const Aws::Vector< Aws::String > & GetAgentArns() const
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 & 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