AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
GetApprovalTeamResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mpa/MPA_EXPORTS.h>
12#include <aws/mpa/model/ApprovalStrategyResponse.h>
13#include <aws/mpa/model/ApprovalTeamStatus.h>
14#include <aws/mpa/model/ApprovalTeamStatusCode.h>
15#include <aws/mpa/model/GetApprovalTeamResponseApprover.h>
16#include <aws/mpa/model/PendingUpdate.h>
17#include <aws/mpa/model/PolicyReference.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace MPA {
31namespace Model {
33 public:
34 AWS_MPA_API GetApprovalTeamResult() = default;
37
39
42 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
43 template <typename CreationTimeT = Aws::Utils::DateTime>
44 void SetCreationTime(CreationTimeT&& value) {
45 m_creationTimeHasBeenSet = true;
46 m_creationTime = std::forward<CreationTimeT>(value);
47 }
48 template <typename CreationTimeT = Aws::Utils::DateTime>
49 GetApprovalTeamResult& WithCreationTime(CreationTimeT&& value) {
50 SetCreationTime(std::forward<CreationTimeT>(value));
51 return *this;
52 }
54
56
60 inline const ApprovalStrategyResponse& GetApprovalStrategy() const { return m_approvalStrategy; }
61 template <typename ApprovalStrategyT = ApprovalStrategyResponse>
62 void SetApprovalStrategy(ApprovalStrategyT&& value) {
63 m_approvalStrategyHasBeenSet = true;
64 m_approvalStrategy = std::forward<ApprovalStrategyT>(value);
65 }
66 template <typename ApprovalStrategyT = ApprovalStrategyResponse>
67 GetApprovalTeamResult& WithApprovalStrategy(ApprovalStrategyT&& value) {
68 SetApprovalStrategy(std::forward<ApprovalStrategyT>(value));
69 return *this;
70 }
72
74
77 inline int GetNumberOfApprovers() const { return m_numberOfApprovers; }
78 inline void SetNumberOfApprovers(int value) {
79 m_numberOfApproversHasBeenSet = true;
80 m_numberOfApprovers = value;
81 }
84 return *this;
85 }
87
89
93 inline const Aws::Vector<GetApprovalTeamResponseApprover>& GetApprovers() const { return m_approvers; }
94 template <typename ApproversT = Aws::Vector<GetApprovalTeamResponseApprover>>
95 void SetApprovers(ApproversT&& value) {
96 m_approversHasBeenSet = true;
97 m_approvers = std::forward<ApproversT>(value);
98 }
99 template <typename ApproversT = Aws::Vector<GetApprovalTeamResponseApprover>>
101 SetApprovers(std::forward<ApproversT>(value));
102 return *this;
103 }
104 template <typename ApproversT = GetApprovalTeamResponseApprover>
105 GetApprovalTeamResult& AddApprovers(ApproversT&& value) {
106 m_approversHasBeenSet = true;
107 m_approvers.emplace_back(std::forward<ApproversT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetArn() const { return m_arn; }
117 template <typename ArnT = Aws::String>
118 void SetArn(ArnT&& value) {
119 m_arnHasBeenSet = true;
120 m_arn = std::forward<ArnT>(value);
121 }
122 template <typename ArnT = Aws::String>
124 SetArn(std::forward<ArnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetDescription() const { return m_description; }
134 template <typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) {
136 m_descriptionHasBeenSet = true;
137 m_description = std::forward<DescriptionT>(value);
138 }
139 template <typename DescriptionT = Aws::String>
140 GetApprovalTeamResult& WithDescription(DescriptionT&& value) {
141 SetDescription(std::forward<DescriptionT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetName() const { return m_name; }
151 template <typename NameT = Aws::String>
152 void SetName(NameT&& value) {
153 m_nameHasBeenSet = true;
154 m_name = std::forward<NameT>(value);
155 }
156 template <typename NameT = Aws::String>
158 SetName(std::forward<NameT>(value));
159 return *this;
160 }
162
164
169 inline ApprovalTeamStatus GetStatus() const { return m_status; }
170 inline void SetStatus(ApprovalTeamStatus value) {
171 m_statusHasBeenSet = true;
172 m_status = value;
173 }
175 SetStatus(value);
176 return *this;
177 }
179
181
186 inline ApprovalTeamStatusCode GetStatusCode() const { return m_statusCode; }
188 m_statusCodeHasBeenSet = true;
189 m_statusCode = value;
190 }
192 SetStatusCode(value);
193 return *this;
194 }
196
198
201 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
202 template <typename StatusMessageT = Aws::String>
203 void SetStatusMessage(StatusMessageT&& value) {
204 m_statusMessageHasBeenSet = true;
205 m_statusMessage = std::forward<StatusMessageT>(value);
206 }
207 template <typename StatusMessageT = Aws::String>
208 GetApprovalTeamResult& WithStatusMessage(StatusMessageT&& value) {
209 SetStatusMessage(std::forward<StatusMessageT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetUpdateSessionArn() const { return m_updateSessionArn; }
219 template <typename UpdateSessionArnT = Aws::String>
220 void SetUpdateSessionArn(UpdateSessionArnT&& value) {
221 m_updateSessionArnHasBeenSet = true;
222 m_updateSessionArn = std::forward<UpdateSessionArnT>(value);
223 }
224 template <typename UpdateSessionArnT = Aws::String>
225 GetApprovalTeamResult& WithUpdateSessionArn(UpdateSessionArnT&& value) {
226 SetUpdateSessionArn(std::forward<UpdateSessionArnT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::String& GetVersionId() const { return m_versionId; }
236 template <typename VersionIdT = Aws::String>
237 void SetVersionId(VersionIdT&& value) {
238 m_versionIdHasBeenSet = true;
239 m_versionId = std::forward<VersionIdT>(value);
240 }
241 template <typename VersionIdT = Aws::String>
243 SetVersionId(std::forward<VersionIdT>(value));
244 return *this;
245 }
247
249
253 inline const Aws::Vector<PolicyReference>& GetPolicies() const { return m_policies; }
254 template <typename PoliciesT = Aws::Vector<PolicyReference>>
255 void SetPolicies(PoliciesT&& value) {
256 m_policiesHasBeenSet = true;
257 m_policies = std::forward<PoliciesT>(value);
258 }
259 template <typename PoliciesT = Aws::Vector<PolicyReference>>
261 SetPolicies(std::forward<PoliciesT>(value));
262 return *this;
263 }
264 template <typename PoliciesT = PolicyReference>
265 GetApprovalTeamResult& AddPolicies(PoliciesT&& value) {
266 m_policiesHasBeenSet = true;
267 m_policies.emplace_back(std::forward<PoliciesT>(value));
268 return *this;
269 }
271
273
276 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
277 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
278 void SetLastUpdateTime(LastUpdateTimeT&& value) {
279 m_lastUpdateTimeHasBeenSet = true;
280 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
281 }
282 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
283 GetApprovalTeamResult& WithLastUpdateTime(LastUpdateTimeT&& value) {
284 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
285 return *this;
286 }
288
290
294 inline const PendingUpdate& GetPendingUpdate() const { return m_pendingUpdate; }
295 template <typename PendingUpdateT = PendingUpdate>
296 void SetPendingUpdate(PendingUpdateT&& value) {
297 m_pendingUpdateHasBeenSet = true;
298 m_pendingUpdate = std::forward<PendingUpdateT>(value);
299 }
300 template <typename PendingUpdateT = PendingUpdate>
301 GetApprovalTeamResult& WithPendingUpdate(PendingUpdateT&& value) {
302 SetPendingUpdate(std::forward<PendingUpdateT>(value));
303 return *this;
304 }
306
308
309 inline const Aws::String& GetRequestId() const { return m_requestId; }
310 template <typename RequestIdT = Aws::String>
311 void SetRequestId(RequestIdT&& value) {
312 m_requestIdHasBeenSet = true;
313 m_requestId = std::forward<RequestIdT>(value);
314 }
315 template <typename RequestIdT = Aws::String>
317 SetRequestId(std::forward<RequestIdT>(value));
318 return *this;
319 }
321 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
322
323 private:
324 Aws::Utils::DateTime m_creationTime{};
325
326 ApprovalStrategyResponse m_approvalStrategy;
327
328 int m_numberOfApprovers{0};
329
331
332 Aws::String m_arn;
333
334 Aws::String m_description;
335
336 Aws::String m_name;
337
339
341
342 Aws::String m_statusMessage;
343
344 Aws::String m_updateSessionArn;
345
346 Aws::String m_versionId;
347
349
350 Aws::Utils::DateTime m_lastUpdateTime{};
351
352 PendingUpdate m_pendingUpdate;
353
354 Aws::String m_requestId;
355 Aws::Http::HttpResponseCode m_HttpResponseCode;
356 bool m_creationTimeHasBeenSet = false;
357 bool m_approvalStrategyHasBeenSet = false;
358 bool m_numberOfApproversHasBeenSet = false;
359 bool m_approversHasBeenSet = false;
360 bool m_arnHasBeenSet = false;
361 bool m_descriptionHasBeenSet = false;
362 bool m_nameHasBeenSet = false;
363 bool m_statusHasBeenSet = false;
364 bool m_statusCodeHasBeenSet = false;
365 bool m_statusMessageHasBeenSet = false;
366 bool m_updateSessionArnHasBeenSet = false;
367 bool m_versionIdHasBeenSet = false;
368 bool m_policiesHasBeenSet = false;
369 bool m_lastUpdateTimeHasBeenSet = false;
370 bool m_pendingUpdateHasBeenSet = false;
371 bool m_requestIdHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace MPA
376} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetApprovalTeamResult & WithStatusMessage(StatusMessageT &&value)
GetApprovalTeamResult & WithApprovers(ApproversT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const PendingUpdate & GetPendingUpdate() const
GetApprovalTeamResult & AddPolicies(PoliciesT &&value)
GetApprovalTeamResult & WithApprovalStrategy(ApprovalStrategyT &&value)
AWS_MPA_API GetApprovalTeamResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApprovalTeamResult & WithName(NameT &&value)
const ApprovalStrategyResponse & GetApprovalStrategy() const
void SetCreationTime(CreationTimeT &&value)
AWS_MPA_API GetApprovalTeamResult()=default
void SetStatusMessage(StatusMessageT &&value)
GetApprovalTeamResult & AddApprovers(ApproversT &&value)
const Aws::Vector< PolicyReference > & GetPolicies() const
void SetStatusCode(ApprovalTeamStatusCode value)
ApprovalTeamStatusCode GetStatusCode() const
void SetPendingUpdate(PendingUpdateT &&value)
const Aws::String & GetUpdateSessionArn() const
GetApprovalTeamResult & WithNumberOfApprovers(int value)
const Aws::Vector< GetApprovalTeamResponseApprover > & GetApprovers() const
void SetLastUpdateTime(LastUpdateTimeT &&value)
void SetApprovalStrategy(ApprovalStrategyT &&value)
GetApprovalTeamResult & WithVersionId(VersionIdT &&value)
GetApprovalTeamResult & WithDescription(DescriptionT &&value)
GetApprovalTeamResult & WithPendingUpdate(PendingUpdateT &&value)
GetApprovalTeamResult & WithPolicies(PoliciesT &&value)
GetApprovalTeamResult & WithCreationTime(CreationTimeT &&value)
GetApprovalTeamResult & WithLastUpdateTime(LastUpdateTimeT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
GetApprovalTeamResult & WithStatus(ApprovalTeamStatus value)
GetApprovalTeamResult & WithStatusCode(ApprovalTeamStatusCode value)
GetApprovalTeamResult & WithUpdateSessionArn(UpdateSessionArnT &&value)
AWS_MPA_API GetApprovalTeamResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUpdateSessionArn(UpdateSessionArnT &&value)
void SetStatus(ApprovalTeamStatus value)
GetApprovalTeamResult & WithArn(ArnT &&value)
GetApprovalTeamResult & WithRequestId(RequestIdT &&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