AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetApprovalTeamResult.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/ApprovalStrategyResponse.h>
12#include <aws/mpa/model/ApprovalTeamStatus.h>
13#include <aws/mpa/model/ApprovalTeamStatusCode.h>
14#include <aws/mpa/model/GetApprovalTeamResponseApprover.h>
15#include <aws/mpa/model/PendingUpdate.h>
16#include <aws/mpa/model/PolicyReference.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace MPA {
30namespace Model {
32 public:
33 AWS_MPA_API GetApprovalTeamResult() = default;
36
38
41 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
42 template <typename CreationTimeT = Aws::Utils::DateTime>
43 void SetCreationTime(CreationTimeT&& value) {
44 m_creationTimeHasBeenSet = true;
45 m_creationTime = std::forward<CreationTimeT>(value);
46 }
47 template <typename CreationTimeT = Aws::Utils::DateTime>
48 GetApprovalTeamResult& WithCreationTime(CreationTimeT&& value) {
49 SetCreationTime(std::forward<CreationTimeT>(value));
50 return *this;
51 }
53
55
59 inline const ApprovalStrategyResponse& GetApprovalStrategy() const { return m_approvalStrategy; }
60 template <typename ApprovalStrategyT = ApprovalStrategyResponse>
61 void SetApprovalStrategy(ApprovalStrategyT&& value) {
62 m_approvalStrategyHasBeenSet = true;
63 m_approvalStrategy = std::forward<ApprovalStrategyT>(value);
64 }
65 template <typename ApprovalStrategyT = ApprovalStrategyResponse>
66 GetApprovalTeamResult& WithApprovalStrategy(ApprovalStrategyT&& value) {
67 SetApprovalStrategy(std::forward<ApprovalStrategyT>(value));
68 return *this;
69 }
71
73
76 inline int GetNumberOfApprovers() const { return m_numberOfApprovers; }
77 inline void SetNumberOfApprovers(int value) {
78 m_numberOfApproversHasBeenSet = true;
79 m_numberOfApprovers = value;
80 }
83 return *this;
84 }
86
88
92 inline const Aws::Vector<GetApprovalTeamResponseApprover>& GetApprovers() const { return m_approvers; }
93 template <typename ApproversT = Aws::Vector<GetApprovalTeamResponseApprover>>
94 void SetApprovers(ApproversT&& value) {
95 m_approversHasBeenSet = true;
96 m_approvers = std::forward<ApproversT>(value);
97 }
98 template <typename ApproversT = Aws::Vector<GetApprovalTeamResponseApprover>>
99 GetApprovalTeamResult& WithApprovers(ApproversT&& value) {
100 SetApprovers(std::forward<ApproversT>(value));
101 return *this;
102 }
103 template <typename ApproversT = GetApprovalTeamResponseApprover>
104 GetApprovalTeamResult& AddApprovers(ApproversT&& value) {
105 m_approversHasBeenSet = true;
106 m_approvers.emplace_back(std::forward<ApproversT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetArn() const { return m_arn; }
116 template <typename ArnT = Aws::String>
117 void SetArn(ArnT&& value) {
118 m_arnHasBeenSet = true;
119 m_arn = std::forward<ArnT>(value);
120 }
121 template <typename ArnT = Aws::String>
123 SetArn(std::forward<ArnT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetDescription() const { return m_description; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
139 GetApprovalTeamResult& WithDescription(DescriptionT&& value) {
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 template <typename NameT = Aws::String>
151 void SetName(NameT&& value) {
152 m_nameHasBeenSet = true;
153 m_name = std::forward<NameT>(value);
154 }
155 template <typename NameT = Aws::String>
157 SetName(std::forward<NameT>(value));
158 return *this;
159 }
161
163
168 inline ApprovalTeamStatus GetStatus() const { return m_status; }
169 inline void SetStatus(ApprovalTeamStatus value) {
170 m_statusHasBeenSet = true;
171 m_status = value;
172 }
174 SetStatus(value);
175 return *this;
176 }
178
180
185 inline ApprovalTeamStatusCode GetStatusCode() const { return m_statusCode; }
187 m_statusCodeHasBeenSet = true;
188 m_statusCode = value;
189 }
191 SetStatusCode(value);
192 return *this;
193 }
195
197
200 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
201 template <typename StatusMessageT = Aws::String>
202 void SetStatusMessage(StatusMessageT&& value) {
203 m_statusMessageHasBeenSet = true;
204 m_statusMessage = std::forward<StatusMessageT>(value);
205 }
206 template <typename StatusMessageT = Aws::String>
207 GetApprovalTeamResult& WithStatusMessage(StatusMessageT&& value) {
208 SetStatusMessage(std::forward<StatusMessageT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::String& GetUpdateSessionArn() const { return m_updateSessionArn; }
218 template <typename UpdateSessionArnT = Aws::String>
219 void SetUpdateSessionArn(UpdateSessionArnT&& value) {
220 m_updateSessionArnHasBeenSet = true;
221 m_updateSessionArn = std::forward<UpdateSessionArnT>(value);
222 }
223 template <typename UpdateSessionArnT = Aws::String>
224 GetApprovalTeamResult& WithUpdateSessionArn(UpdateSessionArnT&& value) {
225 SetUpdateSessionArn(std::forward<UpdateSessionArnT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::String& GetVersionId() const { return m_versionId; }
235 template <typename VersionIdT = Aws::String>
236 void SetVersionId(VersionIdT&& value) {
237 m_versionIdHasBeenSet = true;
238 m_versionId = std::forward<VersionIdT>(value);
239 }
240 template <typename VersionIdT = Aws::String>
242 SetVersionId(std::forward<VersionIdT>(value));
243 return *this;
244 }
246
248
257 inline const Aws::Vector<PolicyReference>& GetPolicies() const { return m_policies; }
258 template <typename PoliciesT = Aws::Vector<PolicyReference>>
259 void SetPolicies(PoliciesT&& value) {
260 m_policiesHasBeenSet = true;
261 m_policies = std::forward<PoliciesT>(value);
262 }
263 template <typename PoliciesT = Aws::Vector<PolicyReference>>
265 SetPolicies(std::forward<PoliciesT>(value));
266 return *this;
267 }
268 template <typename PoliciesT = PolicyReference>
269 GetApprovalTeamResult& AddPolicies(PoliciesT&& value) {
270 m_policiesHasBeenSet = true;
271 m_policies.emplace_back(std::forward<PoliciesT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
281 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
282 void SetLastUpdateTime(LastUpdateTimeT&& value) {
283 m_lastUpdateTimeHasBeenSet = true;
284 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
285 }
286 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
287 GetApprovalTeamResult& WithLastUpdateTime(LastUpdateTimeT&& value) {
288 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
289 return *this;
290 }
292
294
298 inline const PendingUpdate& GetPendingUpdate() const { return m_pendingUpdate; }
299 template <typename PendingUpdateT = PendingUpdate>
300 void SetPendingUpdate(PendingUpdateT&& value) {
301 m_pendingUpdateHasBeenSet = true;
302 m_pendingUpdate = std::forward<PendingUpdateT>(value);
303 }
304 template <typename PendingUpdateT = PendingUpdate>
305 GetApprovalTeamResult& WithPendingUpdate(PendingUpdateT&& value) {
306 SetPendingUpdate(std::forward<PendingUpdateT>(value));
307 return *this;
308 }
310
312
313 inline const Aws::String& GetRequestId() const { return m_requestId; }
314 template <typename RequestIdT = Aws::String>
315 void SetRequestId(RequestIdT&& value) {
316 m_requestIdHasBeenSet = true;
317 m_requestId = std::forward<RequestIdT>(value);
318 }
319 template <typename RequestIdT = Aws::String>
321 SetRequestId(std::forward<RequestIdT>(value));
322 return *this;
323 }
325 private:
326 Aws::Utils::DateTime m_creationTime{};
327
328 ApprovalStrategyResponse m_approvalStrategy;
329
330 int m_numberOfApprovers{0};
331
333
334 Aws::String m_arn;
335
336 Aws::String m_description;
337
338 Aws::String m_name;
339
341
343
344 Aws::String m_statusMessage;
345
346 Aws::String m_updateSessionArn;
347
348 Aws::String m_versionId;
349
351
352 Aws::Utils::DateTime m_lastUpdateTime{};
353
354 PendingUpdate m_pendingUpdate;
355
356 Aws::String m_requestId;
357 bool m_creationTimeHasBeenSet = false;
358 bool m_approvalStrategyHasBeenSet = false;
359 bool m_numberOfApproversHasBeenSet = false;
360 bool m_approversHasBeenSet = false;
361 bool m_arnHasBeenSet = false;
362 bool m_descriptionHasBeenSet = false;
363 bool m_nameHasBeenSet = false;
364 bool m_statusHasBeenSet = false;
365 bool m_statusCodeHasBeenSet = false;
366 bool m_statusMessageHasBeenSet = false;
367 bool m_updateSessionArnHasBeenSet = false;
368 bool m_versionIdHasBeenSet = false;
369 bool m_policiesHasBeenSet = false;
370 bool m_lastUpdateTimeHasBeenSet = false;
371 bool m_pendingUpdateHasBeenSet = false;
372 bool m_requestIdHasBeenSet = false;
373};
374
375} // namespace Model
376} // namespace MPA
377} // namespace Aws
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