AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
SelfUpgradeRequestDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/SelfUpgradeRequestStatus.h>
10#include <aws/quicksight/model/UserRole.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
30 public:
31 AWS_QUICKSIGHT_API SelfUpgradeRequestDetail() = default;
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetUpgradeRequestId() const { return m_upgradeRequestId; }
41 inline bool UpgradeRequestIdHasBeenSet() const { return m_upgradeRequestIdHasBeenSet; }
42 template <typename UpgradeRequestIdT = Aws::String>
43 void SetUpgradeRequestId(UpgradeRequestIdT&& value) {
44 m_upgradeRequestIdHasBeenSet = true;
45 m_upgradeRequestId = std::forward<UpgradeRequestIdT>(value);
46 }
47 template <typename UpgradeRequestIdT = Aws::String>
48 SelfUpgradeRequestDetail& WithUpgradeRequestId(UpgradeRequestIdT&& value) {
49 SetUpgradeRequestId(std::forward<UpgradeRequestIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetUserName() const { return m_userName; }
59 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
60 template <typename UserNameT = Aws::String>
61 void SetUserName(UserNameT&& value) {
62 m_userNameHasBeenSet = true;
63 m_userName = std::forward<UserNameT>(value);
64 }
65 template <typename UserNameT = Aws::String>
67 SetUserName(std::forward<UserNameT>(value));
68 return *this;
69 }
71
73
76 inline UserRole GetOriginalRole() const { return m_originalRole; }
77 inline bool OriginalRoleHasBeenSet() const { return m_originalRoleHasBeenSet; }
78 inline void SetOriginalRole(UserRole value) {
79 m_originalRoleHasBeenSet = true;
80 m_originalRole = value;
81 }
83 SetOriginalRole(value);
84 return *this;
85 }
87
89
92 inline UserRole GetRequestedRole() const { return m_requestedRole; }
93 inline bool RequestedRoleHasBeenSet() const { return m_requestedRoleHasBeenSet; }
94 inline void SetRequestedRole(UserRole value) {
95 m_requestedRoleHasBeenSet = true;
96 m_requestedRole = value;
97 }
99 SetRequestedRole(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetRequestNote() const { return m_requestNote; }
109 inline bool RequestNoteHasBeenSet() const { return m_requestNoteHasBeenSet; }
110 template <typename RequestNoteT = Aws::String>
111 void SetRequestNote(RequestNoteT&& value) {
112 m_requestNoteHasBeenSet = true;
113 m_requestNote = std::forward<RequestNoteT>(value);
114 }
115 template <typename RequestNoteT = Aws::String>
117 SetRequestNote(std::forward<RequestNoteT>(value));
118 return *this;
119 }
121
123
126 inline long long GetCreationTime() const { return m_creationTime; }
127 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
128 inline void SetCreationTime(long long value) {
129 m_creationTimeHasBeenSet = true;
130 m_creationTime = value;
131 }
133 SetCreationTime(value);
134 return *this;
135 }
137
139
142 inline SelfUpgradeRequestStatus GetRequestStatus() const { return m_requestStatus; }
143 inline bool RequestStatusHasBeenSet() const { return m_requestStatusHasBeenSet; }
145 m_requestStatusHasBeenSet = true;
146 m_requestStatus = value;
147 }
149 SetRequestStatus(value);
150 return *this;
151 }
153
155
158 inline long long GetLastUpdateAttemptTime() const { return m_lastUpdateAttemptTime; }
159 inline bool LastUpdateAttemptTimeHasBeenSet() const { return m_lastUpdateAttemptTimeHasBeenSet; }
160 inline void SetLastUpdateAttemptTime(long long value) {
161 m_lastUpdateAttemptTimeHasBeenSet = true;
162 m_lastUpdateAttemptTime = value;
163 }
166 return *this;
167 }
169
171
174 inline const Aws::String& GetLastUpdateFailureReason() const { return m_lastUpdateFailureReason; }
175 inline bool LastUpdateFailureReasonHasBeenSet() const { return m_lastUpdateFailureReasonHasBeenSet; }
176 template <typename LastUpdateFailureReasonT = Aws::String>
177 void SetLastUpdateFailureReason(LastUpdateFailureReasonT&& value) {
178 m_lastUpdateFailureReasonHasBeenSet = true;
179 m_lastUpdateFailureReason = std::forward<LastUpdateFailureReasonT>(value);
180 }
181 template <typename LastUpdateFailureReasonT = Aws::String>
182 SelfUpgradeRequestDetail& WithLastUpdateFailureReason(LastUpdateFailureReasonT&& value) {
183 SetLastUpdateFailureReason(std::forward<LastUpdateFailureReasonT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_upgradeRequestId;
189
190 Aws::String m_userName;
191
192 UserRole m_originalRole{UserRole::NOT_SET};
193
194 UserRole m_requestedRole{UserRole::NOT_SET};
195
196 Aws::String m_requestNote;
197
198 long long m_creationTime{0};
199
201
202 long long m_lastUpdateAttemptTime{0};
203
204 Aws::String m_lastUpdateFailureReason;
205 bool m_upgradeRequestIdHasBeenSet = false;
206 bool m_userNameHasBeenSet = false;
207 bool m_originalRoleHasBeenSet = false;
208 bool m_requestedRoleHasBeenSet = false;
209 bool m_requestNoteHasBeenSet = false;
210 bool m_creationTimeHasBeenSet = false;
211 bool m_requestStatusHasBeenSet = false;
212 bool m_lastUpdateAttemptTimeHasBeenSet = false;
213 bool m_lastUpdateFailureReasonHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace QuickSight
218} // namespace Aws
SelfUpgradeRequestDetail & WithLastUpdateAttemptTime(long long value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
SelfUpgradeRequestDetail & WithRequestStatus(SelfUpgradeRequestStatus value)
AWS_QUICKSIGHT_API SelfUpgradeRequestDetail(Aws::Utils::Json::JsonView jsonValue)
SelfUpgradeRequestDetail & WithOriginalRole(UserRole value)
SelfUpgradeRequestDetail & WithUpgradeRequestId(UpgradeRequestIdT &&value)
void SetRequestStatus(SelfUpgradeRequestStatus value)
void SetLastUpdateFailureReason(LastUpdateFailureReasonT &&value)
SelfUpgradeRequestDetail & WithCreationTime(long long value)
SelfUpgradeRequestDetail & WithRequestNote(RequestNoteT &&value)
SelfUpgradeRequestDetail & WithRequestedRole(UserRole value)
SelfUpgradeRequestDetail & WithLastUpdateFailureReason(LastUpdateFailureReasonT &&value)
SelfUpgradeRequestDetail & WithUserName(UserNameT &&value)
AWS_QUICKSIGHT_API SelfUpgradeRequestDetail()=default
AWS_QUICKSIGHT_API SelfUpgradeRequestDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue