AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetApprovalTeamResult.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/mpa/model/ApprovalStrategyResponse.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/mpa/model/ApprovalTeamStatus.h>
13#include <aws/mpa/model/ApprovalTeamStatusCode.h>
14#include <aws/mpa/model/PendingUpdate.h>
15#include <aws/mpa/model/GetApprovalTeamResponseApprover.h>
16#include <aws/mpa/model/PolicyReference.h>
17#include <utility>
18
19namespace Aws
20{
21template<typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils
25{
26namespace Json
27{
28 class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace MPA
32{
33namespace Model
34{
36 {
37 public:
38 AWS_MPA_API GetApprovalTeamResult() = default;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
48 template<typename CreationTimeT = Aws::Utils::DateTime>
49 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
50 template<typename CreationTimeT = Aws::Utils::DateTime>
51 GetApprovalTeamResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
53
55
59 inline const ApprovalStrategyResponse& GetApprovalStrategy() const { return m_approvalStrategy; }
60 template<typename ApprovalStrategyT = ApprovalStrategyResponse>
61 void SetApprovalStrategy(ApprovalStrategyT&& value) { m_approvalStrategyHasBeenSet = true; m_approvalStrategy = std::forward<ApprovalStrategyT>(value); }
62 template<typename ApprovalStrategyT = ApprovalStrategyResponse>
63 GetApprovalTeamResult& WithApprovalStrategy(ApprovalStrategyT&& value) { SetApprovalStrategy(std::forward<ApprovalStrategyT>(value)); return *this;}
65
67
70 inline int GetNumberOfApprovers() const { return m_numberOfApprovers; }
71 inline void SetNumberOfApprovers(int value) { m_numberOfApproversHasBeenSet = true; m_numberOfApprovers = value; }
72 inline GetApprovalTeamResult& WithNumberOfApprovers(int value) { SetNumberOfApprovers(value); return *this;}
74
76
80 inline const Aws::Vector<GetApprovalTeamResponseApprover>& GetApprovers() const { return m_approvers; }
81 template<typename ApproversT = Aws::Vector<GetApprovalTeamResponseApprover>>
82 void SetApprovers(ApproversT&& value) { m_approversHasBeenSet = true; m_approvers = std::forward<ApproversT>(value); }
83 template<typename ApproversT = Aws::Vector<GetApprovalTeamResponseApprover>>
84 GetApprovalTeamResult& WithApprovers(ApproversT&& value) { SetApprovers(std::forward<ApproversT>(value)); return *this;}
85 template<typename ApproversT = GetApprovalTeamResponseApprover>
86 GetApprovalTeamResult& AddApprovers(ApproversT&& value) { m_approversHasBeenSet = true; m_approvers.emplace_back(std::forward<ApproversT>(value)); return *this; }
88
90
93 inline const Aws::String& GetArn() const { return m_arn; }
94 template<typename ArnT = Aws::String>
95 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
96 template<typename ArnT = Aws::String>
97 GetApprovalTeamResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 template<typename DescriptionT = Aws::String>
106 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
107 template<typename DescriptionT = Aws::String>
108 GetApprovalTeamResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 template<typename NameT = Aws::String>
117 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
118 template<typename NameT = Aws::String>
119 GetApprovalTeamResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
121
123
128 inline ApprovalTeamStatus GetStatus() const { return m_status; }
129 inline void SetStatus(ApprovalTeamStatus value) { m_statusHasBeenSet = true; m_status = value; }
130 inline GetApprovalTeamResult& WithStatus(ApprovalTeamStatus value) { SetStatus(value); return *this;}
132
134
139 inline ApprovalTeamStatusCode GetStatusCode() const { return m_statusCode; }
140 inline void SetStatusCode(ApprovalTeamStatusCode value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
143
145
148 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
149 template<typename StatusMessageT = Aws::String>
150 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
151 template<typename StatusMessageT = Aws::String>
152 GetApprovalTeamResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
154
156
159 inline const Aws::String& GetUpdateSessionArn() const { return m_updateSessionArn; }
160 template<typename UpdateSessionArnT = Aws::String>
161 void SetUpdateSessionArn(UpdateSessionArnT&& value) { m_updateSessionArnHasBeenSet = true; m_updateSessionArn = std::forward<UpdateSessionArnT>(value); }
162 template<typename UpdateSessionArnT = Aws::String>
163 GetApprovalTeamResult& WithUpdateSessionArn(UpdateSessionArnT&& value) { SetUpdateSessionArn(std::forward<UpdateSessionArnT>(value)); return *this;}
165
167
170 inline const Aws::String& GetVersionId() const { return m_versionId; }
171 template<typename VersionIdT = Aws::String>
172 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
173 template<typename VersionIdT = Aws::String>
174 GetApprovalTeamResult& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
176
178
187 inline const Aws::Vector<PolicyReference>& GetPolicies() const { return m_policies; }
188 template<typename PoliciesT = Aws::Vector<PolicyReference>>
189 void SetPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies = std::forward<PoliciesT>(value); }
190 template<typename PoliciesT = Aws::Vector<PolicyReference>>
191 GetApprovalTeamResult& WithPolicies(PoliciesT&& value) { SetPolicies(std::forward<PoliciesT>(value)); return *this;}
192 template<typename PoliciesT = PolicyReference>
193 GetApprovalTeamResult& AddPolicies(PoliciesT&& value) { m_policiesHasBeenSet = true; m_policies.emplace_back(std::forward<PoliciesT>(value)); return *this; }
195
197
200 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
201 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
202 void SetLastUpdateTime(LastUpdateTimeT&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::forward<LastUpdateTimeT>(value); }
203 template<typename LastUpdateTimeT = Aws::Utils::DateTime>
204 GetApprovalTeamResult& WithLastUpdateTime(LastUpdateTimeT&& value) { SetLastUpdateTime(std::forward<LastUpdateTimeT>(value)); return *this;}
206
208
212 inline const PendingUpdate& GetPendingUpdate() const { return m_pendingUpdate; }
213 template<typename PendingUpdateT = PendingUpdate>
214 void SetPendingUpdate(PendingUpdateT&& value) { m_pendingUpdateHasBeenSet = true; m_pendingUpdate = std::forward<PendingUpdateT>(value); }
215 template<typename PendingUpdateT = PendingUpdate>
216 GetApprovalTeamResult& WithPendingUpdate(PendingUpdateT&& value) { SetPendingUpdate(std::forward<PendingUpdateT>(value)); return *this;}
218
220
221 inline const Aws::String& GetRequestId() const { return m_requestId; }
222 template<typename RequestIdT = Aws::String>
223 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
224 template<typename RequestIdT = Aws::String>
225 GetApprovalTeamResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
227 private:
228
229 Aws::Utils::DateTime m_creationTime{};
230 bool m_creationTimeHasBeenSet = false;
231
232 ApprovalStrategyResponse m_approvalStrategy;
233 bool m_approvalStrategyHasBeenSet = false;
234
235 int m_numberOfApprovers{0};
236 bool m_numberOfApproversHasBeenSet = false;
237
239 bool m_approversHasBeenSet = false;
240
241 Aws::String m_arn;
242 bool m_arnHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 Aws::String m_name;
248 bool m_nameHasBeenSet = false;
249
251 bool m_statusHasBeenSet = false;
252
254 bool m_statusCodeHasBeenSet = false;
255
256 Aws::String m_statusMessage;
257 bool m_statusMessageHasBeenSet = false;
258
259 Aws::String m_updateSessionArn;
260 bool m_updateSessionArnHasBeenSet = false;
261
262 Aws::String m_versionId;
263 bool m_versionIdHasBeenSet = false;
264
266 bool m_policiesHasBeenSet = false;
267
268 Aws::Utils::DateTime m_lastUpdateTime{};
269 bool m_lastUpdateTimeHasBeenSet = false;
270
271 PendingUpdate m_pendingUpdate;
272 bool m_pendingUpdateHasBeenSet = false;
273
274 Aws::String m_requestId;
275 bool m_requestIdHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace MPA
280} // 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