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/chime/Chime_EXPORTS.h>
8 #include <aws/chime/ChimeRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/chime/model/UserType.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Chime
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_CHIME_API CreateUserRequest : public ChimeRequest
23   {
24   public:
25     CreateUserRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The Amazon Chime account ID.</p>
38      */
GetAccountId()39     inline const Aws::String& GetAccountId() const{ return m_accountId; }
40 
41     /**
42      * <p>The Amazon Chime account ID.</p>
43      */
AccountIdHasBeenSet()44     inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 
46     /**
47      * <p>The Amazon Chime account ID.</p>
48      */
SetAccountId(const Aws::String & value)49     inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 
51     /**
52      * <p>The Amazon Chime account ID.</p>
53      */
SetAccountId(Aws::String && value)54     inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
55 
56     /**
57      * <p>The Amazon Chime account ID.</p>
58      */
SetAccountId(const char * value)59     inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
60 
61     /**
62      * <p>The Amazon Chime account ID.</p>
63      */
WithAccountId(const Aws::String & value)64     inline CreateUserRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
65 
66     /**
67      * <p>The Amazon Chime account ID.</p>
68      */
WithAccountId(Aws::String && value)69     inline CreateUserRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
70 
71     /**
72      * <p>The Amazon Chime account ID.</p>
73      */
WithAccountId(const char * value)74     inline CreateUserRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
75 
76 
77     /**
78      * <p>The user name.</p>
79      */
GetUsername()80     inline const Aws::String& GetUsername() const{ return m_username; }
81 
82     /**
83      * <p>The user name.</p>
84      */
UsernameHasBeenSet()85     inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
86 
87     /**
88      * <p>The user name.</p>
89      */
SetUsername(const Aws::String & value)90     inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
91 
92     /**
93      * <p>The user name.</p>
94      */
SetUsername(Aws::String && value)95     inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
96 
97     /**
98      * <p>The user name.</p>
99      */
SetUsername(const char * value)100     inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
101 
102     /**
103      * <p>The user name.</p>
104      */
WithUsername(const Aws::String & value)105     inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
106 
107     /**
108      * <p>The user name.</p>
109      */
WithUsername(Aws::String && value)110     inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
111 
112     /**
113      * <p>The user name.</p>
114      */
WithUsername(const char * value)115     inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
116 
117 
118     /**
119      * <p>The user's email address.</p>
120      */
GetEmail()121     inline const Aws::String& GetEmail() const{ return m_email; }
122 
123     /**
124      * <p>The user's email address.</p>
125      */
EmailHasBeenSet()126     inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
127 
128     /**
129      * <p>The user's email address.</p>
130      */
SetEmail(const Aws::String & value)131     inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
132 
133     /**
134      * <p>The user's email address.</p>
135      */
SetEmail(Aws::String && value)136     inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
137 
138     /**
139      * <p>The user's email address.</p>
140      */
SetEmail(const char * value)141     inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
142 
143     /**
144      * <p>The user's email address.</p>
145      */
WithEmail(const Aws::String & value)146     inline CreateUserRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
147 
148     /**
149      * <p>The user's email address.</p>
150      */
WithEmail(Aws::String && value)151     inline CreateUserRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
152 
153     /**
154      * <p>The user's email address.</p>
155      */
WithEmail(const char * value)156     inline CreateUserRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
157 
158 
159     /**
160      * <p>The user type.</p>
161      */
GetUserType()162     inline const UserType& GetUserType() const{ return m_userType; }
163 
164     /**
165      * <p>The user type.</p>
166      */
UserTypeHasBeenSet()167     inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
168 
169     /**
170      * <p>The user type.</p>
171      */
SetUserType(const UserType & value)172     inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; }
173 
174     /**
175      * <p>The user type.</p>
176      */
SetUserType(UserType && value)177     inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
178 
179     /**
180      * <p>The user type.</p>
181      */
WithUserType(const UserType & value)182     inline CreateUserRequest& WithUserType(const UserType& value) { SetUserType(value); return *this;}
183 
184     /**
185      * <p>The user type.</p>
186      */
WithUserType(UserType && value)187     inline CreateUserRequest& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;}
188 
189   private:
190 
191     Aws::String m_accountId;
192     bool m_accountIdHasBeenSet;
193 
194     Aws::String m_username;
195     bool m_usernameHasBeenSet;
196 
197     Aws::String m_email;
198     bool m_emailHasBeenSet;
199 
200     UserType m_userType;
201     bool m_userTypeHasBeenSet;
202   };
203 
204 } // namespace Model
205 } // namespace Chime
206 } // namespace Aws
207