AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UserAccessResultItem.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/appfabric/model/ResultStatus.h>
9#include <aws/appfabric/model/TaskError.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppFabric {
22namespace Model {
23
31 public:
32 AWS_APPFABRIC_API UserAccessResultItem() = default;
35 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetApp() const { return m_app; }
42 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
43 template <typename AppT = Aws::String>
44 void SetApp(AppT&& value) {
45 m_appHasBeenSet = true;
46 m_app = std::forward<AppT>(value);
47 }
48 template <typename AppT = Aws::String>
50 SetApp(std::forward<AppT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTenantId() const { return m_tenantId; }
60 inline bool TenantIdHasBeenSet() const { return m_tenantIdHasBeenSet; }
61 template <typename TenantIdT = Aws::String>
62 void SetTenantId(TenantIdT&& value) {
63 m_tenantIdHasBeenSet = true;
64 m_tenantId = std::forward<TenantIdT>(value);
65 }
66 template <typename TenantIdT = Aws::String>
67 UserAccessResultItem& WithTenantId(TenantIdT&& value) {
68 SetTenantId(std::forward<TenantIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetTenantDisplayName() const { return m_tenantDisplayName; }
78 inline bool TenantDisplayNameHasBeenSet() const { return m_tenantDisplayNameHasBeenSet; }
79 template <typename TenantDisplayNameT = Aws::String>
80 void SetTenantDisplayName(TenantDisplayNameT&& value) {
81 m_tenantDisplayNameHasBeenSet = true;
82 m_tenantDisplayName = std::forward<TenantDisplayNameT>(value);
83 }
84 template <typename TenantDisplayNameT = Aws::String>
85 UserAccessResultItem& WithTenantDisplayName(TenantDisplayNameT&& value) {
86 SetTenantDisplayName(std::forward<TenantDisplayNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetTaskId() const { return m_taskId; }
96 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
97 template <typename TaskIdT = Aws::String>
98 void SetTaskId(TaskIdT&& value) {
99 m_taskIdHasBeenSet = true;
100 m_taskId = std::forward<TaskIdT>(value);
101 }
102 template <typename TaskIdT = Aws::String>
104 SetTaskId(std::forward<TaskIdT>(value));
105 return *this;
106 }
108
110
118 inline ResultStatus GetResultStatus() const { return m_resultStatus; }
119 inline bool ResultStatusHasBeenSet() const { return m_resultStatusHasBeenSet; }
120 inline void SetResultStatus(ResultStatus value) {
121 m_resultStatusHasBeenSet = true;
122 m_resultStatus = value;
123 }
125 SetResultStatus(value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetEmail() const { return m_email; }
135 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
136 template <typename EmailT = Aws::String>
137 void SetEmail(EmailT&& value) {
138 m_emailHasBeenSet = true;
139 m_email = std::forward<EmailT>(value);
140 }
141 template <typename EmailT = Aws::String>
143 SetEmail(std::forward<EmailT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetUserId() const { return m_userId; }
153 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
154 template <typename UserIdT = Aws::String>
155 void SetUserId(UserIdT&& value) {
156 m_userIdHasBeenSet = true;
157 m_userId = std::forward<UserIdT>(value);
158 }
159 template <typename UserIdT = Aws::String>
161 SetUserId(std::forward<UserIdT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetUserFullName() const { return m_userFullName; }
171 inline bool UserFullNameHasBeenSet() const { return m_userFullNameHasBeenSet; }
172 template <typename UserFullNameT = Aws::String>
173 void SetUserFullName(UserFullNameT&& value) {
174 m_userFullNameHasBeenSet = true;
175 m_userFullName = std::forward<UserFullNameT>(value);
176 }
177 template <typename UserFullNameT = Aws::String>
178 UserAccessResultItem& WithUserFullName(UserFullNameT&& value) {
179 SetUserFullName(std::forward<UserFullNameT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetUserFirstName() const { return m_userFirstName; }
189 inline bool UserFirstNameHasBeenSet() const { return m_userFirstNameHasBeenSet; }
190 template <typename UserFirstNameT = Aws::String>
191 void SetUserFirstName(UserFirstNameT&& value) {
192 m_userFirstNameHasBeenSet = true;
193 m_userFirstName = std::forward<UserFirstNameT>(value);
194 }
195 template <typename UserFirstNameT = Aws::String>
196 UserAccessResultItem& WithUserFirstName(UserFirstNameT&& value) {
197 SetUserFirstName(std::forward<UserFirstNameT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::String& GetUserLastName() const { return m_userLastName; }
207 inline bool UserLastNameHasBeenSet() const { return m_userLastNameHasBeenSet; }
208 template <typename UserLastNameT = Aws::String>
209 void SetUserLastName(UserLastNameT&& value) {
210 m_userLastNameHasBeenSet = true;
211 m_userLastName = std::forward<UserLastNameT>(value);
212 }
213 template <typename UserLastNameT = Aws::String>
214 UserAccessResultItem& WithUserLastName(UserLastNameT&& value) {
215 SetUserLastName(std::forward<UserLastNameT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetUserStatus() const { return m_userStatus; }
225 inline bool UserStatusHasBeenSet() const { return m_userStatusHasBeenSet; }
226 template <typename UserStatusT = Aws::String>
227 void SetUserStatus(UserStatusT&& value) {
228 m_userStatusHasBeenSet = true;
229 m_userStatus = std::forward<UserStatusT>(value);
230 }
231 template <typename UserStatusT = Aws::String>
232 UserAccessResultItem& WithUserStatus(UserStatusT&& value) {
233 SetUserStatus(std::forward<UserStatusT>(value));
234 return *this;
235 }
237
239
242 inline const TaskError& GetTaskError() const { return m_taskError; }
243 inline bool TaskErrorHasBeenSet() const { return m_taskErrorHasBeenSet; }
244 template <typename TaskErrorT = TaskError>
245 void SetTaskError(TaskErrorT&& value) {
246 m_taskErrorHasBeenSet = true;
247 m_taskError = std::forward<TaskErrorT>(value);
248 }
249 template <typename TaskErrorT = TaskError>
250 UserAccessResultItem& WithTaskError(TaskErrorT&& value) {
251 SetTaskError(std::forward<TaskErrorT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_app;
257
258 Aws::String m_tenantId;
259
260 Aws::String m_tenantDisplayName;
261
262 Aws::String m_taskId;
263
264 ResultStatus m_resultStatus{ResultStatus::NOT_SET};
265
266 Aws::String m_email;
267
268 Aws::String m_userId;
269
270 Aws::String m_userFullName;
271
272 Aws::String m_userFirstName;
273
274 Aws::String m_userLastName;
275
276 Aws::String m_userStatus;
277
278 TaskError m_taskError;
279 bool m_appHasBeenSet = false;
280 bool m_tenantIdHasBeenSet = false;
281 bool m_tenantDisplayNameHasBeenSet = false;
282 bool m_taskIdHasBeenSet = false;
283 bool m_resultStatusHasBeenSet = false;
284 bool m_emailHasBeenSet = false;
285 bool m_userIdHasBeenSet = false;
286 bool m_userFullNameHasBeenSet = false;
287 bool m_userFirstNameHasBeenSet = false;
288 bool m_userLastNameHasBeenSet = false;
289 bool m_userStatusHasBeenSet = false;
290 bool m_taskErrorHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace AppFabric
295} // namespace Aws
AWS_APPFABRIC_API UserAccessResultItem & operator=(Aws::Utils::Json::JsonView jsonValue)
UserAccessResultItem & WithUserFirstName(UserFirstNameT &&value)
UserAccessResultItem & WithUserStatus(UserStatusT &&value)
UserAccessResultItem & WithApp(AppT &&value)
UserAccessResultItem & WithTenantId(TenantIdT &&value)
UserAccessResultItem & WithUserId(UserIdT &&value)
UserAccessResultItem & WithTenantDisplayName(TenantDisplayNameT &&value)
void SetTenantDisplayName(TenantDisplayNameT &&value)
UserAccessResultItem & WithTaskError(TaskErrorT &&value)
UserAccessResultItem & WithUserLastName(UserLastNameT &&value)
UserAccessResultItem & WithTaskId(TaskIdT &&value)
AWS_APPFABRIC_API UserAccessResultItem()=default
UserAccessResultItem & WithResultStatus(ResultStatus value)
UserAccessResultItem & WithUserFullName(UserFullNameT &&value)
UserAccessResultItem & WithEmail(EmailT &&value)
AWS_APPFABRIC_API UserAccessResultItem(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue