AWS SDK for C++  1.9.125
AWS SDK for C++
UpdateAccessRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Transfer
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateAccess"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetHomeDirectory() const{ return m_homeDirectory; }
47 
53  inline bool HomeDirectoryHasBeenSet() const { return m_homeDirectoryHasBeenSet; }
54 
60  inline void SetHomeDirectory(const Aws::String& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = value; }
61 
67  inline void SetHomeDirectory(Aws::String&& value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory = std::move(value); }
68 
74  inline void SetHomeDirectory(const char* value) { m_homeDirectoryHasBeenSet = true; m_homeDirectory.assign(value); }
75 
81  inline UpdateAccessRequest& WithHomeDirectory(const Aws::String& value) { SetHomeDirectory(value); return *this;}
82 
88  inline UpdateAccessRequest& WithHomeDirectory(Aws::String&& value) { SetHomeDirectory(std::move(value)); return *this;}
89 
95  inline UpdateAccessRequest& WithHomeDirectory(const char* value) { SetHomeDirectory(value); return *this;}
96 
97 
106  inline const HomeDirectoryType& GetHomeDirectoryType() const{ return m_homeDirectoryType; }
107 
116  inline bool HomeDirectoryTypeHasBeenSet() const { return m_homeDirectoryTypeHasBeenSet; }
117 
126  inline void SetHomeDirectoryType(const HomeDirectoryType& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = value; }
127 
136  inline void SetHomeDirectoryType(HomeDirectoryType&& value) { m_homeDirectoryTypeHasBeenSet = true; m_homeDirectoryType = std::move(value); }
137 
146  inline UpdateAccessRequest& WithHomeDirectoryType(const HomeDirectoryType& value) { SetHomeDirectoryType(value); return *this;}
147 
156  inline UpdateAccessRequest& WithHomeDirectoryType(HomeDirectoryType&& value) { SetHomeDirectoryType(std::move(value)); return *this;}
157 
158 
187  inline const Aws::Vector<HomeDirectoryMapEntry>& GetHomeDirectoryMappings() const{ return m_homeDirectoryMappings; }
188 
217  inline bool HomeDirectoryMappingsHasBeenSet() const { return m_homeDirectoryMappingsHasBeenSet; }
218 
247  inline void SetHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = value; }
248 
277  inline void SetHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings = std::move(value); }
278 
307  inline UpdateAccessRequest& WithHomeDirectoryMappings(const Aws::Vector<HomeDirectoryMapEntry>& value) { SetHomeDirectoryMappings(value); return *this;}
308 
337  inline UpdateAccessRequest& WithHomeDirectoryMappings(Aws::Vector<HomeDirectoryMapEntry>&& value) { SetHomeDirectoryMappings(std::move(value)); return *this;}
338 
367  inline UpdateAccessRequest& AddHomeDirectoryMappings(const HomeDirectoryMapEntry& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(value); return *this; }
368 
397  inline UpdateAccessRequest& AddHomeDirectoryMappings(HomeDirectoryMapEntry&& value) { m_homeDirectoryMappingsHasBeenSet = true; m_homeDirectoryMappings.push_back(std::move(value)); return *this; }
398 
399 
417  inline const Aws::String& GetPolicy() const{ return m_policy; }
418 
436  inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
437 
455  inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
456 
474  inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
475 
493  inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
494 
512  inline UpdateAccessRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
513 
531  inline UpdateAccessRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
532 
550  inline UpdateAccessRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
551 
552 
553 
554  inline const PosixProfile& GetPosixProfile() const{ return m_posixProfile; }
555 
556 
557  inline bool PosixProfileHasBeenSet() const { return m_posixProfileHasBeenSet; }
558 
559 
560  inline void SetPosixProfile(const PosixProfile& value) { m_posixProfileHasBeenSet = true; m_posixProfile = value; }
561 
562 
563  inline void SetPosixProfile(PosixProfile&& value) { m_posixProfileHasBeenSet = true; m_posixProfile = std::move(value); }
564 
565 
566  inline UpdateAccessRequest& WithPosixProfile(const PosixProfile& value) { SetPosixProfile(value); return *this;}
567 
568 
569  inline UpdateAccessRequest& WithPosixProfile(PosixProfile&& value) { SetPosixProfile(std::move(value)); return *this;}
570 
571 
581  inline const Aws::String& GetRole() const{ return m_role; }
582 
592  inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
593 
603  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
604 
614  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
615 
625  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
626 
636  inline UpdateAccessRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
637 
647  inline UpdateAccessRequest& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
648 
658  inline UpdateAccessRequest& WithRole(const char* value) { SetRole(value); return *this;}
659 
660 
665  inline const Aws::String& GetServerId() const{ return m_serverId; }
666 
671  inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
672 
677  inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
678 
683  inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
684 
689  inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
690 
695  inline UpdateAccessRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
696 
701  inline UpdateAccessRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
702 
707  inline UpdateAccessRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
708 
709 
723  inline const Aws::String& GetExternalId() const{ return m_externalId; }
724 
738  inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
739 
753  inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
754 
768  inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
769 
783  inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
784 
798  inline UpdateAccessRequest& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
799 
813  inline UpdateAccessRequest& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
814 
828  inline UpdateAccessRequest& WithExternalId(const char* value) { SetExternalId(value); return *this;}
829 
830  private:
831 
832  Aws::String m_homeDirectory;
833  bool m_homeDirectoryHasBeenSet;
834 
835  HomeDirectoryType m_homeDirectoryType;
836  bool m_homeDirectoryTypeHasBeenSet;
837 
838  Aws::Vector<HomeDirectoryMapEntry> m_homeDirectoryMappings;
839  bool m_homeDirectoryMappingsHasBeenSet;
840 
841  Aws::String m_policy;
842  bool m_policyHasBeenSet;
843 
844  PosixProfile m_posixProfile;
845  bool m_posixProfileHasBeenSet;
846 
847  Aws::String m_role;
848  bool m_roleHasBeenSet;
849 
850  Aws::String m_serverId;
851  bool m_serverIdHasBeenSet;
852 
853  Aws::String m_externalId;
854  bool m_externalIdHasBeenSet;
855  };
856 
857 } // namespace Model
858 } // namespace Transfer
859 } // namespace Aws
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectory
void SetHomeDirectory(const char *value)
Definition: UpdateAccessRequest.h:74
Aws::Transfer::Model::UpdateAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Transfer::Model::UpdateAccessRequest::SetExternalId
void SetExternalId(const Aws::String &value)
Definition: UpdateAccessRequest.h:753
Aws::Transfer::Model::UpdateAccessRequest::GetPosixProfile
const PosixProfile & GetPosixProfile() const
Definition: UpdateAccessRequest.h:554
Aws::Transfer::Model::UpdateAccessRequest::GetExternalId
const Aws::String & GetExternalId() const
Definition: UpdateAccessRequest.h:723
Aws::Transfer::Model::UpdateAccessRequest::SetRole
void SetRole(const Aws::String &value)
Definition: UpdateAccessRequest.h:603
TransferRequest.h
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectoryType
UpdateAccessRequest & WithHomeDirectoryType(const HomeDirectoryType &value)
Definition: UpdateAccessRequest.h:146
Aws::Transfer::Model::HomeDirectoryMapEntry
Definition: HomeDirectoryMapEntry.h:45
Aws::Transfer::Model::UpdateAccessRequest::SetRole
void SetRole(const char *value)
Definition: UpdateAccessRequest.h:625
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Transfer::Model::UpdateAccessRequest::WithExternalId
UpdateAccessRequest & WithExternalId(const char *value)
Definition: UpdateAccessRequest.h:828
Aws::Transfer::Model::UpdateAccessRequest::PosixProfileHasBeenSet
bool PosixProfileHasBeenSet() const
Definition: UpdateAccessRequest.h:557
Aws::Transfer::Model::UpdateAccessRequest::SetPolicy
void SetPolicy(const Aws::String &value)
Definition: UpdateAccessRequest.h:455
Aws::Transfer::Model::UpdateAccessRequest::WithRole
UpdateAccessRequest & WithRole(Aws::String &&value)
Definition: UpdateAccessRequest.h:647
Aws::Transfer::Model::UpdateAccessRequest::HomeDirectoryTypeHasBeenSet
bool HomeDirectoryTypeHasBeenSet() const
Definition: UpdateAccessRequest.h:116
Aws::Transfer::Model::HomeDirectoryType
HomeDirectoryType
Definition: HomeDirectoryType.h:17
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectoryMappings
void SetHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
Definition: UpdateAccessRequest.h:277
PosixProfile.h
Aws::Transfer::Model::UpdateAccessRequest::GetHomeDirectory
const Aws::String & GetHomeDirectory() const
Definition: UpdateAccessRequest.h:46
Aws::Transfer::Model::UpdateAccessRequest::WithPosixProfile
UpdateAccessRequest & WithPosixProfile(PosixProfile &&value)
Definition: UpdateAccessRequest.h:569
Aws::Transfer::Model::UpdateAccessRequest::WithServerId
UpdateAccessRequest & WithServerId(const Aws::String &value)
Definition: UpdateAccessRequest.h:695
Aws::Transfer::Model::UpdateAccessRequest::AddHomeDirectoryMappings
UpdateAccessRequest & AddHomeDirectoryMappings(const HomeDirectoryMapEntry &value)
Definition: UpdateAccessRequest.h:367
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Transfer::Model::UpdateAccessRequest::WithServerId
UpdateAccessRequest & WithServerId(const char *value)
Definition: UpdateAccessRequest.h:707
Aws::Transfer::Model::UpdateAccessRequest::WithServerId
UpdateAccessRequest & WithServerId(Aws::String &&value)
Definition: UpdateAccessRequest.h:701
AWSVector.h
Aws::Transfer::Model::UpdateAccessRequest::PolicyHasBeenSet
bool PolicyHasBeenSet() const
Definition: UpdateAccessRequest.h:436
HomeDirectoryType.h
Aws::Transfer::Model::UpdateAccessRequest::SetPosixProfile
void SetPosixProfile(const PosixProfile &value)
Definition: UpdateAccessRequest.h:560
Aws::Transfer::Model::UpdateAccessRequest::GetServerId
const Aws::String & GetServerId() const
Definition: UpdateAccessRequest.h:665
Aws::Transfer::Model::UpdateAccessRequest::WithPolicy
UpdateAccessRequest & WithPolicy(Aws::String &&value)
Definition: UpdateAccessRequest.h:531
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectory
UpdateAccessRequest & WithHomeDirectory(const Aws::String &value)
Definition: UpdateAccessRequest.h:81
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectoryType
void SetHomeDirectoryType(const HomeDirectoryType &value)
Definition: UpdateAccessRequest.h:126
HomeDirectoryMapEntry.h
Aws::Transfer::Model::UpdateAccessRequest::SetServerId
void SetServerId(const char *value)
Definition: UpdateAccessRequest.h:689
Aws::Transfer::Model::UpdateAccessRequest::SetServerId
void SetServerId(Aws::String &&value)
Definition: UpdateAccessRequest.h:683
Aws::Transfer::Model::UpdateAccessRequest::WithPolicy
UpdateAccessRequest & WithPolicy(const char *value)
Definition: UpdateAccessRequest.h:550
Aws::Transfer::Model::UpdateAccessRequest::SetRole
void SetRole(Aws::String &&value)
Definition: UpdateAccessRequest.h:614
Aws::Transfer::TransferRequest
Definition: TransferRequest.h:17
Aws::Transfer::Model::UpdateAccessRequest::SetPolicy
void SetPolicy(const char *value)
Definition: UpdateAccessRequest.h:493
Transfer_EXPORTS.h
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectoryMappings
void SetHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
Definition: UpdateAccessRequest.h:247
Aws::Transfer::Model::UpdateAccessRequest::AddHomeDirectoryMappings
UpdateAccessRequest & AddHomeDirectoryMappings(HomeDirectoryMapEntry &&value)
Definition: UpdateAccessRequest.h:397
Aws::Transfer::Model::PosixProfile
Definition: PosixProfile.h:37
Aws::Transfer::Model::UpdateAccessRequest::WithExternalId
UpdateAccessRequest & WithExternalId(const Aws::String &value)
Definition: UpdateAccessRequest.h:798
Aws::Transfer::Model::UpdateAccessRequest::GetHomeDirectoryType
const HomeDirectoryType & GetHomeDirectoryType() const
Definition: UpdateAccessRequest.h:106
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectory
UpdateAccessRequest & WithHomeDirectory(const char *value)
Definition: UpdateAccessRequest.h:95
AWSString.h
Aws::Transfer::Model::UpdateAccessRequest::WithRole
UpdateAccessRequest & WithRole(const Aws::String &value)
Definition: UpdateAccessRequest.h:636
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectoryMappings
UpdateAccessRequest & WithHomeDirectoryMappings(const Aws::Vector< HomeDirectoryMapEntry > &value)
Definition: UpdateAccessRequest.h:307
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectoryType
void SetHomeDirectoryType(HomeDirectoryType &&value)
Definition: UpdateAccessRequest.h:136
Aws::Transfer::Model::UpdateAccessRequest::HomeDirectoryMappingsHasBeenSet
bool HomeDirectoryMappingsHasBeenSet() const
Definition: UpdateAccessRequest.h:217
Aws::Transfer::Model::UpdateAccessRequest::SetExternalId
void SetExternalId(const char *value)
Definition: UpdateAccessRequest.h:783
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectory
void SetHomeDirectory(Aws::String &&value)
Definition: UpdateAccessRequest.h:67
Aws::Transfer::Model::UpdateAccessRequest::GetHomeDirectoryMappings
const Aws::Vector< HomeDirectoryMapEntry > & GetHomeDirectoryMappings() const
Definition: UpdateAccessRequest.h:187
Aws::Transfer::Model::UpdateAccessRequest::WithPolicy
UpdateAccessRequest & WithPolicy(const Aws::String &value)
Definition: UpdateAccessRequest.h:512
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectoryType
UpdateAccessRequest & WithHomeDirectoryType(HomeDirectoryType &&value)
Definition: UpdateAccessRequest.h:156
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectory
UpdateAccessRequest & WithHomeDirectory(Aws::String &&value)
Definition: UpdateAccessRequest.h:88
Aws::Transfer::Model::UpdateAccessRequest::ServerIdHasBeenSet
bool ServerIdHasBeenSet() const
Definition: UpdateAccessRequest.h:671
Aws::Transfer::Model::UpdateAccessRequest::WithPosixProfile
UpdateAccessRequest & WithPosixProfile(const PosixProfile &value)
Definition: UpdateAccessRequest.h:566
Aws::Transfer::Model::UpdateAccessRequest::GetPolicy
const Aws::String & GetPolicy() const
Definition: UpdateAccessRequest.h:417
Aws::Transfer::Model::UpdateAccessRequest::SetPolicy
void SetPolicy(Aws::String &&value)
Definition: UpdateAccessRequest.h:474
Aws
Definition: AccessManagementClient.h:15
Aws::Transfer::Model::UpdateAccessRequest::ExternalIdHasBeenSet
bool ExternalIdHasBeenSet() const
Definition: UpdateAccessRequest.h:738
Aws::Transfer::Model::UpdateAccessRequest::WithExternalId
UpdateAccessRequest & WithExternalId(Aws::String &&value)
Definition: UpdateAccessRequest.h:813
Aws::Transfer::Model::UpdateAccessRequest::WithHomeDirectoryMappings
UpdateAccessRequest & WithHomeDirectoryMappings(Aws::Vector< HomeDirectoryMapEntry > &&value)
Definition: UpdateAccessRequest.h:337
Aws::Transfer::Model::UpdateAccessRequest::SetServerId
void SetServerId(const Aws::String &value)
Definition: UpdateAccessRequest.h:677
Aws::Transfer::Model::UpdateAccessRequest::SetPosixProfile
void SetPosixProfile(PosixProfile &&value)
Definition: UpdateAccessRequest.h:563
Aws::Transfer::Model::UpdateAccessRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Transfer::Model::UpdateAccessRequest::SetExternalId
void SetExternalId(Aws::String &&value)
Definition: UpdateAccessRequest.h:768
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Transfer::Model::UpdateAccessRequest::RoleHasBeenSet
bool RoleHasBeenSet() const
Definition: UpdateAccessRequest.h:592
Aws::Transfer::Model::UpdateAccessRequest
Definition: UpdateAccessRequest.h:26
Aws::Transfer::Model::UpdateAccessRequest::WithRole
UpdateAccessRequest & WithRole(const char *value)
Definition: UpdateAccessRequest.h:658
Aws::Transfer::Model::UpdateAccessRequest::UpdateAccessRequest
UpdateAccessRequest()
Aws::Transfer::Model::UpdateAccessRequest::GetRole
const Aws::String & GetRole() const
Definition: UpdateAccessRequest.h:581
Aws::Transfer::Model::UpdateAccessRequest::SetHomeDirectory
void SetHomeDirectory(const Aws::String &value)
Definition: UpdateAccessRequest.h:60
Aws::Transfer::Model::UpdateAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAccessRequest.h:34
Aws::Transfer::Model::UpdateAccessRequest::HomeDirectoryHasBeenSet
bool HomeDirectoryHasBeenSet() const
Definition: UpdateAccessRequest.h:53
AWS_TRANSFER_API
#define AWS_TRANSFER_API
Definition: Transfer_EXPORTS.h:28