AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateLocationSmbRequest.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
17#include <utility>
18
19namespace Aws {
20namespace DataSync {
21namespace Model {
22
26 public:
27 AWS_DATASYNC_API UpdateLocationSmbRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateLocationSmb"; }
34
35 AWS_DATASYNC_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
44 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
45 template <typename LocationArnT = Aws::String>
46 void SetLocationArn(LocationArnT&& value) {
47 m_locationArnHasBeenSet = true;
48 m_locationArn = std::forward<LocationArnT>(value);
49 }
50 template <typename LocationArnT = Aws::String>
52 SetLocationArn(std::forward<LocationArnT>(value));
53 return *this;
54 }
56
58
68 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
69 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
70 template <typename SubdirectoryT = Aws::String>
71 void SetSubdirectory(SubdirectoryT&& value) {
72 m_subdirectoryHasBeenSet = true;
73 m_subdirectory = std::forward<SubdirectoryT>(value);
74 }
75 template <typename SubdirectoryT = Aws::String>
77 SetSubdirectory(std::forward<SubdirectoryT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
89 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
90 template <typename ServerHostnameT = Aws::String>
91 void SetServerHostname(ServerHostnameT&& value) {
92 m_serverHostnameHasBeenSet = true;
93 m_serverHostname = std::forward<ServerHostnameT>(value);
94 }
95 template <typename ServerHostnameT = Aws::String>
96 UpdateLocationSmbRequest& WithServerHostname(ServerHostnameT&& value) {
97 SetServerHostname(std::forward<ServerHostnameT>(value));
98 return *this;
99 }
101
103
112 inline const Aws::String& GetUser() const { return m_user; }
113 inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
114 template <typename UserT = Aws::String>
115 void SetUser(UserT&& value) {
116 m_userHasBeenSet = true;
117 m_user = std::forward<UserT>(value);
118 }
119 template <typename UserT = Aws::String>
121 SetUser(std::forward<UserT>(value));
122 return *this;
123 }
125
127
134 inline const Aws::String& GetDomain() const { return m_domain; }
135 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
136 template <typename DomainT = Aws::String>
137 void SetDomain(DomainT&& value) {
138 m_domainHasBeenSet = true;
139 m_domain = std::forward<DomainT>(value);
140 }
141 template <typename DomainT = Aws::String>
143 SetDomain(std::forward<DomainT>(value));
144 return *this;
145 }
147
149
155 inline const Aws::String& GetPassword() const { return m_password; }
156 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
157 template <typename PasswordT = Aws::String>
158 void SetPassword(PasswordT&& value) {
159 m_passwordHasBeenSet = true;
160 m_password = std::forward<PasswordT>(value);
161 }
162 template <typename PasswordT = Aws::String>
164 SetPassword(std::forward<PasswordT>(value));
165 return *this;
166 }
168
170
176 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
177 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
178 template <typename CmkSecretConfigT = CmkSecretConfig>
179 void SetCmkSecretConfig(CmkSecretConfigT&& value) {
180 m_cmkSecretConfigHasBeenSet = true;
181 m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value);
182 }
183 template <typename CmkSecretConfigT = CmkSecretConfig>
185 SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value));
186 return *this;
187 }
189
191
197 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
198 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
199 template <typename CustomSecretConfigT = CustomSecretConfig>
200 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
201 m_customSecretConfigHasBeenSet = true;
202 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
203 }
204 template <typename CustomSecretConfigT = CustomSecretConfig>
205 UpdateLocationSmbRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
206 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
217 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
218 template <typename AgentArnsT = Aws::Vector<Aws::String>>
219 void SetAgentArns(AgentArnsT&& value) {
220 m_agentArnsHasBeenSet = true;
221 m_agentArns = std::forward<AgentArnsT>(value);
222 }
223 template <typename AgentArnsT = Aws::Vector<Aws::String>>
225 SetAgentArns(std::forward<AgentArnsT>(value));
226 return *this;
227 }
228 template <typename AgentArnsT = Aws::String>
230 m_agentArnsHasBeenSet = true;
231 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
232 return *this;
233 }
235
237
238 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
239 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
240 template <typename MountOptionsT = SmbMountOptions>
241 void SetMountOptions(MountOptionsT&& value) {
242 m_mountOptionsHasBeenSet = true;
243 m_mountOptions = std::forward<MountOptionsT>(value);
244 }
245 template <typename MountOptionsT = SmbMountOptions>
247 SetMountOptions(std::forward<MountOptionsT>(value));
248 return *this;
249 }
251
253
260 inline SmbAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
261 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
263 m_authenticationTypeHasBeenSet = true;
264 m_authenticationType = value;
265 }
268 return *this;
269 }
271
273
280 inline const Aws::Vector<Aws::String>& GetDnsIpAddresses() const { return m_dnsIpAddresses; }
281 inline bool DnsIpAddressesHasBeenSet() const { return m_dnsIpAddressesHasBeenSet; }
282 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
283 void SetDnsIpAddresses(DnsIpAddressesT&& value) {
284 m_dnsIpAddressesHasBeenSet = true;
285 m_dnsIpAddresses = std::forward<DnsIpAddressesT>(value);
286 }
287 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
289 SetDnsIpAddresses(std::forward<DnsIpAddressesT>(value));
290 return *this;
291 }
292 template <typename DnsIpAddressesT = Aws::String>
293 UpdateLocationSmbRequest& AddDnsIpAddresses(DnsIpAddressesT&& value) {
294 m_dnsIpAddressesHasBeenSet = true;
295 m_dnsIpAddresses.emplace_back(std::forward<DnsIpAddressesT>(value));
296 return *this;
297 }
299
301
310 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
311 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
312 template <typename KerberosPrincipalT = Aws::String>
313 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
314 m_kerberosPrincipalHasBeenSet = true;
315 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
316 }
317 template <typename KerberosPrincipalT = Aws::String>
318 UpdateLocationSmbRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) {
319 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
320 return *this;
321 }
323
325
332 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
333 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
334 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
335 void SetKerberosKeytab(KerberosKeytabT&& value) {
336 m_kerberosKeytabHasBeenSet = true;
337 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
338 }
339 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
341 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
342 return *this;
343 }
345
347
352 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
353 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
354 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
355 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
356 m_kerberosKrb5ConfHasBeenSet = true;
357 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
358 }
359 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
360 UpdateLocationSmbRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
361 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
362 return *this;
363 }
365 private:
366 Aws::String m_locationArn;
367
368 Aws::String m_subdirectory;
369
370 Aws::String m_serverHostname;
371
372 Aws::String m_user;
373
374 Aws::String m_domain;
375
376 Aws::String m_password;
377
378 CmkSecretConfig m_cmkSecretConfig;
379
380 CustomSecretConfig m_customSecretConfig;
381
382 Aws::Vector<Aws::String> m_agentArns;
383
384 SmbMountOptions m_mountOptions;
385
387
388 Aws::Vector<Aws::String> m_dnsIpAddresses;
389
390 Aws::String m_kerberosPrincipal;
391
392 Aws::Utils::ByteBuffer m_kerberosKeytab{};
393
394 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
395 bool m_locationArnHasBeenSet = false;
396 bool m_subdirectoryHasBeenSet = false;
397 bool m_serverHostnameHasBeenSet = false;
398 bool m_userHasBeenSet = false;
399 bool m_domainHasBeenSet = false;
400 bool m_passwordHasBeenSet = false;
401 bool m_cmkSecretConfigHasBeenSet = false;
402 bool m_customSecretConfigHasBeenSet = false;
403 bool m_agentArnsHasBeenSet = false;
404 bool m_mountOptionsHasBeenSet = false;
405 bool m_authenticationTypeHasBeenSet = false;
406 bool m_dnsIpAddressesHasBeenSet = false;
407 bool m_kerberosPrincipalHasBeenSet = false;
408 bool m_kerberosKeytabHasBeenSet = false;
409 bool m_kerberosKrb5ConfHasBeenSet = false;
410};
411
412} // namespace Model
413} // namespace DataSync
414} // namespace Aws
UpdateLocationSmbRequest & WithSubdirectory(SubdirectoryT &&value)
UpdateLocationSmbRequest & AddDnsIpAddresses(DnsIpAddressesT &&value)
const Aws::Vector< Aws::String > & GetDnsIpAddresses() const
const Aws::Utils::ByteBuffer & GetKerberosKrb5Conf() const
virtual const char * GetServiceRequestName() const override
UpdateLocationSmbRequest & WithDomain(DomainT &&value)
UpdateLocationSmbRequest & WithKerberosPrincipal(KerberosPrincipalT &&value)
UpdateLocationSmbRequest & WithDnsIpAddresses(DnsIpAddressesT &&value)
UpdateLocationSmbRequest & WithAuthenticationType(SmbAuthenticationType value)
UpdateLocationSmbRequest & WithKerberosKeytab(KerberosKeytabT &&value)
UpdateLocationSmbRequest & WithKerberosKrb5Conf(KerberosKrb5ConfT &&value)
UpdateLocationSmbRequest & WithMountOptions(MountOptionsT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLocationSmbRequest & WithUser(UserT &&value)
const CustomSecretConfig & GetCustomSecretConfig() const
UpdateLocationSmbRequest & WithServerHostname(ServerHostnameT &&value)
UpdateLocationSmbRequest & WithPassword(PasswordT &&value)
AWS_DATASYNC_API UpdateLocationSmbRequest()=default
UpdateLocationSmbRequest & AddAgentArns(AgentArnsT &&value)
UpdateLocationSmbRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
UpdateLocationSmbRequest & WithAgentArns(AgentArnsT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetAgentArns() const
UpdateLocationSmbRequest & WithLocationArn(LocationArnT &&value)
void SetCustomSecretConfig(CustomSecretConfigT &&value)
void SetAuthenticationType(SmbAuthenticationType value)
const Aws::Utils::ByteBuffer & GetKerberosKeytab() const
UpdateLocationSmbRequest & WithCustomSecretConfig(CustomSecretConfigT &&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