AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLocationHdfsRequest.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 <aws/datasync/model/TagListEntry.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataSync
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_DATASYNC_API CreateLocationHdfsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationHdfs"; }
37
38 AWS_DATASYNC_API Aws::String SerializePayload() const override;
39
41
42
44
49 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
50 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
51 template<typename SubdirectoryT = Aws::String>
52 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
53 template<typename SubdirectoryT = Aws::String>
54 CreateLocationHdfsRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
56
58
64 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const { return m_nameNodes; }
65 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
66 template<typename NameNodesT = Aws::Vector<HdfsNameNode>>
67 void SetNameNodes(NameNodesT&& value) { m_nameNodesHasBeenSet = true; m_nameNodes = std::forward<NameNodesT>(value); }
68 template<typename NameNodesT = Aws::Vector<HdfsNameNode>>
69 CreateLocationHdfsRequest& WithNameNodes(NameNodesT&& value) { SetNameNodes(std::forward<NameNodesT>(value)); return *this;}
70 template<typename NameNodesT = HdfsNameNode>
71 CreateLocationHdfsRequest& AddNameNodes(NameNodesT&& value) { m_nameNodesHasBeenSet = true; m_nameNodes.emplace_back(std::forward<NameNodesT>(value)); return *this; }
73
75
79 inline int GetBlockSize() const { return m_blockSize; }
80 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
81 inline void SetBlockSize(int value) { m_blockSizeHasBeenSet = true; m_blockSize = value; }
82 inline CreateLocationHdfsRequest& WithBlockSize(int value) { SetBlockSize(value); return *this;}
84
86
90 inline int GetReplicationFactor() const { return m_replicationFactor; }
91 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
92 inline void SetReplicationFactor(int value) { m_replicationFactorHasBeenSet = true; m_replicationFactor = value; }
93 inline CreateLocationHdfsRequest& WithReplicationFactor(int value) { SetReplicationFactor(value); return *this;}
95
97
100 inline const Aws::String& GetKmsKeyProviderUri() const { return m_kmsKeyProviderUri; }
101 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
102 template<typename KmsKeyProviderUriT = Aws::String>
103 void SetKmsKeyProviderUri(KmsKeyProviderUriT&& value) { m_kmsKeyProviderUriHasBeenSet = true; m_kmsKeyProviderUri = std::forward<KmsKeyProviderUriT>(value); }
104 template<typename KmsKeyProviderUriT = Aws::String>
105 CreateLocationHdfsRequest& WithKmsKeyProviderUri(KmsKeyProviderUriT&& value) { SetKmsKeyProviderUri(std::forward<KmsKeyProviderUriT>(value)); return *this;}
107
109
118 inline const QopConfiguration& GetQopConfiguration() const { return m_qopConfiguration; }
119 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
120 template<typename QopConfigurationT = QopConfiguration>
121 void SetQopConfiguration(QopConfigurationT&& value) { m_qopConfigurationHasBeenSet = true; m_qopConfiguration = std::forward<QopConfigurationT>(value); }
122 template<typename QopConfigurationT = QopConfiguration>
123 CreateLocationHdfsRequest& WithQopConfiguration(QopConfigurationT&& value) { SetQopConfiguration(std::forward<QopConfigurationT>(value)); return *this;}
125
127
130 inline HdfsAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
131 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
132 inline void SetAuthenticationType(HdfsAuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
135
137
142 inline const Aws::String& GetSimpleUser() const { return m_simpleUser; }
143 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
144 template<typename SimpleUserT = Aws::String>
145 void SetSimpleUser(SimpleUserT&& value) { m_simpleUserHasBeenSet = true; m_simpleUser = std::forward<SimpleUserT>(value); }
146 template<typename SimpleUserT = Aws::String>
147 CreateLocationHdfsRequest& WithSimpleUser(SimpleUserT&& value) { SetSimpleUser(std::forward<SimpleUserT>(value)); return *this;}
149
151
156 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
157 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
158 template<typename KerberosPrincipalT = Aws::String>
159 void SetKerberosPrincipal(KerberosPrincipalT&& value) { m_kerberosPrincipalHasBeenSet = true; m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value); }
160 template<typename KerberosPrincipalT = Aws::String>
161 CreateLocationHdfsRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) { SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value)); return *this;}
163
165
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 CreateLocationHdfsRequest& WithKerberosKeytab(KerberosKeytabT&& value) { SetKerberosKeytab(std::forward<KerberosKeytabT>(value)); return *this;}
179
181
189 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
190 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
191 template<typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
192 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) { m_kerberosKrb5ConfHasBeenSet = true; m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value); }
193 template<typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
194 CreateLocationHdfsRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) { SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value)); return *this;}
196
198
202 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
203 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
204 template<typename AgentArnsT = Aws::Vector<Aws::String>>
205 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
206 template<typename AgentArnsT = Aws::Vector<Aws::String>>
207 CreateLocationHdfsRequest& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
208 template<typename AgentArnsT = Aws::String>
209 CreateLocationHdfsRequest& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
211
213
218 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template<typename TagsT = Aws::Vector<TagListEntry>>
221 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
222 template<typename TagsT = Aws::Vector<TagListEntry>>
223 CreateLocationHdfsRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
224 template<typename TagsT = TagListEntry>
225 CreateLocationHdfsRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
227 private:
228
229 Aws::String m_subdirectory;
230 bool m_subdirectoryHasBeenSet = false;
231
232 Aws::Vector<HdfsNameNode> m_nameNodes;
233 bool m_nameNodesHasBeenSet = false;
234
235 int m_blockSize{0};
236 bool m_blockSizeHasBeenSet = false;
237
238 int m_replicationFactor{0};
239 bool m_replicationFactorHasBeenSet = false;
240
241 Aws::String m_kmsKeyProviderUri;
242 bool m_kmsKeyProviderUriHasBeenSet = false;
243
244 QopConfiguration m_qopConfiguration;
245 bool m_qopConfigurationHasBeenSet = false;
246
248 bool m_authenticationTypeHasBeenSet = false;
249
250 Aws::String m_simpleUser;
251 bool m_simpleUserHasBeenSet = false;
252
253 Aws::String m_kerberosPrincipal;
254 bool m_kerberosPrincipalHasBeenSet = false;
255
256 Aws::Utils::ByteBuffer m_kerberosKeytab{};
257 bool m_kerberosKeytabHasBeenSet = false;
258
259 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
260 bool m_kerberosKrb5ConfHasBeenSet = false;
261
262 Aws::Vector<Aws::String> m_agentArns;
263 bool m_agentArnsHasBeenSet = false;
264
266 bool m_tagsHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace DataSync
271} // 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