1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/workmail/WorkMail_EXPORTS.h>
8 #include <aws/workmail/WorkMailRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkMail
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_WORKMAIL_API AssociateMemberToGroupRequest : public WorkMailRequest
22   {
23   public:
24     AssociateMemberToGroupRequest();
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.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "AssociateMemberToGroup"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The organization under which the group exists.</p>
39      */
GetOrganizationId()40     inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
41 
42     /**
43      * <p>The organization under which the group exists.</p>
44      */
OrganizationIdHasBeenSet()45     inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 
47     /**
48      * <p>The organization under which the group exists.</p>
49      */
SetOrganizationId(const Aws::String & value)50     inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
51 
52     /**
53      * <p>The organization under which the group exists.</p>
54      */
SetOrganizationId(Aws::String && value)55     inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
56 
57     /**
58      * <p>The organization under which the group exists.</p>
59      */
SetOrganizationId(const char * value)60     inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
61 
62     /**
63      * <p>The organization under which the group exists.</p>
64      */
WithOrganizationId(const Aws::String & value)65     inline AssociateMemberToGroupRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
67     /**
68      * <p>The organization under which the group exists.</p>
69      */
WithOrganizationId(Aws::String && value)70     inline AssociateMemberToGroupRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
72     /**
73      * <p>The organization under which the group exists.</p>
74      */
WithOrganizationId(const char * value)75     inline AssociateMemberToGroupRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
78     /**
79      * <p>The group to which the member (user or group) is associated.</p>
80      */
GetGroupId()81     inline const Aws::String& GetGroupId() const{ return m_groupId; }
82 
83     /**
84      * <p>The group to which the member (user or group) is associated.</p>
85      */
GroupIdHasBeenSet()86     inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
87 
88     /**
89      * <p>The group to which the member (user or group) is associated.</p>
90      */
SetGroupId(const Aws::String & value)91     inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
92 
93     /**
94      * <p>The group to which the member (user or group) is associated.</p>
95      */
SetGroupId(Aws::String && value)96     inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
97 
98     /**
99      * <p>The group to which the member (user or group) is associated.</p>
100      */
SetGroupId(const char * value)101     inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
102 
103     /**
104      * <p>The group to which the member (user or group) is associated.</p>
105      */
WithGroupId(const Aws::String & value)106     inline AssociateMemberToGroupRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
107 
108     /**
109      * <p>The group to which the member (user or group) is associated.</p>
110      */
WithGroupId(Aws::String && value)111     inline AssociateMemberToGroupRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
112 
113     /**
114      * <p>The group to which the member (user or group) is associated.</p>
115      */
WithGroupId(const char * value)116     inline AssociateMemberToGroupRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
117 
118 
119     /**
120      * <p>The member (user or group) to associate to the group.</p>
121      */
GetMemberId()122     inline const Aws::String& GetMemberId() const{ return m_memberId; }
123 
124     /**
125      * <p>The member (user or group) to associate to the group.</p>
126      */
MemberIdHasBeenSet()127     inline bool MemberIdHasBeenSet() const { return m_memberIdHasBeenSet; }
128 
129     /**
130      * <p>The member (user or group) to associate to the group.</p>
131      */
SetMemberId(const Aws::String & value)132     inline void SetMemberId(const Aws::String& value) { m_memberIdHasBeenSet = true; m_memberId = value; }
133 
134     /**
135      * <p>The member (user or group) to associate to the group.</p>
136      */
SetMemberId(Aws::String && value)137     inline void SetMemberId(Aws::String&& value) { m_memberIdHasBeenSet = true; m_memberId = std::move(value); }
138 
139     /**
140      * <p>The member (user or group) to associate to the group.</p>
141      */
SetMemberId(const char * value)142     inline void SetMemberId(const char* value) { m_memberIdHasBeenSet = true; m_memberId.assign(value); }
143 
144     /**
145      * <p>The member (user or group) to associate to the group.</p>
146      */
WithMemberId(const Aws::String & value)147     inline AssociateMemberToGroupRequest& WithMemberId(const Aws::String& value) { SetMemberId(value); return *this;}
148 
149     /**
150      * <p>The member (user or group) to associate to the group.</p>
151      */
WithMemberId(Aws::String && value)152     inline AssociateMemberToGroupRequest& WithMemberId(Aws::String&& value) { SetMemberId(std::move(value)); return *this;}
153 
154     /**
155      * <p>The member (user or group) to associate to the group.</p>
156      */
WithMemberId(const char * value)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
174