AWS SDK for C++

AWS SDK for C++ Version 1.11.781

Loading...
Searching...
No Matches
CreateLocationSmbRequest.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/SmbAuthenticationType.h>
15#include <aws/datasync/model/SmbMountOptions.h>
16#include <aws/datasync/model/TagListEntry.h>
17
18#include <utility>
19
20namespace Aws {
21namespace DataSync {
22namespace Model {
23
30 public:
31 AWS_DATASYNC_API CreateLocationSmbRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationSmb"; }
38
39 AWS_DATASYNC_API Aws::String SerializePayload() const override;
40
42
44
54 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
55 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
56 template <typename SubdirectoryT = Aws::String>
57 void SetSubdirectory(SubdirectoryT&& value) {
58 m_subdirectoryHasBeenSet = true;
59 m_subdirectory = std::forward<SubdirectoryT>(value);
60 }
61 template <typename SubdirectoryT = Aws::String>
63 SetSubdirectory(std::forward<SubdirectoryT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
75 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
76 template <typename ServerHostnameT = Aws::String>
77 void SetServerHostname(ServerHostnameT&& value) {
78 m_serverHostnameHasBeenSet = true;
79 m_serverHostname = std::forward<ServerHostnameT>(value);
80 }
81 template <typename ServerHostnameT = Aws::String>
82 CreateLocationSmbRequest& WithServerHostname(ServerHostnameT&& value) {
83 SetServerHostname(std::forward<ServerHostnameT>(value));
84 return *this;
85 }
87
89
98 inline const Aws::String& GetUser() const { return m_user; }
99 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
100 template <typename UserT = Aws::String>
101 void SetUser(UserT&& value) {
102 m_userHasBeenSet = true;
103 m_user = std::forward<UserT>(value);
104 }
105 template <typename UserT = Aws::String>
107 SetUser(std::forward<UserT>(value));
108 return *this;
109 }
111
113
120 inline const Aws::String& GetDomain() const { return m_domain; }
121 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
122 template <typename DomainT = Aws::String>
123 void SetDomain(DomainT&& value) {
124 m_domainHasBeenSet = true;
125 m_domain = std::forward<DomainT>(value);
126 }
127 template <typename DomainT = Aws::String>
129 SetDomain(std::forward<DomainT>(value));
130 return *this;
131 }
133
135
141 inline const Aws::String& GetPassword() const { return m_password; }
142 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
143 template <typename PasswordT = Aws::String>
144 void SetPassword(PasswordT&& value) {
145 m_passwordHasBeenSet = true;
146 m_password = std::forward<PasswordT>(value);
147 }
148 template <typename PasswordT = Aws::String>
150 SetPassword(std::forward<PasswordT>(value));
151 return *this;
152 }
154
156
177 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
178 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
179 template <typename CmkSecretConfigT = CmkSecretConfig>
180 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
181 m_cmkSecretConfigHasBeenSet = true;
182 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
183 }
184 template <typename CmkSecretConfigT = CmkSecretConfig>
186 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
187 return *this;
188 }
190
192
206 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
207 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
208 template <typename CustomSecretConfigT = CustomSecretConfig>
209 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
210 m_customSecretConfigHasBeenSet = true;
211 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
212 }
213 template <typename CustomSecretConfigT = CustomSecretConfig>
214 CreateLocationSmbRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
215 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
226 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
227 template <typename AgentArnsT = Aws::Vector<Aws::String>>
228 void SetAgentArns(AgentArnsT&& value) {
229 m_agentArnsHasBeenSet = true;
230 m_agentArns = std::forward<AgentArnsT>(value);
231 }
232 template <typename AgentArnsT = Aws::Vector<Aws::String>>
234 SetAgentArns(std::forward<AgentArnsT>(value));
235 return *this;
236 }
237 template <typename AgentArnsT = Aws::String>
239 m_agentArnsHasBeenSet = true;
240 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
241 return *this;
242 }
244
246
250 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
251 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
252 template <typename MountOptionsT = SmbMountOptions>
253 void SetMountOptions(MountOptionsT&& value) {
254 m_mountOptionsHasBeenSet = true;
255 m_mountOptions = std::forward<MountOptionsT>(value);
256 }
257 template <typename MountOptionsT = SmbMountOptions>
259 SetMountOptions(std::forward<MountOptionsT>(value));
260 return *this;
261 }
263
265
270 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
271 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 template <typename TagsT = Aws::Vector<TagListEntry>>
273 void SetTags(TagsT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags = std::forward<TagsT>(value);
276 }
277 template <typename TagsT = Aws::Vector<TagListEntry>>
279 SetTags(std::forward<TagsT>(value));
280 return *this;
281 }
282 template <typename TagsT = TagListEntry>
284 m_tagsHasBeenSet = true;
285 m_tags.emplace_back(std::forward<TagsT>(value));
286 return *this;
287 }
289
291
298 inline SmbAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
299 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
301 m_authenticationTypeHasBeenSet = true;
302 m_authenticationType = value;
303 }
306 return *this;
307 }
309
311
318 inline const Aws::Vector<Aws::String>& GetDnsIpAddresses() const { return m_dnsIpAddresses; }
319 inline bool DnsIpAddressesHasBeenSet() const { return m_dnsIpAddressesHasBeenSet; }
320 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
321 void SetDnsIpAddresses(DnsIpAddressesT&& value) {
322 m_dnsIpAddressesHasBeenSet = true;
323 m_dnsIpAddresses = std::forward<DnsIpAddressesT>(value);
324 }
325 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
327 SetDnsIpAddresses(std::forward<DnsIpAddressesT>(value));
328 return *this;
329 }
330 template <typename DnsIpAddressesT = Aws::String>
331 CreateLocationSmbRequest& AddDnsIpAddresses(DnsIpAddressesT&& value) {
332 m_dnsIpAddressesHasBeenSet = true;
333 m_dnsIpAddresses.emplace_back(std::forward<DnsIpAddressesT>(value));
334 return *this;
335 }
337
339
348 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
349 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
350 template <typename KerberosPrincipalT = Aws::String>
351 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
352 m_kerberosPrincipalHasBeenSet = true;
353 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
354 }
355 template <typename KerberosPrincipalT = Aws::String>
356 CreateLocationSmbRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) {
357 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
358 return *this;
359 }
361
363
370 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
371 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
372 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
373 void SetKerberosKeytab(KerberosKeytabT&& value) {
374 m_kerberosKeytabHasBeenSet = true;
375 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
376 }
377 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
379 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
380 return *this;
381 }
383
385
390 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
391 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
392 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
393 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
394 m_kerberosKrb5ConfHasBeenSet = true;
395 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
396 }
397 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
398 CreateLocationSmbRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
399 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
400 return *this;
401 }
403 private:
404 Aws::String m_subdirectory;
405
406 Aws::String m_serverHostname;
407
408 Aws::String m_user;
409
410 Aws::String m_domain;
411
412 Aws::String m_password;
413
414 CmkSecretConfig m_cmkSecretConfig;
415
416 CustomSecretConfig m_customSecretConfig;
417
418 Aws::Vector<Aws::String> m_agentArns;
419
420 SmbMountOptions m_mountOptions;
421
423
425
426 Aws::Vector<Aws::String> m_dnsIpAddresses;
427
428 Aws::String m_kerberosPrincipal;
429
430 Aws::Utils::ByteBuffer m_kerberosKeytab{};
431
432 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
433 bool m_subdirectoryHasBeenSet = false;
434 bool m_serverHostnameHasBeenSet = false;
435 bool m_userHasBeenSet = false;
436 bool m_domainHasBeenSet = false;
437 bool m_passwordHasBeenSet = false;
438 bool m_cmkSecretConfigHasBeenSet = false;
439 bool m_customSecretConfigHasBeenSet = false;
440 bool m_agentArnsHasBeenSet = false;
441 bool m_mountOptionsHasBeenSet = false;
442 bool m_tagsHasBeenSet = false;
443 bool m_authenticationTypeHasBeenSet = false;
444 bool m_dnsIpAddressesHasBeenSet = false;
445 bool m_kerberosPrincipalHasBeenSet = false;
446 bool m_kerberosKeytabHasBeenSet = false;
447 bool m_kerberosKrb5ConfHasBeenSet = false;
448};
449
450} // namespace Model
451} // namespace DataSync
452} // namespace Aws
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATASYNC_API CreateLocationSmbRequest()=default
CreateLocationSmbRequest & WithDnsIpAddresses(DnsIpAddressesT &&value)
CreateLocationSmbRequest & WithUser(UserT &&value)
CreateLocationSmbRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
CreateLocationSmbRequest & WithServerHostname(ServerHostnameT &&value)
CreateLocationSmbRequest & AddAgentArns(AgentArnsT &&value)
virtual const char * GetServiceRequestName() const override
CreateLocationSmbRequest & AddTags(TagsT &&value)
CreateLocationSmbRequest & WithDomain(DomainT &&value)
CreateLocationSmbRequest & AddDnsIpAddresses(DnsIpAddressesT &&value)
CreateLocationSmbRequest & WithPassword(PasswordT &&value)
const Aws::Vector< Aws::String > & GetDnsIpAddresses() const
CreateLocationSmbRequest & WithSubdirectory(SubdirectoryT &&value)
const Aws::Utils::ByteBuffer & GetKerberosKeytab() const
CreateLocationSmbRequest & WithKerberosPrincipal(KerberosPrincipalT &&value)
CreateLocationSmbRequest & WithTags(TagsT &&value)
CreateLocationSmbRequest & WithAuthenticationType(SmbAuthenticationType value)
const Aws::Vector< TagListEntry > & GetTags() const
void SetAuthenticationType(SmbAuthenticationType value)
const Aws::Utils::ByteBuffer & GetKerberosKrb5Conf() const
AWS_DATASYNC_API Aws::String SerializePayload() const override
const CustomSecretConfig & GetCustomSecretConfig() const
CreateLocationSmbRequest & WithAgentArns(AgentArnsT &&value)
const Aws::Vector< Aws::String > & GetAgentArns() const
CreateLocationSmbRequest & WithKerberosKeytab(KerberosKeytabT &&value)
void SetCustomSecretConfig(CustomSecretConfigT &&value)
CreateLocationSmbRequest & WithCustomSecretConfig(CustomSecretConfigT &&value)
CreateLocationSmbRequest & WithMountOptions(MountOptionsT &&value)
CreateLocationSmbRequest & WithKerberosKrb5Conf(KerberosKrb5ConfT &&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