AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateLocationHdfsRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/datasync/model/QopConfiguration.h>
12#include <aws/datasync/model/HdfsAuthenticationType.h>
13#include <aws/core/utils/Array.h>
14#include <aws/datasync/model/HdfsNameNode.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DataSync
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATASYNC_API UpdateLocationHdfsRequest() = 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 "UpdateLocationHdfs"; }
36
37 AWS_DATASYNC_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
47 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
48 template<typename LocationArnT = Aws::String>
49 void SetLocationArn(LocationArnT&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::forward<LocationArnT>(value); }
50 template<typename LocationArnT = Aws::String>
51 UpdateLocationHdfsRequest& WithLocationArn(LocationArnT&& value) { SetLocationArn(std::forward<LocationArnT>(value)); return *this;}
53
55
59 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
60 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
61 template<typename SubdirectoryT = Aws::String>
62 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
63 template<typename SubdirectoryT = Aws::String>
64 UpdateLocationHdfsRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
66
68
74 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
75 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
76 template<typename NameNodesT = Aws::Vector<HdfsNameNode>>
77 void SetNameNodes(NameNodesT&& value) { m_nameNodesHasBeenSet = true; m_nameNodes = std::forward<NameNodesT>(value); }
78 template<typename NameNodesT = Aws::Vector<HdfsNameNode>>
79 UpdateLocationHdfsRequest& WithNameNodes(NameNodesT&& value) { SetNameNodes(std::forward<NameNodesT>(value)); return *this;}
80 template<typename NameNodesT = HdfsNameNode>
81 UpdateLocationHdfsRequest& AddNameNodes(NameNodesT&& value) { m_nameNodesHasBeenSet = true; m_nameNodes.emplace_back(std::forward<NameNodesT>(value)); return *this; }
83
85
88 inline int GetBlockSize() const { return m_blockSize; }
89 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
90 inline void SetBlockSize(int value) { m_blockSizeHasBeenSet = true; m_blockSize = value; }
91 inline UpdateLocationHdfsRequest& WithBlockSize(int value) { SetBlockSize(value); return *this;}
93
95
99 inline int GetReplicationFactor() const { return m_replicationFactor; }
100 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
101 inline void SetReplicationFactor(int value) { m_replicationFactorHasBeenSet = true; m_replicationFactor = value; }
102 inline UpdateLocationHdfsRequest& WithReplicationFactor(int value) { SetReplicationFactor(value); return *this;}
104
106
109 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
110 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
111 template<typename KmsKeyProviderUriT = Aws::String>
112 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) { m_kmsKeyProviderUriHasBeenSet = true; m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value); }
113 template<typename KmsKeyProviderUriT = Aws::String>
114 UpdateLocationHdfsRequest& WithKmsKeyProviderUri(KmsKeyProviderUriT&& value) { SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value)); return *this;}
116
118
123 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
124 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
125 template<typename QopConfigurationT = QopConfiguration>
126 void SetQopConfiguration(QopConfigurationT&& value) { m_qopConfigurationHasBeenSet = true; m_qopConfiguration = std::forward<QopConfigurationT>(value); }
127 template<typename QopConfigurationT = QopConfiguration>
128 UpdateLocationHdfsRequest& WithQopConfiguration(QopConfigurationT&& value) { SetQopConfiguration(std::forward<QopConfigurationT>(value)); return *this;}
130
132
135 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
136 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
137 inline void SetAuthenticationType(HdfsAuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
140
142
145 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
146 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
147 template<typename SimpleUserT = Aws::String>
148 void SetSimpleUser(SimpleUserT&& value) { m_simpleUserHasBeenSet = true; m_simpleUser = std::forward<SimpleUserT>(value); }
149 template<typename SimpleUserT = Aws::String>
150 UpdateLocationHdfsRequest& WithSimpleUser(SimpleUserT&& value) { SetSimpleUser(std::forward<SimpleUserT>(value)); return *this;}
152
154
158 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
159 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
160 template<typename KerberosPrincipalT = Aws::String>
161 void SetKerberosPrincipal(KerberosPrincipalT&& value) { m_kerberosPrincipalHasBeenSet = true; m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value); }
162 template<typename KerberosPrincipalT = Aws::String>
163 UpdateLocationHdfsRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) { SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value)); return *this;}
165
167
172 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
173 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
174 template<typename KerberosKeytabT = Aws::Utils::ByteBuffer>
175 void SetKerberosKeytab(KerberosKeytabT&& value) { m_kerberosKeytabHasBeenSet = true; m_kerberosKeytab = std::forward<KerberosKeytabT>(value); }
176 template<typename KerberosKeytabT = Aws::Utils::ByteBuffer>
177 UpdateLocationHdfsRequest& WithKerberosKeytab(KerberosKeytabT&& value) { SetKerberosKeytab(std::forward<KerberosKeytabT>(value)); return *this;}
179
181
187 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
188 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
189 template<typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
190 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) { m_kerberosKrb5ConfHasBeenSet = true; m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value); }
191 template<typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
192 UpdateLocationHdfsRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) { SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value)); return *this;}
194
196
200 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
201 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
202 template<typename AgentArnsT = Aws::Vector<Aws::String>>
203 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
204 template<typename AgentArnsT = Aws::Vector<Aws::String>>
205 UpdateLocationHdfsRequest& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
206 template<typename AgentArnsT = Aws::String>
207 UpdateLocationHdfsRequest& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
209 private:
210
211 Aws::String m_locationArn;
212 bool m_locationArnHasBeenSet = false;
213
214 Aws::String m_subdirectory;
215 bool m_subdirectoryHasBeenSet = false;
216
217 Aws::Vector<HdfsNameNode> m_nameNodes;
218 bool m_nameNodesHasBeenSet = false;
219
220 int m_blockSize{0};
221 bool m_blockSizeHasBeenSet = false;
222
223 int m_replicationFactor{0};
224 bool m_replicationFactorHasBeenSet = false;
225
226 Aws::String m_kmsKeyProviderUri;
227 bool m_kmsKeyProviderUriHasBeenSet = false;
228
229 QopConfiguration m_qopConfiguration;
230 bool m_qopConfigurationHasBeenSet = false;
231
233 bool m_authenticationTypeHasBeenSet = false;
234
235 Aws::String m_simpleUser;
236 bool m_simpleUserHasBeenSet = false;
237
238 Aws::String m_kerberosPrincipal;
239 bool m_kerberosPrincipalHasBeenSet = false;
240
241 Aws::Utils::ByteBuffer m_kerberosKeytab{};
242 bool m_kerberosKeytabHasBeenSet = false;
243
244 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
245 bool m_kerberosKrb5ConfHasBeenSet = false;
246
247 Aws::Vector<Aws::String> m_agentArns;
248 bool m_agentArnsHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace DataSync
253} // 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