AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
174 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
175 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
176 template <typename CmkSecretConfigT = CmkSecretConfig>
177 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
178 m_cmkSecretConfigHasBeenSet = true;
179 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
180 }
181 template <typename CmkSecretConfigT = CmkSecretConfig>
183 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
184 return *this;
185 }
187
189
200 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
201 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
202 template <typename CustomSecretConfigT = CustomSecretConfig>
203 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
204 m_customSecretConfigHasBeenSet = true;
205 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
206 }
207 template <typename CustomSecretConfigT = CustomSecretConfig>
208 CreateLocationSmbRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
209 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
210 return *this;
211 }
213
215
219 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
220 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
221 template <typename AgentArnsT = Aws::Vector<Aws::String>>
222 void SetAgentArns(AgentArnsT&& value) {
223 m_agentArnsHasBeenSet = true;
224 m_agentArns = std::forward<AgentArnsT>(value);
225 }
226 template <typename AgentArnsT = Aws::Vector<Aws::String>>
228 SetAgentArns(std::forward<AgentArnsT>(value));
229 return *this;
230 }
231 template <typename AgentArnsT = Aws::String>
233 m_agentArnsHasBeenSet = true;
234 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
235 return *this;
236 }
238
240
244 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
245 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
246 template <typename MountOptionsT = SmbMountOptions>
247 void SetMountOptions(MountOptionsT&& value) {
248 m_mountOptionsHasBeenSet = true;
249 m_mountOptions = std::forward<MountOptionsT>(value);
250 }
251 template <typename MountOptionsT = SmbMountOptions>
253 SetMountOptions(std::forward<MountOptionsT>(value));
254 return *this;
255 }
257
259
264 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
265 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
266 template <typename TagsT = Aws::Vector<TagListEntry>>
267 void SetTags(TagsT&& value) {
268 m_tagsHasBeenSet = true;
269 m_tags = std::forward<TagsT>(value);
270 }
271 template <typename TagsT = Aws::Vector<TagListEntry>>
273 SetTags(std::forward<TagsT>(value));
274 return *this;
275 }
276 template <typename TagsT = TagListEntry>
278 m_tagsHasBeenSet = true;
279 m_tags.emplace_back(std::forward<TagsT>(value));
280 return *this;
281 }
283
285
292 inline SmbAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
293 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
295 m_authenticationTypeHasBeenSet = true;
296 m_authenticationType = value;
297 }
300 return *this;
301 }
303
305
312 inline const Aws::Vector<Aws::String>& GetDnsIpAddresses() const { return m_dnsIpAddresses; }
313 inline bool DnsIpAddressesHasBeenSet() const { return m_dnsIpAddressesHasBeenSet; }
314 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
315 void SetDnsIpAddresses(DnsIpAddressesT&& value) {
316 m_dnsIpAddressesHasBeenSet = true;
317 m_dnsIpAddresses = std::forward<DnsIpAddressesT>(value);
318 }
319 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
321 SetDnsIpAddresses(std::forward<DnsIpAddressesT>(value));
322 return *this;
323 }
324 template <typename DnsIpAddressesT = Aws::String>
325 CreateLocationSmbRequest& AddDnsIpAddresses(DnsIpAddressesT&& value) {
326 m_dnsIpAddressesHasBeenSet = true;
327 m_dnsIpAddresses.emplace_back(std::forward<DnsIpAddressesT>(value));
328 return *this;
329 }
331
333
342 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
343 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
344 template <typename KerberosPrincipalT = Aws::String>
345 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
346 m_kerberosPrincipalHasBeenSet = true;
347 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
348 }
349 template <typename KerberosPrincipalT = Aws::String>
350 CreateLocationSmbRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) {
351 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
352 return *this;
353 }
355
357
364 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
365 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
366 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
367 void SetKerberosKeytab(KerberosKeytabT&& value) {
368 m_kerberosKeytabHasBeenSet = true;
369 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
370 }
371 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
373 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
374 return *this;
375 }
377
379
384 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
385 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
386 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
387 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
388 m_kerberosKrb5ConfHasBeenSet = true;
389 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
390 }
391 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
392 CreateLocationSmbRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
393 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
394 return *this;
395 }
397 private:
398 Aws::String m_subdirectory;
399
400 Aws::String m_serverHostname;
401
402 Aws::String m_user;
403
404 Aws::String m_domain;
405
406 Aws::String m_password;
407
408 CmkSecretConfig m_cmkSecretConfig;
409
410 CustomSecretConfig m_customSecretConfig;
411
412 Aws::Vector<Aws::String> m_agentArns;
413
414 SmbMountOptions m_mountOptions;
415
417
419
420 Aws::Vector<Aws::String> m_dnsIpAddresses;
421
422 Aws::String m_kerberosPrincipal;
423
424 Aws::Utils::ByteBuffer m_kerberosKeytab{};
425
426 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
427 bool m_subdirectoryHasBeenSet = false;
428 bool m_serverHostnameHasBeenSet = false;
429 bool m_userHasBeenSet = false;
430 bool m_domainHasBeenSet = false;
431 bool m_passwordHasBeenSet = false;
432 bool m_cmkSecretConfigHasBeenSet = false;
433 bool m_customSecretConfigHasBeenSet = false;
434 bool m_agentArnsHasBeenSet = false;
435 bool m_mountOptionsHasBeenSet = false;
436 bool m_tagsHasBeenSet = false;
437 bool m_authenticationTypeHasBeenSet = false;
438 bool m_dnsIpAddressesHasBeenSet = false;
439 bool m_kerberosPrincipalHasBeenSet = false;
440 bool m_kerberosKeytabHasBeenSet = false;
441 bool m_kerberosKrb5ConfHasBeenSet = false;
442};
443
444} // namespace Model
445} // namespace DataSync
446} // 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