AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateUserRequest.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/UserType.h>
11#include <aws/workdocs/model/StorageRuleType.h>
12#include <aws/workdocs/model/LocaleType.h>
13#include <aws/workdocs/model/BooleanEnumType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace WorkDocs
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_WORKDOCS_API UpdateUserRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateUser"; }
35
36 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
47 inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
48 inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
49 inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
50 inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
51 inline UpdateUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
52 inline UpdateUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
53 inline UpdateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
55
57
60 inline const Aws::String& GetUserId() const{ return m_userId; }
61 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
62 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
63 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
64 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
65 inline UpdateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
66 inline UpdateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
67 inline UpdateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
69
71
74 inline const Aws::String& GetGivenName() const{ return m_givenName; }
75 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
76 inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; }
77 inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); }
78 inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); }
79 inline UpdateUserRequest& WithGivenName(const Aws::String& value) { SetGivenName(value); return *this;}
80 inline UpdateUserRequest& WithGivenName(Aws::String&& value) { SetGivenName(std::move(value)); return *this;}
81 inline UpdateUserRequest& WithGivenName(const char* value) { SetGivenName(value); return *this;}
83
85
88 inline const Aws::String& GetSurname() const{ return m_surname; }
89 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
90 inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; }
91 inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); }
92 inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); }
93 inline UpdateUserRequest& WithSurname(const Aws::String& value) { SetSurname(value); return *this;}
94 inline UpdateUserRequest& WithSurname(Aws::String&& value) { SetSurname(std::move(value)); return *this;}
95 inline UpdateUserRequest& WithSurname(const char* value) { SetSurname(value); return *this;}
97
99
102 inline const UserType& GetType() const{ return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(const UserType& value) { m_typeHasBeenSet = true; m_type = value; }
105 inline void SetType(UserType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
106 inline UpdateUserRequest& WithType(const UserType& value) { SetType(value); return *this;}
107 inline UpdateUserRequest& WithType(UserType&& value) { SetType(std::move(value)); return *this;}
109
111
114 inline const StorageRuleType& GetStorageRule() const{ return m_storageRule; }
115 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
116 inline void SetStorageRule(const StorageRuleType& value) { m_storageRuleHasBeenSet = true; m_storageRule = value; }
117 inline void SetStorageRule(StorageRuleType&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::move(value); }
118 inline UpdateUserRequest& WithStorageRule(const StorageRuleType& value) { SetStorageRule(value); return *this;}
119 inline UpdateUserRequest& WithStorageRule(StorageRuleType&& value) { SetStorageRule(std::move(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 UpdateUserRequest& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
132 inline UpdateUserRequest& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
133 inline UpdateUserRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
135
137
140 inline const LocaleType& GetLocale() const{ return m_locale; }
141 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
142 inline void SetLocale(const LocaleType& value) { m_localeHasBeenSet = true; m_locale = value; }
143 inline void SetLocale(LocaleType&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
144 inline UpdateUserRequest& WithLocale(const LocaleType& value) { SetLocale(value); return *this;}
145 inline UpdateUserRequest& WithLocale(LocaleType&& value) { SetLocale(std::move(value)); return *this;}
147
149
153 inline const BooleanEnumType& GetGrantPoweruserPrivileges() const{ return m_grantPoweruserPrivileges; }
154 inline bool GrantPoweruserPrivilegesHasBeenSet() const { return m_grantPoweruserPrivilegesHasBeenSet; }
155 inline void SetGrantPoweruserPrivileges(const BooleanEnumType& value) { m_grantPoweruserPrivilegesHasBeenSet = true; m_grantPoweruserPrivileges = value; }
156 inline void SetGrantPoweruserPrivileges(BooleanEnumType&& value) { m_grantPoweruserPrivilegesHasBeenSet = true; m_grantPoweruserPrivileges = std::move(value); }
160 private:
161
162 Aws::String m_authenticationToken;
163 bool m_authenticationTokenHasBeenSet = false;
164
165 Aws::String m_userId;
166 bool m_userIdHasBeenSet = false;
167
168 Aws::String m_givenName;
169 bool m_givenNameHasBeenSet = false;
170
171 Aws::String m_surname;
172 bool m_surnameHasBeenSet = false;
173
174 UserType m_type;
175 bool m_typeHasBeenSet = false;
176
177 StorageRuleType m_storageRule;
178 bool m_storageRuleHasBeenSet = false;
179
180 Aws::String m_timeZoneId;
181 bool m_timeZoneIdHasBeenSet = false;
182
183 LocaleType m_locale;
184 bool m_localeHasBeenSet = false;
185
186 BooleanEnumType m_grantPoweruserPrivileges;
187 bool m_grantPoweruserPrivilegesHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace WorkDocs
192} // namespace Aws
UpdateUserRequest & WithAuthenticationToken(const char *value)
void SetGrantPoweruserPrivileges(const BooleanEnumType &value)
UpdateUserRequest & WithAuthenticationToken(Aws::String &&value)
UpdateUserRequest & WithGivenName(Aws::String &&value)
AWS_WORKDOCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateUserRequest & WithTimeZoneId(Aws::String &&value)
UpdateUserRequest & WithType(const UserType &value)
void SetLocale(const LocaleType &value)
const Aws::String & GetAuthenticationToken() const
UpdateUserRequest & WithSurname(const Aws::String &value)
UpdateUserRequest & WithSurname(const char *value)
UpdateUserRequest & WithSurname(Aws::String &&value)
UpdateUserRequest & WithAuthenticationToken(const Aws::String &value)
const Aws::String & GetGivenName() const
void SetTimeZoneId(const Aws::String &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
const Aws::String & GetTimeZoneId() const
UpdateUserRequest & WithType(UserType &&value)
UpdateUserRequest & WithStorageRule(const StorageRuleType &value)
const StorageRuleType & GetStorageRule() const
void SetAuthenticationToken(const Aws::String &value)
UpdateUserRequest & WithGivenName(const Aws::String &value)
void SetGivenName(const Aws::String &value)
UpdateUserRequest & WithGrantPoweruserPrivileges(BooleanEnumType &&value)
const BooleanEnumType & GetGrantPoweruserPrivileges() const
UpdateUserRequest & WithUserId(const char *value)
UpdateUserRequest & WithGivenName(const char *value)
UpdateUserRequest & WithLocale(LocaleType &&value)
UpdateUserRequest & WithStorageRule(StorageRuleType &&value)
const Aws::String & GetUserId() const
const Aws::String & GetSurname() const
UpdateUserRequest & WithUserId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetSurname(const Aws::String &value)
UpdateUserRequest & WithTimeZoneId(const char *value)
void SetAuthenticationToken(const char *value)
void SetUserId(const Aws::String &value)
UpdateUserRequest & WithLocale(const LocaleType &value)
void SetStorageRule(const StorageRuleType &value)
UpdateUserRequest & WithTimeZoneId(const Aws::String &value)
void SetStorageRule(StorageRuleType &&value)
void SetAuthenticationToken(Aws::String &&value)
UpdateUserRequest & WithUserId(const Aws::String &value)
UpdateUserRequest & WithGrantPoweruserPrivileges(const BooleanEnumType &value)
void SetGrantPoweruserPrivileges(BooleanEnumType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String