AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
ChangeSetSummary.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/ChangeSetStatus.h>
11#include <aws/context/model/StatusReason.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/crt/cbor/Cbor.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace Context {
25namespace Model {
26
34 public:
35 AWS_CONTEXT_API ChangeSetSummary() = default;
36 AWS_CONTEXT_API ChangeSetSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API ChangeSetSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
45 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
46 template <typename AgentContextIdT = Aws::String>
47 void SetAgentContextId(AgentContextIdT&& value) {
48 m_agentContextIdHasBeenSet = true;
49 m_agentContextId = std::forward<AgentContextIdT>(value);
50 }
51 template <typename AgentContextIdT = Aws::String>
52 ChangeSetSummary& WithAgentContextId(AgentContextIdT&& value) {
53 SetAgentContextId(std::forward<AgentContextIdT>(value));
54 return *this;
55 }
57
59
76 inline ChangeSetStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(ChangeSetStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 template <typename CreatedAtT = Aws::Utils::DateTime>
95 void SetCreatedAt(CreatedAtT&& value) {
96 m_createdAtHasBeenSet = true;
97 m_createdAt = std::forward<CreatedAtT>(value);
98 }
99 template <typename CreatedAtT = Aws::Utils::DateTime>
100 ChangeSetSummary& WithCreatedAt(CreatedAtT&& value) {
101 SetCreatedAt(std::forward<CreatedAtT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
112 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
113 template <typename UpdatedAtT = Aws::Utils::DateTime>
114 void SetUpdatedAt(UpdatedAtT&& value) {
115 m_updatedAtHasBeenSet = true;
116 m_updatedAt = std::forward<UpdatedAtT>(value);
117 }
118 template <typename UpdatedAtT = Aws::Utils::DateTime>
119 ChangeSetSummary& WithUpdatedAt(UpdatedAtT&& value) {
120 SetUpdatedAt(std::forward<UpdatedAtT>(value));
121 return *this;
122 }
124
126
134 inline AccessControl GetAccessControl() const { return m_accessControl; }
135 inline bool AccessControlHasBeenSet() const { return m_accessControlHasBeenSet; }
136 inline void SetAccessControl(AccessControl value) {
137 m_accessControlHasBeenSet = true;
138 m_accessControl = value;
139 }
141 SetAccessControl(value);
142 return *this;
143 }
145
147
160 inline Activity GetGeneratedBy() const { return m_generatedBy; }
161 inline bool GeneratedByHasBeenSet() const { return m_generatedByHasBeenSet; }
162 inline void SetGeneratedBy(Activity value) {
163 m_generatedByHasBeenSet = true;
164 m_generatedBy = value;
165 }
167 SetGeneratedBy(value);
168 return *this;
169 }
171
173
179 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
180 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
181 template <typename StatusReasonT = StatusReason>
182 void SetStatusReason(StatusReasonT&& value) {
183 m_statusReasonHasBeenSet = true;
184 m_statusReason = std::forward<StatusReasonT>(value);
185 }
186 template <typename StatusReasonT = StatusReason>
187 ChangeSetSummary& WithStatusReason(StatusReasonT&& value) {
188 SetStatusReason(std::forward<StatusReasonT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::String& GetId() const { return m_id; }
199 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
200 template <typename IdT = Aws::String>
201 void SetId(IdT&& value) {
202 m_idHasBeenSet = true;
203 m_id = std::forward<IdT>(value);
204 }
205 template <typename IdT = Aws::String>
206 ChangeSetSummary& WithId(IdT&& value) {
207 SetId(std::forward<IdT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_agentContextId;
213
215
216 Aws::Utils::DateTime m_createdAt{};
217
218 Aws::Utils::DateTime m_updatedAt{};
219
220 AccessControl m_accessControl{AccessControl::NOT_SET};
221
222 Activity m_generatedBy{Activity::NOT_SET};
223
224 StatusReason m_statusReason;
225
226 Aws::String m_id;
227 bool m_agentContextIdHasBeenSet = false;
228 bool m_statusHasBeenSet = false;
229 bool m_createdAtHasBeenSet = false;
230 bool m_updatedAtHasBeenSet = false;
231 bool m_accessControlHasBeenSet = false;
232 bool m_generatedByHasBeenSet = false;
233 bool m_statusReasonHasBeenSet = false;
234 bool m_idHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace Context
239} // namespace Aws
ChangeSetSummary & WithStatus(ChangeSetStatus value)
void SetAccessControl(AccessControl value)
AWS_CONTEXT_API ChangeSetSummary()=default
const Aws::String & GetId() const
ChangeSetSummary & WithGeneratedBy(Activity value)
ChangeSetSummary & WithAccessControl(AccessControl value)
void SetStatus(ChangeSetStatus value)
void SetAgentContextId(AgentContextIdT &&value)
const StatusReason & GetStatusReason() const
void SetCreatedAt(CreatedAtT &&value)
ChangeSetSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetStatusReason(StatusReasonT &&value)
const Aws::String & GetAgentContextId() const
ChangeSetSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_CONTEXT_API ChangeSetSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API ChangeSetSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ChangeSetSummary & WithAgentContextId(AgentContextIdT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ChangeSetSummary & WithStatusReason(StatusReasonT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
ChangeSetSummary & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String