AWS SDK for C++  1.9.109
AWS SDK for C++
AssociateMemberToGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkMail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AssociateMemberToGroup"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
41 
45  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 
50  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
51 
55  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
56 
60  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
61 
65  inline AssociateMemberToGroupRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline AssociateMemberToGroupRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline AssociateMemberToGroupRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
81  inline const Aws::String& GetGroupId() const{ return m_groupId; }
82 
86  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
87 
91  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
92 
96  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
97 
101  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
102 
106  inline AssociateMemberToGroupRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
107 
111  inline AssociateMemberToGroupRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
112 
116  inline AssociateMemberToGroupRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
117 
118 
122  inline const Aws::String& GetMemberId() const{ return m_memberId; }
123 
127  inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
128 
132  inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
133 
137  inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
138 
142  inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
143 
147  inline AssociateMemberToGroupRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
148 
152  inline AssociateMemberToGroupRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
153 
157  inline AssociateMemberToGroupRequest& WithMemberId(const char* value) { SetMemberId(value); return *this;}
158 
159  private:
160 
161  Aws::String m_organizationId;
162  bool m_organizationIdHasBeenSet;
163 
164  Aws::String m_groupId;
165  bool m_groupIdHasBeenSet;
166 
167  Aws::String m_memberId;
168  bool m_memberIdHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace WorkMail
173 } // namespace Aws
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: AssociateMemberToGroupRequest.h:50
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetGroupId
void SetGroupId(const char *value)
Definition: AssociateMemberToGroupRequest.h:101
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithGroupId
AssociateMemberToGroupRequest & WithGroupId(Aws::String &&value)
Definition: AssociateMemberToGroupRequest.h:111
Aws::WorkMail::Model::AssociateMemberToGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateMemberToGroupRequest.h:30
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::AssociateMemberToGroupRequest::AssociateMemberToGroupRequest
AssociateMemberToGroupRequest()
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::AssociateMemberToGroupRequest::GetMemberId
const Aws::String & GetMemberId() const
Definition: AssociateMemberToGroupRequest.h:122
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithOrganizationId
AssociateMemberToGroupRequest & WithOrganizationId(Aws::String &&value)
Definition: AssociateMemberToGroupRequest.h:70
Aws::WorkMail::Model::AssociateMemberToGroupRequest::MemberIdHasBeenSet
bool MemberIdHasBeenSet() const
Definition: AssociateMemberToGroupRequest.h:127
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: AssociateMemberToGroupRequest.h:55
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithGroupId
AssociateMemberToGroupRequest & WithGroupId(const char *value)
Definition: AssociateMemberToGroupRequest.h:116
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: AssociateMemberToGroupRequest.h:60
WorkMail_EXPORTS.h
Aws::WorkMail::Model::AssociateMemberToGroupRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: AssociateMemberToGroupRequest.h:86
WorkMailRequest.h
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: AssociateMemberToGroupRequest.h:96
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithMemberId
AssociateMemberToGroupRequest & WithMemberId(const Aws::String &value)
Definition: AssociateMemberToGroupRequest.h:147
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithMemberId
AssociateMemberToGroupRequest & WithMemberId(const char *value)
Definition: AssociateMemberToGroupRequest.h:157
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: AssociateMemberToGroupRequest.h:91
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetMemberId
void SetMemberId(Aws::String &&value)
Definition: AssociateMemberToGroupRequest.h:137
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithGroupId
AssociateMemberToGroupRequest & WithGroupId(const Aws::String &value)
Definition: AssociateMemberToGroupRequest.h:106
AWSString.h
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetMemberId
void SetMemberId(const char *value)
Definition: AssociateMemberToGroupRequest.h:142
Aws::WorkMail::Model::AssociateMemberToGroupRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: AssociateMemberToGroupRequest.h:45
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithOrganizationId
AssociateMemberToGroupRequest & WithOrganizationId(const char *value)
Definition: AssociateMemberToGroupRequest.h:75
Aws::WorkMail::Model::AssociateMemberToGroupRequest
Definition: AssociateMemberToGroupRequest.h:22
Aws::WorkMail::Model::AssociateMemberToGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::AssociateMemberToGroupRequest::SetMemberId
void SetMemberId(const Aws::String &value)
Definition: AssociateMemberToGroupRequest.h:132
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::AssociateMemberToGroupRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: AssociateMemberToGroupRequest.h:40
Aws::WorkMail::Model::AssociateMemberToGroupRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: AssociateMemberToGroupRequest.h:81
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithMemberId
AssociateMemberToGroupRequest & WithMemberId(Aws::String &&value)
Definition: AssociateMemberToGroupRequest.h:152
Aws::WorkMail::Model::AssociateMemberToGroupRequest::WithOrganizationId
AssociateMemberToGroupRequest & WithOrganizationId(const Aws::String &value)
Definition: AssociateMemberToGroupRequest.h:65