AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
52 inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
53 inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
54 inline CreateLocationHdfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
55 inline CreateLocationHdfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
56 inline CreateLocationHdfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
58
60
66 inline const Aws::Vector<HdfsNameNode>& GetNameNodes() const{ return m_nameNodes; }
67 inline bool NameNodesHasBeenSet() const { return m_nameNodesHasBeenSet; }
68 inline void SetNameNodes(const Aws::Vector<HdfsNameNode>& value) { m_nameNodesHasBeenSet = true; m_nameNodes = value; }
69 inline void SetNameNodes(Aws::Vector<HdfsNameNode>&& value) { m_nameNodesHasBeenSet = true; m_nameNodes = std::move(value); }
71 inline CreateLocationHdfsRequest& WithNameNodes(Aws::Vector<HdfsNameNode>&& value) { SetNameNodes(std::move(value)); return *this;}
72 inline CreateLocationHdfsRequest& AddNameNodes(const HdfsNameNode& value) { m_nameNodesHasBeenSet = true; m_nameNodes.push_back(value); return *this; }
73 inline CreateLocationHdfsRequest& AddNameNodes(HdfsNameNode&& value) { m_nameNodesHasBeenSet = true; m_nameNodes.push_back(std::move(value)); return *this; }
75
77
81 inline int GetBlockSize() const{ return m_blockSize; }
82 inline bool BlockSizeHasBeenSet() const { return m_blockSizeHasBeenSet; }
83 inline void SetBlockSize(int value) { m_blockSizeHasBeenSet = true; m_blockSize = value; }
84 inline CreateLocationHdfsRequest& WithBlockSize(int value) { SetBlockSize(value); return *this;}
86
88
92 inline int GetReplicationFactor() const{ return m_replicationFactor; }
93 inline bool ReplicationFactorHasBeenSet() const { return m_replicationFactorHasBeenSet; }
94 inline void SetReplicationFactor(int value) { m_replicationFactorHasBeenSet = true; m_replicationFactor = value; }
95 inline CreateLocationHdfsRequest& WithReplicationFactor(int value) { SetReplicationFactor(value); return *this;}
97
99
102 inline const Aws::String& GetKmsKeyProviderUri() const{ return m_kmsKeyProviderUri; }
103 inline bool KmsKeyProviderUriHasBeenSet() const { return m_kmsKeyProviderUriHasBeenSet; }
104 inline void SetKmsKeyProviderUri(const Aws::String& value) { m_kmsKeyProviderUriHasBeenSet = true; m_kmsKeyProviderUri = value; }
105 inline void SetKmsKeyProviderUri(Aws::String&& value) { m_kmsKeyProviderUriHasBeenSet = true; m_kmsKeyProviderUri = std::move(value); }
106 inline void SetKmsKeyProviderUri(const char* value) { m_kmsKeyProviderUriHasBeenSet = true; m_kmsKeyProviderUri.assign(value); }
108 inline CreateLocationHdfsRequest& WithKmsKeyProviderUri(Aws::String&& value) { SetKmsKeyProviderUri(std::move(value)); return *this;}
109 inline CreateLocationHdfsRequest& WithKmsKeyProviderUri(const char* value) { SetKmsKeyProviderUri(value); return *this;}
111
113
122 inline const QopConfiguration& GetQopConfiguration() const{ return m_qopConfiguration; }
123 inline bool QopConfigurationHasBeenSet() const { return m_qopConfigurationHasBeenSet; }
124 inline void SetQopConfiguration(const QopConfiguration& value) { m_qopConfigurationHasBeenSet = true; m_qopConfiguration = value; }
125 inline void SetQopConfiguration(QopConfiguration&& value) { m_qopConfigurationHasBeenSet = true; m_qopConfiguration = std::move(value); }
127 inline CreateLocationHdfsRequest& WithQopConfiguration(QopConfiguration&& value) { SetQopConfiguration(std::move(value)); return *this;}
129
131
134 inline const HdfsAuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
135 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
136 inline void SetAuthenticationType(const HdfsAuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
137 inline void SetAuthenticationType(HdfsAuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
141
143
148 inline const Aws::String& GetSimpleUser() const{ return m_simpleUser; }
149 inline bool SimpleUserHasBeenSet() const { return m_simpleUserHasBeenSet; }
150 inline void SetSimpleUser(const Aws::String& value) { m_simpleUserHasBeenSet = true; m_simpleUser = value; }
151 inline void SetSimpleUser(Aws::String&& value) { m_simpleUserHasBeenSet = true; m_simpleUser = std::move(value); }
152 inline void SetSimpleUser(const char* value) { m_simpleUserHasBeenSet = true; m_simpleUser.assign(value); }
153 inline CreateLocationHdfsRequest& WithSimpleUser(const Aws::String& value) { SetSimpleUser(value); return *this;}
154 inline CreateLocationHdfsRequest& WithSimpleUser(Aws::String&& value) { SetSimpleUser(std::move(value)); return *this;}
155 inline CreateLocationHdfsRequest& WithSimpleUser(const char* value) { SetSimpleUser(value); return *this;}
157
159
164 inline const Aws::String& GetKerberosPrincipal() const{ return m_kerberosPrincipal; }
165 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
166 inline void SetKerberosPrincipal(const Aws::String& value) { m_kerberosPrincipalHasBeenSet = true; m_kerberosPrincipal = value; }
167 inline void SetKerberosPrincipal(Aws::String&& value) { m_kerberosPrincipalHasBeenSet = true; m_kerberosPrincipal = std::move(value); }
168 inline void SetKerberosPrincipal(const char* value) { m_kerberosPrincipalHasBeenSet = true; m_kerberosPrincipal.assign(value); }
170 inline CreateLocationHdfsRequest& WithKerberosPrincipal(Aws::String&& value) { SetKerberosPrincipal(std::move(value)); return *this;}
171 inline CreateLocationHdfsRequest& WithKerberosPrincipal(const char* value) { SetKerberosPrincipal(value); return *this;}
173
175
183 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const{ return m_kerberosKeytab; }
184 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
185 inline void SetKerberosKeytab(const Aws::Utils::ByteBuffer& value) { m_kerberosKeytabHasBeenSet = true; m_kerberosKeytab = value; }
186 inline void SetKerberosKeytab(Aws::Utils::ByteBuffer&& value) { m_kerberosKeytabHasBeenSet = true; m_kerberosKeytab = std::move(value); }
190
192
200 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const{ return m_kerberosKrb5Conf; }
201 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
202 inline void SetKerberosKrb5Conf(const Aws::Utils::ByteBuffer& value) { m_kerberosKrb5ConfHasBeenSet = true; m_kerberosKrb5Conf = value; }
203 inline void SetKerberosKrb5Conf(Aws::Utils::ByteBuffer&& value) { m_kerberosKrb5ConfHasBeenSet = true; m_kerberosKrb5Conf = std::move(value); }
207
209
213 inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
214 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
215 inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
216 inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
218 inline CreateLocationHdfsRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
219 inline CreateLocationHdfsRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
220 inline CreateLocationHdfsRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
221 inline CreateLocationHdfsRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
223
225
230 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
231 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
232 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
233 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
234 inline CreateLocationHdfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
235 inline CreateLocationHdfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
236 inline CreateLocationHdfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
237 inline CreateLocationHdfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
239 private:
240
241 Aws::String m_subdirectory;
242 bool m_subdirectoryHasBeenSet = false;
243
244 Aws::Vector<HdfsNameNode> m_nameNodes;
245 bool m_nameNodesHasBeenSet = false;
246
247 int m_blockSize;
248 bool m_blockSizeHasBeenSet = false;
249
250 int m_replicationFactor;
251 bool m_replicationFactorHasBeenSet = false;
252
253 Aws::String m_kmsKeyProviderUri;
254 bool m_kmsKeyProviderUriHasBeenSet = false;
255
256 QopConfiguration m_qopConfiguration;
257 bool m_qopConfigurationHasBeenSet = false;
258
259 HdfsAuthenticationType m_authenticationType;
260 bool m_authenticationTypeHasBeenSet = false;
261
262 Aws::String m_simpleUser;
263 bool m_simpleUserHasBeenSet = false;
264
265 Aws::String m_kerberosPrincipal;
266 bool m_kerberosPrincipalHasBeenSet = false;
267
268 Aws::Utils::ByteBuffer m_kerberosKeytab;
269 bool m_kerberosKeytabHasBeenSet = false;
270
271 Aws::Utils::ByteBuffer m_kerberosKrb5Conf;
272 bool m_kerberosKrb5ConfHasBeenSet = false;
273
274 Aws::Vector<Aws::String> m_agentArns;
275 bool m_agentArnsHasBeenSet = false;
276
278 bool m_tagsHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace DataSync
283} // namespace Aws
void SetAgentArns(const Aws::Vector< Aws::String > &value)
void SetTags(const Aws::Vector< TagListEntry > &value)
void SetKerberosKeytab(Aws::Utils::ByteBuffer &&value)
CreateLocationHdfsRequest & AddNameNodes(const HdfsNameNode &value)
CreateLocationHdfsRequest & WithAuthenticationType(const HdfsAuthenticationType &value)
CreateLocationHdfsRequest & AddAgentArns(const char *value)
CreateLocationHdfsRequest & WithNameNodes(Aws::Vector< HdfsNameNode > &&value)
CreateLocationHdfsRequest & WithBlockSize(int value)
const Aws::Utils::ByteBuffer & GetKerberosKeytab() const
const HdfsAuthenticationType & GetAuthenticationType() const
void SetKerberosKrb5Conf(Aws::Utils::ByteBuffer &&value)
CreateLocationHdfsRequest & WithKmsKeyProviderUri(const char *value)
CreateLocationHdfsRequest & WithKmsKeyProviderUri(Aws::String &&value)
CreateLocationHdfsRequest & WithKerberosPrincipal(const char *value)
CreateLocationHdfsRequest & AddTags(const TagListEntry &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
CreateLocationHdfsRequest & AddTags(TagListEntry &&value)
const Aws::Vector< HdfsNameNode > & GetNameNodes() const
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationHdfsRequest & WithKerberosPrincipal(Aws::String &&value)
void SetKerberosKrb5Conf(const Aws::Utils::ByteBuffer &value)
CreateLocationHdfsRequest & WithQopConfiguration(const QopConfiguration &value)
CreateLocationHdfsRequest & WithKerberosKrb5Conf(const Aws::Utils::ByteBuffer &value)
void SetNameNodes(const Aws::Vector< HdfsNameNode > &value)
CreateLocationHdfsRequest & WithQopConfiguration(QopConfiguration &&value)
CreateLocationHdfsRequest & WithKerberosPrincipal(const Aws::String &value)
CreateLocationHdfsRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
CreateLocationHdfsRequest & WithSimpleUser(const char *value)
void SetQopConfiguration(const QopConfiguration &value)
CreateLocationHdfsRequest & WithAuthenticationType(HdfsAuthenticationType &&value)
CreateLocationHdfsRequest & WithSimpleUser(const Aws::String &value)
CreateLocationHdfsRequest & WithTags(const Aws::Vector< TagListEntry > &value)
virtual const char * GetServiceRequestName() const override
CreateLocationHdfsRequest & WithReplicationFactor(int value)
CreateLocationHdfsRequest & WithTags(Aws::Vector< TagListEntry > &&value)
void SetAuthenticationType(HdfsAuthenticationType &&value)
const Aws::Utils::ByteBuffer & GetKerberosKrb5Conf() const
CreateLocationHdfsRequest & WithKerberosKrb5Conf(Aws::Utils::ByteBuffer &&value)
CreateLocationHdfsRequest & WithKmsKeyProviderUri(const Aws::String &value)
CreateLocationHdfsRequest & WithSubdirectory(const char *value)
const Aws::Vector< Aws::String > & GetAgentArns() const
CreateLocationHdfsRequest & WithSimpleUser(Aws::String &&value)
void SetNameNodes(Aws::Vector< HdfsNameNode > &&value)
CreateLocationHdfsRequest & WithSubdirectory(const Aws::String &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
void SetKerberosKeytab(const Aws::Utils::ByteBuffer &value)
CreateLocationHdfsRequest & WithSubdirectory(Aws::String &&value)
CreateLocationHdfsRequest & AddAgentArns(Aws::String &&value)
CreateLocationHdfsRequest & AddNameNodes(HdfsNameNode &&value)
CreateLocationHdfsRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
void SetAgentArns(Aws::Vector< Aws::String > &&value)
CreateLocationHdfsRequest & AddAgentArns(const Aws::String &value)
CreateLocationHdfsRequest & WithKerberosKeytab(const Aws::Utils::ByteBuffer &value)
CreateLocationHdfsRequest & WithKerberosKeytab(Aws::Utils::ByteBuffer &&value)
CreateLocationHdfsRequest & WithNameNodes(const Aws::Vector< HdfsNameNode > &value)
const Aws::Vector< TagListEntry > & GetTags() const
void SetAuthenticationType(const HdfsAuthenticationType &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