AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/StorageRuleType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkDocs {
16namespace Model {
17
21 public:
22 AWS_WORKDOCS_API CreateUserRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
29
30 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
39 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
40 template <typename OrganizationIdT = Aws::String>
41 void SetOrganizationId(OrganizationIdT&& value) {
42 m_organizationIdHasBeenSet = true;
43 m_organizationId = std::forward<OrganizationIdT>(value);
44 }
45 template <typename OrganizationIdT = Aws::String>
46 CreateUserRequest& WithOrganizationId(OrganizationIdT&& value) {
47 SetOrganizationId(std::forward<OrganizationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUsername() const { return m_username; }
57 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
58 template <typename UsernameT = Aws::String>
59 void SetUsername(UsernameT&& value) {
60 m_usernameHasBeenSet = true;
61 m_username = std::forward<UsernameT>(value);
62 }
63 template <typename UsernameT = Aws::String>
64 CreateUserRequest& WithUsername(UsernameT&& value) {
65 SetUsername(std::forward<UsernameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
75 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
76 template <typename EmailAddressT = Aws::String>
77 void SetEmailAddress(EmailAddressT&& value) {
78 m_emailAddressHasBeenSet = true;
79 m_emailAddress = std::forward<EmailAddressT>(value);
80 }
81 template <typename EmailAddressT = Aws::String>
82 CreateUserRequest& WithEmailAddress(EmailAddressT&& value) {
83 SetEmailAddress(std::forward<EmailAddressT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetGivenName() const { return m_givenName; }
93 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
94 template <typename GivenNameT = Aws::String>
95 void SetGivenName(GivenNameT&& value) {
96 m_givenNameHasBeenSet = true;
97 m_givenName = std::forward<GivenNameT>(value);
98 }
99 template <typename GivenNameT = Aws::String>
100 CreateUserRequest& WithGivenName(GivenNameT&& value) {
101 SetGivenName(std::forward<GivenNameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetSurname() const { return m_surname; }
111 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
112 template <typename SurnameT = Aws::String>
113 void SetSurname(SurnameT&& value) {
114 m_surnameHasBeenSet = true;
115 m_surname = std::forward<SurnameT>(value);
116 }
117 template <typename SurnameT = Aws::String>
118 CreateUserRequest& WithSurname(SurnameT&& value) {
119 SetSurname(std::forward<SurnameT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetPassword() const { return m_password; }
129 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
130 template <typename PasswordT = Aws::String>
131 void SetPassword(PasswordT&& value) {
132 m_passwordHasBeenSet = true;
133 m_password = std::forward<PasswordT>(value);
134 }
135 template <typename PasswordT = Aws::String>
136 CreateUserRequest& WithPassword(PasswordT&& value) {
137 SetPassword(std::forward<PasswordT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
147 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
148 template <typename TimeZoneIdT = Aws::String>
149 void SetTimeZoneId(TimeZoneIdT&& value) {
150 m_timeZoneIdHasBeenSet = true;
151 m_timeZoneId = std::forward<TimeZoneIdT>(value);
152 }
153 template <typename TimeZoneIdT = Aws::String>
154 CreateUserRequest& WithTimeZoneId(TimeZoneIdT&& value) {
155 SetTimeZoneId(std::forward<TimeZoneIdT>(value));
156 return *this;
157 }
159
161
164 inline const StorageRuleType& GetStorageRule() const { return m_storageRule; }
165 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
166 template <typename StorageRuleT = StorageRuleType>
167 void SetStorageRule(StorageRuleT&& value) {
168 m_storageRuleHasBeenSet = true;
169 m_storageRule = std::forward<StorageRuleT>(value);
170 }
171 template <typename StorageRuleT = StorageRuleType>
172 CreateUserRequest& WithStorageRule(StorageRuleT&& value) {
173 SetStorageRule(std::forward<StorageRuleT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
184 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
185 template <typename AuthenticationTokenT = Aws::String>
186 void SetAuthenticationToken(AuthenticationTokenT&& value) {
187 m_authenticationTokenHasBeenSet = true;
188 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
189 }
190 template <typename AuthenticationTokenT = Aws::String>
191 CreateUserRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
192 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
193 return *this;
194 }
196 private:
197 Aws::String m_organizationId;
198
199 Aws::String m_username;
200
201 Aws::String m_emailAddress;
202
203 Aws::String m_givenName;
204
205 Aws::String m_surname;
206
207 Aws::String m_password;
208
209 Aws::String m_timeZoneId;
210
211 StorageRuleType m_storageRule;
212
213 Aws::String m_authenticationToken;
214 bool m_organizationIdHasBeenSet = false;
215 bool m_usernameHasBeenSet = false;
216 bool m_emailAddressHasBeenSet = false;
217 bool m_givenNameHasBeenSet = false;
218 bool m_surnameHasBeenSet = false;
219 bool m_passwordHasBeenSet = false;
220 bool m_timeZoneIdHasBeenSet = false;
221 bool m_storageRuleHasBeenSet = false;
222 bool m_authenticationTokenHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace WorkDocs
227} // namespace Aws
CreateUserRequest & WithTimeZoneId(TimeZoneIdT &&value)
virtual const char * GetServiceRequestName() const override
void SetStorageRule(StorageRuleT &&value)
AWS_WORKDOCS_API CreateUserRequest()=default
const Aws::String & GetAuthenticationToken() const
const Aws::String & GetEmailAddress() const
const Aws::String & GetTimeZoneId() const
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithStorageRule(StorageRuleT &&value)
CreateUserRequest & WithOrganizationId(OrganizationIdT &&value)
void SetEmailAddress(EmailAddressT &&value)
CreateUserRequest & WithGivenName(GivenNameT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
CreateUserRequest & WithSurname(SurnameT &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
CreateUserRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
void SetOrganizationId(OrganizationIdT &&value)
const Aws::String & GetPassword() const
const Aws::String & GetGivenName() const
CreateUserRequest & WithEmailAddress(EmailAddressT &&value)
const Aws::String & GetOrganizationId() const
const Aws::String & GetUsername() const
CreateUserRequest & WithPassword(PasswordT &&value)
const StorageRuleType & GetStorageRule() const
CreateUserRequest & WithUsername(UsernameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String