AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateUserRequest.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/BooleanEnumType.h>
11#include <aws/workdocs/model/LocaleType.h>
12#include <aws/workdocs/model/StorageRuleType.h>
13#include <aws/workdocs/model/UserType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace WorkDocs {
19namespace Model {
20
24 public:
25 AWS_WORKDOCS_API UpdateUserRequest() = default;
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 "UpdateUser"; }
32
33 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetAuthenticationToken() const { return m_authenticationToken; }
43 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
44 template <typename AuthenticationTokenT = Aws::String>
45 void SetAuthenticationToken(AuthenticationTokenT&& value) {
46 m_authenticationTokenHasBeenSet = true;
47 m_authenticationToken = std::forward<AuthenticationTokenT>(value);
48 }
49 template <typename AuthenticationTokenT = Aws::String>
50 UpdateUserRequest& WithAuthenticationToken(AuthenticationTokenT&& value) {
51 SetAuthenticationToken(std::forward<AuthenticationTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetUserId() const { return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 template <typename UserIdT = Aws::String>
63 void SetUserId(UserIdT&& value) {
64 m_userIdHasBeenSet = true;
65 m_userId = std::forward<UserIdT>(value);
66 }
67 template <typename UserIdT = Aws::String>
68 UpdateUserRequest& WithUserId(UserIdT&& value) {
69 SetUserId(std::forward<UserIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetGivenName() const { return m_givenName; }
79 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
80 template <typename GivenNameT = Aws::String>
81 void SetGivenName(GivenNameT&& value) {
82 m_givenNameHasBeenSet = true;
83 m_givenName = std::forward<GivenNameT>(value);
84 }
85 template <typename GivenNameT = Aws::String>
86 UpdateUserRequest& WithGivenName(GivenNameT&& value) {
87 SetGivenName(std::forward<GivenNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetSurname() const { return m_surname; }
97 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
98 template <typename SurnameT = Aws::String>
99 void SetSurname(SurnameT&& value) {
100 m_surnameHasBeenSet = true;
101 m_surname = std::forward<SurnameT>(value);
102 }
103 template <typename SurnameT = Aws::String>
104 UpdateUserRequest& WithSurname(SurnameT&& value) {
105 SetSurname(std::forward<SurnameT>(value));
106 return *this;
107 }
109
111
114 inline UserType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
116 inline void SetType(UserType value) {
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125
127
130 inline const StorageRuleType& GetStorageRule() const { return m_storageRule; }
131 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
132 template <typename StorageRuleT = StorageRuleType>
133 void SetStorageRule(StorageRuleT&& value) {
134 m_storageRuleHasBeenSet = true;
135 m_storageRule = std::forward<StorageRuleT>(value);
136 }
137 template <typename StorageRuleT = StorageRuleType>
138 UpdateUserRequest& WithStorageRule(StorageRuleT&& value) {
139 SetStorageRule(std::forward<StorageRuleT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
149 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
150 template <typename TimeZoneIdT = Aws::String>
151 void SetTimeZoneId(TimeZoneIdT&& value) {
152 m_timeZoneIdHasBeenSet = true;
153 m_timeZoneId = std::forward<TimeZoneIdT>(value);
154 }
155 template <typename TimeZoneIdT = Aws::String>
156 UpdateUserRequest& WithTimeZoneId(TimeZoneIdT&& value) {
157 SetTimeZoneId(std::forward<TimeZoneIdT>(value));
158 return *this;
159 }
161
163
166 inline LocaleType GetLocale() const { return m_locale; }
167 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
168 inline void SetLocale(LocaleType value) {
169 m_localeHasBeenSet = true;
170 m_locale = value;
171 }
173 SetLocale(value);
174 return *this;
175 }
177
179
183 inline BooleanEnumType GetGrantPoweruserPrivileges() const { return m_grantPoweruserPrivileges; }
184 inline bool GrantPoweruserPrivilegesHasBeenSet() const { return m_grantPoweruserPrivilegesHasBeenSet; }
186 m_grantPoweruserPrivilegesHasBeenSet = true;
187 m_grantPoweruserPrivileges = value;
188 }
194 private:
195 Aws::String m_authenticationToken;
196
197 Aws::String m_userId;
198
199 Aws::String m_givenName;
200
201 Aws::String m_surname;
202
204
205 StorageRuleType m_storageRule;
206
207 Aws::String m_timeZoneId;
208
210
211 BooleanEnumType m_grantPoweruserPrivileges{BooleanEnumType::NOT_SET};
212 bool m_authenticationTokenHasBeenSet = false;
213 bool m_userIdHasBeenSet = false;
214 bool m_givenNameHasBeenSet = false;
215 bool m_surnameHasBeenSet = false;
216 bool m_typeHasBeenSet = false;
217 bool m_storageRuleHasBeenSet = false;
218 bool m_timeZoneIdHasBeenSet = false;
219 bool m_localeHasBeenSet = false;
220 bool m_grantPoweruserPrivilegesHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace WorkDocs
225} // namespace Aws
UpdateUserRequest & WithAuthenticationToken(AuthenticationTokenT &&value)
void SetStorageRule(StorageRuleT &&value)
UpdateUserRequest & WithGivenName(GivenNameT &&value)
UpdateUserRequest & WithUserId(UserIdT &&value)
void SetAuthenticationToken(AuthenticationTokenT &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUserRequest & WithStorageRule(StorageRuleT &&value)
const Aws::String & GetAuthenticationToken() const
UpdateUserRequest & WithSurname(SurnameT &&value)
const Aws::String & GetGivenName() const
AWS_WORKDOCS_API Aws::String SerializePayload() const override
UpdateUserRequest & WithLocale(LocaleType value)
const Aws::String & GetTimeZoneId() const
UpdateUserRequest & WithTimeZoneId(TimeZoneIdT &&value)
AWS_WORKDOCS_API UpdateUserRequest()=default
UpdateUserRequest & WithGrantPoweruserPrivileges(BooleanEnumType value)
const StorageRuleType & GetStorageRule() const
const Aws::String & GetUserId() const
const Aws::String & GetSurname() const
BooleanEnumType GetGrantPoweruserPrivileges() const
virtual const char * GetServiceRequestName() const override
void SetGrantPoweruserPrivileges(BooleanEnumType value)
UpdateUserRequest & WithType(UserType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String