AWS SDK for C++

AWS SDK for C++ Version 1.11.782

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
198 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
199 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
200 template <typename CustomSecretConfigT = CustomSecretConfig>
201 void SetCustomSecretConfig(CustomSecretConfigT&& value) {
202 m_customSecretConfigHasBeenSet = true;
203 m_customSecretConfig = std::forward<CustomSecretConfigT>(value);
204 }
205 template <typename CustomSecretConfigT = CustomSecretConfig>
206 UpdateLocationSmbRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) {
207 SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value));
208 return *this;
209 }
211
213
217 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
218 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
219 template <typename AgentArnsT = Aws::Vector<Aws::String>>
220 void SetAgentArns(AgentArnsT&& value) {
221 m_agentArnsHasBeenSet = true;
222 m_agentArns = std::forward<AgentArnsT>(value);
223 }
224 template <typename AgentArnsT = Aws::Vector<Aws::String>>
226 SetAgentArns(std::forward<AgentArnsT>(value));
227 return *this;
228 }
229 template <typename AgentArnsT = Aws::String>
231 m_agentArnsHasBeenSet = true;
232 m_agentArns.emplace_back(std::forward<AgentArnsT>(value));
233 return *this;
234 }
236
238
239 inline const SmbMountOptions& GetMountOptions() const { return m_mountOptions; }
240 inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
241 template <typename MountOptionsT = SmbMountOptions>
242 void SetMountOptions(MountOptionsT&& value) {
243 m_mountOptionsHasBeenSet = true;
244 m_mountOptions = std::forward<MountOptionsT>(value);
245 }
246 template <typename MountOptionsT = SmbMountOptions>
248 SetMountOptions(std::forward<MountOptionsT>(value));
249 return *this;
250 }
252
254
261 inline SmbAuthenticationType GetAuthenticationType() const { return m_authenticationType; }
262 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
264 m_authenticationTypeHasBeenSet = true;
265 m_authenticationType = value;
266 }
269 return *this;
270 }
272
274
281 inline const Aws::Vector<Aws::String>& GetDnsIpAddresses() const { return m_dnsIpAddresses; }
282 inline bool DnsIpAddressesHasBeenSet() const { return m_dnsIpAddressesHasBeenSet; }
283 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
284 void SetDnsIpAddresses(DnsIpAddressesT&& value) {
285 m_dnsIpAddressesHasBeenSet = true;
286 m_dnsIpAddresses = std::forward<DnsIpAddressesT>(value);
287 }
288 template <typename DnsIpAddressesT = Aws::Vector<Aws::String>>
290 SetDnsIpAddresses(std::forward<DnsIpAddressesT>(value));
291 return *this;
292 }
293 template <typename DnsIpAddressesT = Aws::String>
294 UpdateLocationSmbRequest& AddDnsIpAddresses(DnsIpAddressesT&& value) {
295 m_dnsIpAddressesHasBeenSet = true;
296 m_dnsIpAddresses.emplace_back(std::forward<DnsIpAddressesT>(value));
297 return *this;
298 }
300
302
311 inline const Aws::String& GetKerberosPrincipal() const { return m_kerberosPrincipal; }
312 inline bool KerberosPrincipalHasBeenSet() const { return m_kerberosPrincipalHasBeenSet; }
313 template <typename KerberosPrincipalT = Aws::String>
314 void SetKerberosPrincipal(KerberosPrincipalT&& value) {
315 m_kerberosPrincipalHasBeenSet = true;
316 m_kerberosPrincipal = std::forward<KerberosPrincipalT>(value);
317 }
318 template <typename KerberosPrincipalT = Aws::String>
319 UpdateLocationSmbRequest& WithKerberosPrincipal(KerberosPrincipalT&& value) {
320 SetKerberosPrincipal(std::forward<KerberosPrincipalT>(value));
321 return *this;
322 }
324
326
333 inline const Aws::Utils::ByteBuffer& GetKerberosKeytab() const { return m_kerberosKeytab; }
334 inline bool KerberosKeytabHasBeenSet() const { return m_kerberosKeytabHasBeenSet; }
335 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
336 void SetKerberosKeytab(KerberosKeytabT&& value) {
337 m_kerberosKeytabHasBeenSet = true;
338 m_kerberosKeytab = std::forward<KerberosKeytabT>(value);
339 }
340 template <typename KerberosKeytabT = Aws::Utils::ByteBuffer>
342 SetKerberosKeytab(std::forward<KerberosKeytabT>(value));
343 return *this;
344 }
346
348
353 inline const Aws::Utils::ByteBuffer& GetKerberosKrb5Conf() const { return m_kerberosKrb5Conf; }
354 inline bool KerberosKrb5ConfHasBeenSet() const { return m_kerberosKrb5ConfHasBeenSet; }
355 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
356 void SetKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
357 m_kerberosKrb5ConfHasBeenSet = true;
358 m_kerberosKrb5Conf = std::forward<KerberosKrb5ConfT>(value);
359 }
360 template <typename KerberosKrb5ConfT = Aws::Utils::ByteBuffer>
361 UpdateLocationSmbRequest& WithKerberosKrb5Conf(KerberosKrb5ConfT&& value) {
362 SetKerberosKrb5Conf(std::forward<KerberosKrb5ConfT>(value));
363 return *this;
364 }
366 private:
367 Aws::String m_locationArn;
368
369 Aws::String m_subdirectory;
370
371 Aws::String m_serverHostname;
372
373 Aws::String m_user;
374
375 Aws::String m_domain;
376
377 Aws::String m_password;
378
379 CmkSecretConfig m_cmkSecretConfig;
380
381 CustomSecretConfig m_customSecretConfig;
382
383 Aws::Vector<Aws::String> m_agentArns;
384
385 SmbMountOptions m_mountOptions;
386
388
389 Aws::Vector<Aws::String> m_dnsIpAddresses;
390
391 Aws::String m_kerberosPrincipal;
392
393 Aws::Utils::ByteBuffer m_kerberosKeytab{};
394
395 Aws::Utils::ByteBuffer m_kerberosKrb5Conf{};
396 bool m_locationArnHasBeenSet = false;
397 bool m_subdirectoryHasBeenSet = false;
398 bool m_serverHostnameHasBeenSet = false;
399 bool m_userHasBeenSet = false;
400 bool m_domainHasBeenSet = false;
401 bool m_passwordHasBeenSet = false;
402 bool m_cmkSecretConfigHasBeenSet = false;
403 bool m_customSecretConfigHasBeenSet = false;
404 bool m_agentArnsHasBeenSet = false;
405 bool m_mountOptionsHasBeenSet = false;
406 bool m_authenticationTypeHasBeenSet = false;
407 bool m_dnsIpAddressesHasBeenSet = false;
408 bool m_kerberosPrincipalHasBeenSet = false;
409 bool m_kerberosKeytabHasBeenSet = false;
410 bool m_kerberosKrb5ConfHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace DataSync
415} // 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