AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
GetApprovalTeamResponseApprover.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mpa/MPA_EXPORTS.h>
11#include <aws/mpa/model/ApproverLastActivity.h>
12#include <aws/mpa/model/IdentityStatus.h>
13#include <aws/mpa/model/MfaMethod.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace MPA {
25namespace Model {
26
33 public:
34 AWS_MPA_API GetApprovalTeamResponseApprover() = default;
38
40
43 inline const Aws::String& GetApproverId() const { return m_approverId; }
44 inline bool ApproverIdHasBeenSet() const { return m_approverIdHasBeenSet; }
45 template <typename ApproverIdT = Aws::String>
46 void SetApproverId(ApproverIdT&& value) {
47 m_approverIdHasBeenSet = true;
48 m_approverId = std::forward<ApproverIdT>(value);
49 }
50 template <typename ApproverIdT = Aws::String>
52 SetApproverId(std::forward<ApproverIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetResponseTime() const { return m_responseTime; }
62 inline bool ResponseTimeHasBeenSet() const { return m_responseTimeHasBeenSet; }
63 template <typename ResponseTimeT = Aws::Utils::DateTime>
64 void SetResponseTime(ResponseTimeT&& value) {
65 m_responseTimeHasBeenSet = true;
66 m_responseTime = std::forward<ResponseTimeT>(value);
67 }
68 template <typename ResponseTimeT = Aws::Utils::DateTime>
70 SetResponseTime(std::forward<ResponseTimeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetPrimaryIdentityId() const { return m_primaryIdentityId; }
80 inline bool PrimaryIdentityIdHasBeenSet() const { return m_primaryIdentityIdHasBeenSet; }
81 template <typename PrimaryIdentityIdT = Aws::String>
82 void SetPrimaryIdentityId(PrimaryIdentityIdT&& value) {
83 m_primaryIdentityIdHasBeenSet = true;
84 m_primaryIdentityId = std::forward<PrimaryIdentityIdT>(value);
85 }
86 template <typename PrimaryIdentityIdT = Aws::String>
88 SetPrimaryIdentityId(std::forward<PrimaryIdentityIdT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetPrimaryIdentitySourceArn() const { return m_primaryIdentitySourceArn; }
99 inline bool PrimaryIdentitySourceArnHasBeenSet() const { return m_primaryIdentitySourceArnHasBeenSet; }
100 template <typename PrimaryIdentitySourceArnT = Aws::String>
101 void SetPrimaryIdentitySourceArn(PrimaryIdentitySourceArnT&& value) {
102 m_primaryIdentitySourceArnHasBeenSet = true;
103 m_primaryIdentitySourceArn = std::forward<PrimaryIdentitySourceArnT>(value);
104 }
105 template <typename PrimaryIdentitySourceArnT = Aws::String>
107 SetPrimaryIdentitySourceArn(std::forward<PrimaryIdentitySourceArnT>(value));
108 return *this;
109 }
111
113
118 inline IdentityStatus GetPrimaryIdentityStatus() const { return m_primaryIdentityStatus; }
119 inline bool PrimaryIdentityStatusHasBeenSet() const { return m_primaryIdentityStatusHasBeenSet; }
121 m_primaryIdentityStatusHasBeenSet = true;
122 m_primaryIdentityStatus = value;
123 }
126 return *this;
127 }
129
131
134 inline ApproverLastActivity GetLastActivity() const { return m_lastActivity; }
135 inline bool LastActivityHasBeenSet() const { return m_lastActivityHasBeenSet; }
137 m_lastActivityHasBeenSet = true;
138 m_lastActivity = value;
139 }
141 SetLastActivity(value);
142 return *this;
143 }
145
147
151 inline const Aws::Utils::DateTime& GetLastActivityTime() const { return m_lastActivityTime; }
152 inline bool LastActivityTimeHasBeenSet() const { return m_lastActivityTimeHasBeenSet; }
153 template <typename LastActivityTimeT = Aws::Utils::DateTime>
154 void SetLastActivityTime(LastActivityTimeT&& value) {
155 m_lastActivityTimeHasBeenSet = true;
156 m_lastActivityTime = std::forward<LastActivityTimeT>(value);
157 }
158 template <typename LastActivityTimeT = Aws::Utils::DateTime>
160 SetLastActivityTime(std::forward<LastActivityTimeT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetPendingBaselineSessionArn() const { return m_pendingBaselineSessionArn; }
170 inline bool PendingBaselineSessionArnHasBeenSet() const { return m_pendingBaselineSessionArnHasBeenSet; }
171 template <typename PendingBaselineSessionArnT = Aws::String>
172 void SetPendingBaselineSessionArn(PendingBaselineSessionArnT&& value) {
173 m_pendingBaselineSessionArnHasBeenSet = true;
174 m_pendingBaselineSessionArn = std::forward<PendingBaselineSessionArnT>(value);
175 }
176 template <typename PendingBaselineSessionArnT = Aws::String>
178 SetPendingBaselineSessionArn(std::forward<PendingBaselineSessionArnT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Vector<MfaMethod>& GetMfaMethods() const { return m_mfaMethods; }
188 inline bool MfaMethodsHasBeenSet() const { return m_mfaMethodsHasBeenSet; }
189 template <typename MfaMethodsT = Aws::Vector<MfaMethod>>
190 void SetMfaMethods(MfaMethodsT&& value) {
191 m_mfaMethodsHasBeenSet = true;
192 m_mfaMethods = std::forward<MfaMethodsT>(value);
193 }
194 template <typename MfaMethodsT = Aws::Vector<MfaMethod>>
196 SetMfaMethods(std::forward<MfaMethodsT>(value));
197 return *this;
198 }
199 template <typename MfaMethodsT = MfaMethod>
201 m_mfaMethodsHasBeenSet = true;
202 m_mfaMethods.emplace_back(std::forward<MfaMethodsT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_approverId;
208
209 Aws::Utils::DateTime m_responseTime{};
210
211 Aws::String m_primaryIdentityId;
212
213 Aws::String m_primaryIdentitySourceArn;
214
215 IdentityStatus m_primaryIdentityStatus{IdentityStatus::NOT_SET};
216
218
219 Aws::Utils::DateTime m_lastActivityTime{};
220
221 Aws::String m_pendingBaselineSessionArn;
222
223 Aws::Vector<MfaMethod> m_mfaMethods;
224 bool m_approverIdHasBeenSet = false;
225 bool m_responseTimeHasBeenSet = false;
226 bool m_primaryIdentityIdHasBeenSet = false;
227 bool m_primaryIdentitySourceArnHasBeenSet = false;
228 bool m_primaryIdentityStatusHasBeenSet = false;
229 bool m_lastActivityHasBeenSet = false;
230 bool m_lastActivityTimeHasBeenSet = false;
231 bool m_pendingBaselineSessionArnHasBeenSet = false;
232 bool m_mfaMethodsHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace MPA
237} // namespace Aws
AWS_MPA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MPA_API GetApprovalTeamResponseApprover & operator=(Aws::Utils::Json::JsonView jsonValue)
GetApprovalTeamResponseApprover & WithApproverId(ApproverIdT &&value)
GetApprovalTeamResponseApprover & WithPendingBaselineSessionArn(PendingBaselineSessionArnT &&value)
GetApprovalTeamResponseApprover & WithPrimaryIdentitySourceArn(PrimaryIdentitySourceArnT &&value)
GetApprovalTeamResponseApprover & WithLastActivityTime(LastActivityTimeT &&value)
GetApprovalTeamResponseApprover & WithPrimaryIdentityId(PrimaryIdentityIdT &&value)
GetApprovalTeamResponseApprover & WithResponseTime(ResponseTimeT &&value)
void SetPrimaryIdentitySourceArn(PrimaryIdentitySourceArnT &&value)
GetApprovalTeamResponseApprover & AddMfaMethods(MfaMethodsT &&value)
AWS_MPA_API GetApprovalTeamResponseApprover(Aws::Utils::Json::JsonView jsonValue)
void SetPendingBaselineSessionArn(PendingBaselineSessionArnT &&value)
GetApprovalTeamResponseApprover & WithMfaMethods(MfaMethodsT &&value)
GetApprovalTeamResponseApprover & WithPrimaryIdentityStatus(IdentityStatus value)
GetApprovalTeamResponseApprover & WithLastActivity(ApproverLastActivity value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue