AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUserRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/model/StorageRuleType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkDocs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKDOCS_API 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.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateUser"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
43 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
44 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
45 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
46 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
47 inline CreateUserRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
48 inline CreateUserRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
49 inline CreateUserRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
51
53
56 inline const Aws::String& GetUsername() const{ return m_username; }
57 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
58 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
59 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
60 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
61 inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
62 inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
63 inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
65
67
70 inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
71 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
72 inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
73 inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
74 inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
75 inline CreateUserRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
76 inline CreateUserRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
77 inline CreateUserRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
79
81
84 inline const Aws::String& GetGivenName() const{ return m_givenName; }
85 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
86 inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; }
87 inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); }
88 inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); }
89 inline CreateUserRequest& WithGivenName(const Aws::String& value) { SetGivenName(value); return *this;}
90 inline CreateUserRequest& WithGivenName(Aws::String&& value) { SetGivenName(std::move(value)); return *this;}
91 inline CreateUserRequest& WithGivenName(const char* value) { SetGivenName(value); return *this;}
93
95
98 inline const Aws::String& GetSurname() const{ return m_surname; }
99 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
100 inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; }
101 inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); }
102 inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); }
103 inline CreateUserRequest& WithSurname(const Aws::String& value) { SetSurname(value); return *this;}
104 inline CreateUserRequest& WithSurname(Aws::String&& value) { SetSurname(std::move(value)); return *this;}
105 inline CreateUserRequest& WithSurname(const char* value) { SetSurname(value); return *this;}
107
109
112 inline const Aws::String& GetPassword() const{ return m_password; }
113 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
114 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
115 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
116 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
117 inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
118 inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
119 inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
121
123
126 inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; }
127 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
128 inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; }
129 inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); }
130 inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); }
131 inline CreateUserRequest& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
132 inline CreateUserRequest& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
133 inline CreateUserRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
135
137
140 inline const StorageRuleType& GetStorageRule() const{ return m_storageRule; }
141 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
142 inline void SetStorageRule(const StorageRuleType& value) { m_storageRuleHasBeenSet = true; m_storageRule = value; }
143 inline void SetStorageRule(StorageRuleType&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::move(value); }
144 inline CreateUserRequest& WithStorageRule(const StorageRuleType& value) { SetStorageRule(value); return *this;}
145 inline CreateUserRequest& WithStorageRule(StorageRuleType&& value) { SetStorageRule(std::move(value)); return *this;}
147
149
153 inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
154 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
155 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
156 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
157 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
159 inline CreateUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
160 inline CreateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
162 private:
163
164 Aws::String m_organizationId;
165 bool m_organizationIdHasBeenSet = false;
166
167 Aws::String m_username;
168 bool m_usernameHasBeenSet = false;
169
170 Aws::String m_emailAddress;
171 bool m_emailAddressHasBeenSet = false;
172
173 Aws::String m_givenName;
174 bool m_givenNameHasBeenSet = false;
175
176 Aws::String m_surname;
177 bool m_surnameHasBeenSet = false;
178
179 Aws::String m_password;
180 bool m_passwordHasBeenSet = false;
181
182 Aws::String m_timeZoneId;
183 bool m_timeZoneIdHasBeenSet = false;
184
185 StorageRuleType m_storageRule;
186 bool m_storageRuleHasBeenSet = false;
187
188 Aws::String m_authenticationToken;
189 bool m_authenticationTokenHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace WorkDocs
194} // namespace Aws
CreateUserRequest & WithStorageRule(const StorageRuleType &value)
CreateUserRequest & WithGivenName(const char *value)
CreateUserRequest & WithPassword(Aws::String &&value)
void SetAuthenticationToken(Aws::String &&value)
CreateUserRequest & WithEmailAddress(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAuthenticationToken() const
CreateUserRequest & WithPassword(const char *value)
CreateUserRequest & WithEmailAddress(const char *value)
CreateUserRequest & WithSurname(const char *value)
CreateUserRequest & WithTimeZoneId(const char *value)
const Aws::String & GetEmailAddress() const
CreateUserRequest & WithSurname(const Aws::String &value)
const Aws::String & GetTimeZoneId() const
void SetTimeZoneId(const Aws::String &value)
CreateUserRequest & WithAuthenticationToken(const Aws::String &value)
void SetUsername(const Aws::String &value)
CreateUserRequest & WithPassword(const Aws::String &value)
void SetGivenName(const Aws::String &value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateUserRequest & WithOrganizationId(const char *value)
void SetStorageRule(StorageRuleType &&value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
void SetEmailAddress(const Aws::String &value)
void SetPassword(const Aws::String &value)
CreateUserRequest & WithTimeZoneId(const Aws::String &value)
void SetEmailAddress(Aws::String &&value)
CreateUserRequest & WithGivenName(Aws::String &&value)
CreateUserRequest & WithAuthenticationToken(Aws::String &&value)
CreateUserRequest & WithOrganizationId(const Aws::String &value)
CreateUserRequest & WithGivenName(const Aws::String &value)
void SetSurname(const Aws::String &value)
CreateUserRequest & WithOrganizationId(Aws::String &&value)
const Aws::String & GetPassword() const
CreateUserRequest & WithStorageRule(StorageRuleType &&value)
const Aws::String & GetGivenName() const
CreateUserRequest & WithUsername(Aws::String &&value)
CreateUserRequest & WithUsername(const char *value)
const Aws::String & GetOrganizationId() const
CreateUserRequest & WithEmailAddress(Aws::String &&value)
const Aws::String & GetUsername() const
CreateUserRequest & WithUsername(const Aws::String &value)
const Aws::String & GetSurname() const
CreateUserRequest & WithAuthenticationToken(const char *value)
void SetOrganizationId(const Aws::String &value)
void SetAuthenticationToken(const Aws::String &value)
CreateUserRequest & WithSurname(Aws::String &&value)
void SetStorageRule(const StorageRuleType &value)
const StorageRuleType & GetStorageRule() const
void SetOrganizationId(Aws::String &&value)
CreateUserRequest & WithTimeZoneId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String