AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CurationProposalSummary.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AccessControl.h>
9#include <aws/context/model/Activity.h>
10#include <aws/context/model/CurationProposalStatus.h>
11#include <aws/context/model/StatusReason.h>
12#include <aws/context/model/StatusReasonCode.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/crt/cbor/Cbor.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Context {
26namespace Model {
27
35 public:
36 AWS_CONTEXT_API CurationProposalSummary() = default;
37 AWS_CONTEXT_API CurationProposalSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CONTEXT_API CurationProposalSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
46 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
47 inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; }
48 template <typename ChangeSetIdT = Aws::String>
49 void SetChangeSetId(ChangeSetIdT&& value) {
50 m_changeSetIdHasBeenSet = true;
51 m_changeSetId = std::forward<ChangeSetIdT>(value);
52 }
53 template <typename ChangeSetIdT = Aws::String>
55 SetChangeSetId(std::forward<ChangeSetIdT>(value));
56 return *this;
57 }
59
61
78 inline const Aws::String& GetTitle() const { return m_title; }
79 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
80 template <typename TitleT = Aws::String>
81 void SetTitle(TitleT&& value) {
82 m_titleHasBeenSet = true;
83 m_title = std::forward<TitleT>(value);
84 }
85 template <typename TitleT = Aws::String>
87 SetTitle(std::forward<TitleT>(value));
88 return *this;
89 }
91
93
100 inline Activity GetGeneratedBy() const { return m_generatedBy; }
101 inline bool GeneratedByHasBeenSet() const { return m_generatedByHasBeenSet; }
102 inline void SetGeneratedBy(Activity value) {
103 m_generatedByHasBeenSet = true;
104 m_generatedBy = value;
105 }
107 SetGeneratedBy(value);
108 return *this;
109 }
111
113
117 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
118 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
119 template <typename RevisionIdT = Aws::String>
120 void SetRevisionId(RevisionIdT&& value) {
121 m_revisionIdHasBeenSet = true;
122 m_revisionId = std::forward<RevisionIdT>(value);
123 }
124 template <typename RevisionIdT = Aws::String>
126 SetRevisionId(std::forward<RevisionIdT>(value));
127 return *this;
128 }
130
132
153 inline CurationProposalStatus GetStatus() const { return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 m_statusHasBeenSet = true;
157 m_status = value;
158 }
160 SetStatus(value);
161 return *this;
162 }
164
166
176 inline StatusReasonCode GetStatusReasonCode() const { return m_statusReasonCode; }
177 inline bool StatusReasonCodeHasBeenSet() const { return m_statusReasonCodeHasBeenSet; }
179 m_statusReasonCodeHasBeenSet = true;
180 m_statusReasonCode = value;
181 }
183 SetStatusReasonCode(value);
184 return *this;
185 }
187
189
203 inline AccessControl GetAccessControl() const { return m_accessControl; }
204 inline bool AccessControlHasBeenSet() const { return m_accessControlHasBeenSet; }
205 inline void SetAccessControl(AccessControl value) {
206 m_accessControlHasBeenSet = true;
207 m_accessControl = value;
208 }
210 SetAccessControl(value);
211 return *this;
212 }
214
216
219 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
220 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
221 template <typename AgentContextIdT = Aws::String>
222 void SetAgentContextId(AgentContextIdT&& value) {
223 m_agentContextIdHasBeenSet = true;
224 m_agentContextId = std::forward<AgentContextIdT>(value);
225 }
226 template <typename AgentContextIdT = Aws::String>
227 CurationProposalSummary& WithAgentContextId(AgentContextIdT&& value) {
228 SetAgentContextId(std::forward<AgentContextIdT>(value));
229 return *this;
230 }
232
234
242 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
243 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
244 template <typename ExpiresAtT = Aws::Utils::DateTime>
245 void SetExpiresAt(ExpiresAtT&& value) {
246 m_expiresAtHasBeenSet = true;
247 m_expiresAt = std::forward<ExpiresAtT>(value);
248 }
249 template <typename ExpiresAtT = Aws::Utils::DateTime>
251 SetExpiresAt(std::forward<ExpiresAtT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
261 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
262 template <typename CreatedAtT = Aws::Utils::DateTime>
263 void SetCreatedAt(CreatedAtT&& value) {
264 m_createdAtHasBeenSet = true;
265 m_createdAt = std::forward<CreatedAtT>(value);
266 }
267 template <typename CreatedAtT = Aws::Utils::DateTime>
269 SetCreatedAt(std::forward<CreatedAtT>(value));
270 return *this;
271 }
273
275
280 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
281 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
282 template <typename UpdatedAtT = Aws::Utils::DateTime>
283 void SetUpdatedAt(UpdatedAtT&& value) {
284 m_updatedAtHasBeenSet = true;
285 m_updatedAt = std::forward<UpdatedAtT>(value);
286 }
287 template <typename UpdatedAtT = Aws::Utils::DateTime>
289 SetUpdatedAt(std::forward<UpdatedAtT>(value));
290 return *this;
291 }
293
295
299 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
300 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
301 template <typename StatusReasonT = StatusReason>
302 void SetStatusReason(StatusReasonT&& value) {
303 m_statusReasonHasBeenSet = true;
304 m_statusReason = std::forward<StatusReasonT>(value);
305 }
306 template <typename StatusReasonT = StatusReason>
308 SetStatusReason(std::forward<StatusReasonT>(value));
309 return *this;
310 }
312
314
318 inline const Aws::String& GetId() const { return m_id; }
319 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
320 template <typename IdT = Aws::String>
321 void SetId(IdT&& value) {
322 m_idHasBeenSet = true;
323 m_id = std::forward<IdT>(value);
324 }
325 template <typename IdT = Aws::String>
327 SetId(std::forward<IdT>(value));
328 return *this;
329 }
331 private:
332 Aws::String m_changeSetId;
333
334 Aws::String m_title;
335
336 Activity m_generatedBy{Activity::NOT_SET};
337
338 Aws::String m_revisionId;
339
341
343
344 AccessControl m_accessControl{AccessControl::NOT_SET};
345
346 Aws::String m_agentContextId;
347
348 Aws::Utils::DateTime m_expiresAt{};
349
350 Aws::Utils::DateTime m_createdAt{};
351
352 Aws::Utils::DateTime m_updatedAt{};
353
354 StatusReason m_statusReason;
355
356 Aws::String m_id;
357 bool m_changeSetIdHasBeenSet = false;
358 bool m_titleHasBeenSet = false;
359 bool m_generatedByHasBeenSet = false;
360 bool m_revisionIdHasBeenSet = false;
361 bool m_statusHasBeenSet = false;
362 bool m_statusReasonCodeHasBeenSet = false;
363 bool m_accessControlHasBeenSet = false;
364 bool m_agentContextIdHasBeenSet = false;
365 bool m_expiresAtHasBeenSet = false;
366 bool m_createdAtHasBeenSet = false;
367 bool m_updatedAtHasBeenSet = false;
368 bool m_statusReasonHasBeenSet = false;
369 bool m_idHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace Context
374} // namespace Aws
CurationProposalSummary & WithTitle(TitleT &&value)
CurationProposalSummary & WithAccessControl(AccessControl value)
CurationProposalSummary & WithGeneratedBy(Activity value)
CurationProposalSummary & WithAgentContextId(AgentContextIdT &&value)
CurationProposalSummary & WithChangeSetId(ChangeSetIdT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CurationProposalSummary & WithStatus(CurationProposalStatus value)
AWS_CONTEXT_API CurationProposalSummary()=default
CurationProposalSummary & WithRevisionId(RevisionIdT &&value)
AWS_CONTEXT_API CurationProposalSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetExpiresAt() const
CurationProposalSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
CurationProposalSummary & WithUpdatedAt(UpdatedAtT &&value)
CurationProposalSummary & WithCreatedAt(CreatedAtT &&value)
CurationProposalSummary & WithExpiresAt(ExpiresAtT &&value)
CurationProposalSummary & WithStatusReason(StatusReasonT &&value)
CurationProposalSummary & WithStatusReasonCode(StatusReasonCode value)
AWS_CONTEXT_API CurationProposalSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String