AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AuthenticationTokenT = Aws::String>
49 void SetAuthenticationToken(AuthenticationTokenT&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::forward<AuthenticationTokenT>(value); }
50 template<typename AuthenticationTokenT = Aws::String>
51 UpdateUserRequest& WithAuthenticationToken(AuthenticationTokenT&& value) { SetAuthenticationToken(std::forward<AuthenticationTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetUserId() const { return m_userId; }
59 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
60 template<typename UserIdT = Aws::String>
61 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
62 template<typename UserIdT = Aws::String>
63 UpdateUserRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetGivenName() const { return m_givenName; }
71 inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
72 template<typename GivenNameT = Aws::String>
73 void SetGivenName(GivenNameT&& value) { m_givenNameHasBeenSet = true; m_givenName = std::forward<GivenNameT>(value); }
74 template<typename GivenNameT = Aws::String>
75 UpdateUserRequest& WithGivenName(GivenNameT&& value) { SetGivenName(std::forward<GivenNameT>(value)); return *this;}
77
79
82 inline const Aws::String& GetSurname() const { return m_surname; }
83 inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
84 template<typename SurnameT = Aws::String>
85 void SetSurname(SurnameT&& value) { m_surnameHasBeenSet = true; m_surname = std::forward<SurnameT>(value); }
86 template<typename SurnameT = Aws::String>
87 UpdateUserRequest& WithSurname(SurnameT&& value) { SetSurname(std::forward<SurnameT>(value)); return *this;}
89
91
94 inline UserType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(UserType value) { m_typeHasBeenSet = true; m_type = value; }
97 inline UpdateUserRequest& WithType(UserType value) { SetType(value); return *this;}
99
101
104 inline const StorageRuleType& GetStorageRule() const { return m_storageRule; }
105 inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
106 template<typename StorageRuleT = StorageRuleType>
107 void SetStorageRule(StorageRuleT&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::forward<StorageRuleT>(value); }
108 template<typename StorageRuleT = StorageRuleType>
109 UpdateUserRequest& WithStorageRule(StorageRuleT&& value) { SetStorageRule(std::forward<StorageRuleT>(value)); return *this;}
111
113
116 inline const Aws::String& GetTimeZoneId() const { return m_timeZoneId; }
117 inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
118 template<typename TimeZoneIdT = Aws::String>
119 void SetTimeZoneId(TimeZoneIdT&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::forward<TimeZoneIdT>(value); }
120 template<typename TimeZoneIdT = Aws::String>
121 UpdateUserRequest& WithTimeZoneId(TimeZoneIdT&& value) { SetTimeZoneId(std::forward<TimeZoneIdT>(value)); return *this;}
123
125
128 inline LocaleType GetLocale() const { return m_locale; }
129 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
130 inline void SetLocale(LocaleType value) { m_localeHasBeenSet = true; m_locale = value; }
131 inline UpdateUserRequest& WithLocale(LocaleType value) { SetLocale(value); return *this;}
133
135
139 inline BooleanEnumType GetGrantPoweruserPrivileges() const { return m_grantPoweruserPrivileges; }
140 inline bool GrantPoweruserPrivilegesHasBeenSet() const { return m_grantPoweruserPrivilegesHasBeenSet; }
141 inline void SetGrantPoweruserPrivileges(BooleanEnumType value) { m_grantPoweruserPrivilegesHasBeenSet = true; m_grantPoweruserPrivileges = value; }
144 private:
145
146 Aws::String m_authenticationToken;
147 bool m_authenticationTokenHasBeenSet = false;
148
149 Aws::String m_userId;
150 bool m_userIdHasBeenSet = false;
151
152 Aws::String m_givenName;
153 bool m_givenNameHasBeenSet = false;
154
155 Aws::String m_surname;
156 bool m_surnameHasBeenSet = false;
157
159 bool m_typeHasBeenSet = false;
160
161 StorageRuleType m_storageRule;
162 bool m_storageRuleHasBeenSet = false;
163
164 Aws::String m_timeZoneId;
165 bool m_timeZoneIdHasBeenSet = false;
166
168 bool m_localeHasBeenSet = false;
169
170 BooleanEnumType m_grantPoweruserPrivileges{BooleanEnumType::NOT_SET};
171 bool m_grantPoweruserPrivilegesHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace WorkDocs
176} // 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