AWS SDK for C++  1.9.161
AWS SDK for C++
CreateLocationSmbRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace DataSync
18 {
19 namespace Model
20 {
21 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateLocationSmb"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
59  inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
60 
77  inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
78 
95  inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
96 
113  inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
114 
131  inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
132 
149  inline CreateLocationSmbRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
150 
167  inline CreateLocationSmbRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
168 
185  inline CreateLocationSmbRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
186 
187 
195  inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
196 
204  inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
205 
213  inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
214 
222  inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
223 
231  inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
232 
240  inline CreateLocationSmbRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
241 
249  inline CreateLocationSmbRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
250 
258  inline CreateLocationSmbRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
259 
260 
267  inline const Aws::String& GetUser() const{ return m_user; }
268 
275  inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
276 
283  inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
284 
291  inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
292 
299  inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
300 
307  inline CreateLocationSmbRequest& WithUser(const Aws::String& value) { SetUser(value); return *this;}
308 
315  inline CreateLocationSmbRequest& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
316 
323  inline CreateLocationSmbRequest& WithUser(const char* value) { SetUser(value); return *this;}
324 
325 
329  inline const Aws::String& GetDomain() const{ return m_domain; }
330 
334  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
335 
339  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
340 
344  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
345 
349  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
350 
354  inline CreateLocationSmbRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
355 
359  inline CreateLocationSmbRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
360 
364  inline CreateLocationSmbRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
365 
366 
371  inline const Aws::String& GetPassword() const{ return m_password; }
372 
377  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
378 
383  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
384 
389  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
390 
395  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
396 
401  inline CreateLocationSmbRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
402 
407  inline CreateLocationSmbRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
408 
413  inline CreateLocationSmbRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
414 
415 
420  inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
421 
426  inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
427 
432  inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
433 
438  inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
439 
444  inline CreateLocationSmbRequest& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
445 
450  inline CreateLocationSmbRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
451 
456  inline CreateLocationSmbRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
457 
462  inline CreateLocationSmbRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
463 
468  inline CreateLocationSmbRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
469 
470 
474  inline const SmbMountOptions& GetMountOptions() const{ return m_mountOptions; }
475 
479  inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
480 
484  inline void SetMountOptions(const SmbMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
485 
489  inline void SetMountOptions(SmbMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
490 
494  inline CreateLocationSmbRequest& WithMountOptions(const SmbMountOptions& value) { SetMountOptions(value); return *this;}
495 
499  inline CreateLocationSmbRequest& WithMountOptions(SmbMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
500 
501 
507  inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
508 
514  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
515 
521  inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
522 
528  inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
529 
535  inline CreateLocationSmbRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
536 
542  inline CreateLocationSmbRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
543 
549  inline CreateLocationSmbRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
550 
556  inline CreateLocationSmbRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
557 
558  private:
559 
560  Aws::String m_subdirectory;
561  bool m_subdirectoryHasBeenSet;
562 
563  Aws::String m_serverHostname;
564  bool m_serverHostnameHasBeenSet;
565 
566  Aws::String m_user;
567  bool m_userHasBeenSet;
568 
569  Aws::String m_domain;
570  bool m_domainHasBeenSet;
571 
572  Aws::String m_password;
573  bool m_passwordHasBeenSet;
574 
575  Aws::Vector<Aws::String> m_agentArns;
576  bool m_agentArnsHasBeenSet;
577 
578  SmbMountOptions m_mountOptions;
579  bool m_mountOptionsHasBeenSet;
580 
582  bool m_tagsHasBeenSet;
583  };
584 
585 } // namespace Model
586 } // namespace DataSync
587 } // namespace Aws
Aws::DataSync::Model::CreateLocationSmbRequest::SetTags
void SetTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateLocationSmbRequest.h:521
Aws::DataSync::Model::CreateLocationSmbRequest::AgentArnsHasBeenSet
bool AgentArnsHasBeenSet() const
Definition: CreateLocationSmbRequest.h:426
Aws::DataSync::Model::CreateLocationSmbRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLocationSmbRequest.h:36
Aws::DataSync::Model::CreateLocationSmbRequest::WithMountOptions
CreateLocationSmbRequest & WithMountOptions(SmbMountOptions &&value)
Definition: CreateLocationSmbRequest.h:499
Aws::DataSync::Model::CreateLocationSmbRequest::SetMountOptions
void SetMountOptions(SmbMountOptions &&value)
Definition: CreateLocationSmbRequest.h:489
Aws::DataSync::Model::CreateLocationSmbRequest::GetDomain
const Aws::String & GetDomain() const
Definition: CreateLocationSmbRequest.h:329
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::TagListEntry
Definition: TagListEntry.h:36
Aws::DataSync::Model::CreateLocationSmbRequest::GetTags
const Aws::Vector< TagListEntry > & GetTags() const
Definition: CreateLocationSmbRequest.h:507
Aws::DataSync::Model::CreateLocationSmbRequest::WithDomain
CreateLocationSmbRequest & WithDomain(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:359
Aws::DataSync::Model::CreateLocationSmbRequest::SetDomain
void SetDomain(const char *value)
Definition: CreateLocationSmbRequest.h:349
SmbMountOptions.h
Aws::DataSync::Model::CreateLocationSmbRequest::WithSubdirectory
CreateLocationSmbRequest & WithSubdirectory(const char *value)
Definition: CreateLocationSmbRequest.h:185
Aws::DataSync::Model::CreateLocationSmbRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::CreateLocationSmbRequest::SetAgentArns
void SetAgentArns(Aws::Vector< Aws::String > &&value)
Definition: CreateLocationSmbRequest.h:438
Aws::DataSync::Model::CreateLocationSmbRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateLocationSmbRequest.h:514
Aws::DataSync::Model::CreateLocationSmbRequest::SetMountOptions
void SetMountOptions(const SmbMountOptions &value)
Definition: CreateLocationSmbRequest.h:484
Aws::DataSync::Model::CreateLocationSmbRequest::WithUser
CreateLocationSmbRequest & WithUser(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:307
Aws::DataSync::Model::CreateLocationSmbRequest::SetDomain
void SetDomain(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:339
DataSyncRequest.h
Aws::DataSync::Model::CreateLocationSmbRequest::WithServerHostname
CreateLocationSmbRequest & WithServerHostname(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:240
Aws::DataSync::Model::CreateLocationSmbRequest::WithUser
CreateLocationSmbRequest & WithUser(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:315
Aws::DataSync::Model::CreateLocationSmbRequest::SetSubdirectory
void SetSubdirectory(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:95
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::CreateLocationSmbRequest::WithSubdirectory
CreateLocationSmbRequest & WithSubdirectory(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:167
Aws::DataSync::Model::CreateLocationSmbRequest::WithPassword
CreateLocationSmbRequest & WithPassword(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:407
Aws::DataSync::Model::CreateLocationSmbRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:383
Aws::DataSync::Model::CreateLocationSmbRequest::WithTags
CreateLocationSmbRequest & WithTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateLocationSmbRequest.h:535
Aws::DataSync::Model::CreateLocationSmbRequest::ServerHostnameHasBeenSet
bool ServerHostnameHasBeenSet() const
Definition: CreateLocationSmbRequest.h:204
Aws::DataSync::Model::CreateLocationSmbRequest::GetUser
const Aws::String & GetUser() const
Definition: CreateLocationSmbRequest.h:267
Aws::DataSync::Model::CreateLocationSmbRequest::SetServerHostname
void SetServerHostname(const char *value)
Definition: CreateLocationSmbRequest.h:231
AWSVector.h
Aws::DataSync::Model::CreateLocationSmbRequest::GetSubdirectory
const Aws::String & GetSubdirectory() const
Definition: CreateLocationSmbRequest.h:59
Aws::DataSync::Model::CreateLocationSmbRequest::WithAgentArns
CreateLocationSmbRequest & WithAgentArns(const Aws::Vector< Aws::String > &value)
Definition: CreateLocationSmbRequest.h:444
Aws::DataSync::Model::CreateLocationSmbRequest::SetSubdirectory
void SetSubdirectory(const char *value)
Definition: CreateLocationSmbRequest.h:131
Aws::DataSync::Model::CreateLocationSmbRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:389
Aws::DataSync::Model::CreateLocationSmbRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::CreateLocationSmbRequest::SetSubdirectory
void SetSubdirectory(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:113
Aws::DataSync::Model::CreateLocationSmbRequest::AddTags
CreateLocationSmbRequest & AddTags(TagListEntry &&value)
Definition: CreateLocationSmbRequest.h:556
Aws::DataSync::Model::CreateLocationSmbRequest::SetServerHostname
void SetServerHostname(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:213
Aws::DataSync::Model::CreateLocationSmbRequest::MountOptionsHasBeenSet
bool MountOptionsHasBeenSet() const
Definition: CreateLocationSmbRequest.h:479
Aws::DataSync::Model::CreateLocationSmbRequest::SetUser
void SetUser(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:291
Aws::DataSync::Model::CreateLocationSmbRequest::WithPassword
CreateLocationSmbRequest & WithPassword(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:401
Aws::DataSync::Model::SmbMountOptions
Definition: SmbMountOptions.h:33
Aws::DataSync::Model::CreateLocationSmbRequest::AddAgentArns
CreateLocationSmbRequest & AddAgentArns(const char *value)
Definition: CreateLocationSmbRequest.h:468
TagListEntry.h
Aws::DataSync::Model::CreateLocationSmbRequest::SetAgentArns
void SetAgentArns(const Aws::Vector< Aws::String > &value)
Definition: CreateLocationSmbRequest.h:432
Aws::DataSync::Model::CreateLocationSmbRequest::WithServerHostname
CreateLocationSmbRequest & WithServerHostname(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:249
Aws::DataSync::Model::CreateLocationSmbRequest::WithTags
CreateLocationSmbRequest & WithTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateLocationSmbRequest.h:542
Aws::DataSync::Model::CreateLocationSmbRequest::SetUser
void SetUser(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:283
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::CreateLocationSmbRequest::AddTags
CreateLocationSmbRequest & AddTags(const TagListEntry &value)
Definition: CreateLocationSmbRequest.h:549
Aws::DataSync::Model::CreateLocationSmbRequest::GetMountOptions
const SmbMountOptions & GetMountOptions() const
Definition: CreateLocationSmbRequest.h:474
Aws::DataSync::Model::CreateLocationSmbRequest::WithSubdirectory
CreateLocationSmbRequest & WithSubdirectory(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:149
Aws::DataSync::Model::CreateLocationSmbRequest::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: CreateLocationSmbRequest.h:334
Aws::DataSync::Model::CreateLocationSmbRequest::UserHasBeenSet
bool UserHasBeenSet() const
Definition: CreateLocationSmbRequest.h:275
Aws::DataSync::Model::CreateLocationSmbRequest::GetServerHostname
const Aws::String & GetServerHostname() const
Definition: CreateLocationSmbRequest.h:195
Aws::DataSync::Model::CreateLocationSmbRequest::SetUser
void SetUser(const char *value)
Definition: CreateLocationSmbRequest.h:299
Aws::DataSync::Model::CreateLocationSmbRequest::SetTags
void SetTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateLocationSmbRequest.h:528
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::CreateLocationSmbRequest
Definition: CreateLocationSmbRequest.h:28
Aws::DataSync::Model::CreateLocationSmbRequest::SetServerHostname
void SetServerHostname(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:222
Aws::DataSync::Model::CreateLocationSmbRequest::WithServerHostname
CreateLocationSmbRequest & WithServerHostname(const char *value)
Definition: CreateLocationSmbRequest.h:258
Aws::DataSync::Model::CreateLocationSmbRequest::SubdirectoryHasBeenSet
bool SubdirectoryHasBeenSet() const
Definition: CreateLocationSmbRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::CreateLocationSmbRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateLocationSmbRequest.h:371
Aws::DataSync::Model::CreateLocationSmbRequest::GetAgentArns
const Aws::Vector< Aws::String > & GetAgentArns() const
Definition: CreateLocationSmbRequest.h:420
Aws::DataSync::Model::CreateLocationSmbRequest::CreateLocationSmbRequest
CreateLocationSmbRequest()
Aws::DataSync::Model::CreateLocationSmbRequest::WithMountOptions
CreateLocationSmbRequest & WithMountOptions(const SmbMountOptions &value)
Definition: CreateLocationSmbRequest.h:494
Aws::DataSync::Model::CreateLocationSmbRequest::WithDomain
CreateLocationSmbRequest & WithDomain(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:354
Aws::DataSync::Model::CreateLocationSmbRequest::SetDomain
void SetDomain(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:344
Aws::DataSync::Model::CreateLocationSmbRequest::WithUser
CreateLocationSmbRequest & WithUser(const char *value)
Definition: CreateLocationSmbRequest.h:323
Aws::DataSync::Model::CreateLocationSmbRequest::WithDomain
CreateLocationSmbRequest & WithDomain(const char *value)
Definition: CreateLocationSmbRequest.h:364
Aws::DataSync::Model::CreateLocationSmbRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateLocationSmbRequest.h:377
Aws::DataSync::Model::CreateLocationSmbRequest::WithPassword
CreateLocationSmbRequest & WithPassword(const char *value)
Definition: CreateLocationSmbRequest.h:413
Aws::DataSync::Model::CreateLocationSmbRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateLocationSmbRequest.h:395
Aws::DataSync::Model::CreateLocationSmbRequest::WithAgentArns
CreateLocationSmbRequest & WithAgentArns(Aws::Vector< Aws::String > &&value)
Definition: CreateLocationSmbRequest.h:450
Aws::DataSync::Model::CreateLocationSmbRequest::AddAgentArns
CreateLocationSmbRequest & AddAgentArns(Aws::String &&value)
Definition: CreateLocationSmbRequest.h:462
Aws::DataSync::Model::CreateLocationSmbRequest::AddAgentArns
CreateLocationSmbRequest & AddAgentArns(const Aws::String &value)
Definition: CreateLocationSmbRequest.h:456