AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateLocationSmbRequest.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/SmbMountOptions.h>
12#include <aws/datasync/model/SmbAuthenticationType.h>
13#include <aws/core/utils/Array.h>
14#include <aws/datasync/model/TagListEntry.h>
15#include <utility>
16
17namespace Aws
18{
19namespace DataSync
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_DATASYNC_API CreateLocationSmbRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationSmb"; }
39
40 AWS_DATASYNC_API Aws::String SerializePayload() const override;
41
43
44
46
56 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
57 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
58 template<typename SubdirectoryT = Aws::String>
59 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
60 template<typename SubdirectoryT = Aws::String>
61 CreateLocationSmbRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
63
65
70 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
71 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
72 template<typename ServerHostnameT = Aws::String>
73 void SetServerHostname(ServerHostnameT&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::forward<ServerHostnameT>(value); }
74 template<typename ServerHostnameT = Aws::String>
75 CreateLocationSmbRequest& WithServerHostname(ServerHostnameT&& value) { SetServerHostname(std::forward<ServerHostnameT>(value)); return *this;}
77
79
88 inline const Aws::String& GetUser() const { return m_user; }
89 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
90 template<typename UserT = Aws::String>
91 void SetUser(UserT&& value) { m_userHasBeenSet = true; m_user = std::forward<UserT>(value); }
92 template<typename UserT = Aws::String>
93 CreateLocationSmbRequest& WithUser(UserT&& value) { SetUser(std::forward<UserT>(value)); return *this;}
95
97
104 inline const Aws::String& GetDomain() const { return m_domain; }
105 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
106 template<typename DomainT = Aws::String>
107 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
108 template<typename DomainT = Aws::String>
109 CreateLocationSmbRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
111
113
119 inline const Aws::String& GetPassword() const { return m_password; }
120 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
121 template<typename PasswordT = Aws::String>
122 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
123 template<typename PasswordT = Aws::String>
124 CreateLocationSmbRequest& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
126
128
132 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
133 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
134 template<typename AgentArnsT = Aws::Vector<Aws::String>>
135 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
136 template<typename AgentArnsT = Aws::Vector<Aws::String>>
137 CreateLocationSmbRequest& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
138 template<typename AgentArnsT = Aws::String>
139 CreateLocationSmbRequest& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
141
143
147 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
148 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
149 template<typename MountOptionsT = SmbMountOptions>
150 void SetMountOptions(MountOptionsT&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::forward<MountOptionsT>(value); }
151 template<typename MountOptionsT = SmbMountOptions>
152 CreateLocationSmbRequest& WithMountOptions(MountOptionsT&& value) { SetMountOptions(std::forward<MountOptionsT>(value)); return *this;}
154
156
161 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Vector<TagListEntry>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Vector<TagListEntry>>
166 CreateLocationSmbRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsT = TagListEntry>
168 CreateLocationSmbRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
170
172
179 inline SmbAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
180 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
181 inline void SetAuthenticationType(SmbAuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
184
186
193 inline const Aws::Vector<Aws::String>& GetDnsIpAddresses() const { return m_dnsIpAddresses; }
194 inline bool DnsIpAddressesHasBeenSet() const { return m_dnsIpAddressesHasBeenSet; }
195 template<typename DnsIpAddressesT = Aws::Vector<Aws::String>>
196 void SetDnsIpAddresses(DnsIpAddressesT&& value) { m_dnsIpAddressesHasBeenSet = true; m_dnsIpAddresses = std::forward<DnsIpAddressesT>(value); }
197 template<typename DnsIpAddressesT = Aws::Vector<Aws::String>>
198 CreateLocationSmbRequest& WithDnsIpAddresses(DnsIpAddressesT&& value) { SetDnsIpAddresses(std::forward<DnsIpAddressesT>(value)); return *this;}
199 template<typename DnsIpAddressesT = Aws::String>
200 CreateLocationSmbRequest& AddDnsIpAddresses(DnsIpAddressesT&& value) { m_dnsIpAddressesHasBeenSet = true; m_dnsIpAddresses.emplace_back(std::forward<DnsIpAddressesT>(value)); return *this; }
202
204
213 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
214 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
215 template<typename KerberosPrincipalT = Aws::String>
216 void SetKerberosPrincipal(KerberosPrincipalT&& value) { m_kerberosPrincipalHasBeenSet = true; m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value); }
217 template<typename KerberosPrincipalT = Aws::String>
218 CreateLocationSmbRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) { SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value)); return *this;}
220
222
229 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
230 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
231 template<typename KerberosKeytabT = Aws::Utils::ByteBuffer>
232 void SetKerberosKeytab(KerberosKeytabT&& value) { m_kerberosKeytabHasBeenSet = true; m_kerberosKeytab = std::forward<KerberosKeytabT>(value); }
233 template<typename KerberosKeytabT = Aws::Utils::ByteBuffer>
234 CreateLocationSmbRequest& WithKerberosKeytab(KerberosKeytabT&& value) { SetKerberosKeytab(std::forward<KerberosKeytabT>(value)); return *this;}
236
238
243 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
244 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
245 template<typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
246 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) { m_kerberosKrb5ConfHasBeenSet = true; m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value); }
247 template<typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
248 CreateLocationSmbRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) { SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value)); return *this;}
250 private:
251
252 Aws::String m_subdirectory;
253 bool m_subdirectoryHasBeenSet = false;
254
255 Aws::String m_serverHostname;
256 bool m_serverHostnameHasBeenSet = false;
257
258 Aws::String m_user;
259 bool m_userHasBeenSet = false;
260
261 Aws::String m_domain;
262 bool m_domainHasBeenSet = false;
263
264 Aws::String m_password;
265 bool m_passwordHasBeenSet = false;
266
267 Aws::Vector<Aws::String> m_agentArns;
268 bool m_agentArnsHasBeenSet = false;
269
270 SmbMountOptions m_mountOptions;
271 bool m_mountOptionsHasBeenSet = false;
272
274 bool m_tagsHasBeenSet = false;
275
277 bool m_authenticationTypeHasBeenSet = false;
278
279 Aws::Vector<Aws::String> m_dnsIpAddresses;
280 bool m_dnsIpAddressesHasBeenSet = false;
281
282 Aws::String m_kerberosPrincipal;
283 bool m_kerberosPrincipalHasBeenSet = false;
284
285 Aws::Utils::ByteBuffer m_kerberosKeytab{};
286 bool m_kerberosKeytabHasBeenSet = false;
287
288 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
289 bool m_kerberosKrb5ConfHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace DataSync
294} // 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 & 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
CreateLocationSmbRequest & WithAgentArns(AgentArnsT &&value)
const Aws::Vector< Aws::String > & GetAgentArns() const
CreateLocationSmbRequest & WithKerberosKeytab(KerberosKeytabT &&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