AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
HookResultSummary.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/HookCategory.h>
9#include <aws/cloudformation/model/HookFailureMode.h>
10#include <aws/cloudformation/model/HookInvocationPoint.h>
11#include <aws/cloudformation/model/HookStatus.h>
12#include <aws/cloudformation/model/ListHookResultsTargetType.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation {
26namespace Model {
27
35 public:
36 AWS_CLOUDFORMATION_API HookResultSummary() = default;
37 AWS_CLOUDFORMATION_API HookResultSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFORMATION_API HookResultSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline const Aws::String& GetHookResultId() const { return m_hookResultId; }
48 inline bool HookResultIdHasBeenSet() const { return m_hookResultIdHasBeenSet; }
49 template <typename HookResultIdT = Aws::String>
50 void SetHookResultId(HookResultIdT&& value) {
51 m_hookResultIdHasBeenSet = true;
52 m_hookResultId = std::forward<HookResultIdT>(value);
53 }
54 template <typename HookResultIdT = Aws::String>
55 HookResultSummary& WithHookResultId(HookResultIdT&& value) {
56 SetHookResultId(std::forward<HookResultIdT>(value));
57 return *this;
58 }
60
62
65 inline HookInvocationPoint GetInvocationPoint() const { return m_invocationPoint; }
66 inline bool InvocationPointHasBeenSet() const { return m_invocationPointHasBeenSet; }
68 m_invocationPointHasBeenSet = true;
69 m_invocationPoint = value;
70 }
72 SetInvocationPoint(value);
73 return *this;
74 }
76
78
81 inline HookFailureMode GetFailureMode() const { return m_failureMode; }
82 inline bool FailureModeHasBeenSet() const { return m_failureModeHasBeenSet; }
83 inline void SetFailureMode(HookFailureMode value) {
84 m_failureModeHasBeenSet = true;
85 m_failureMode = value;
86 }
88 SetFailureMode(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetTypeName() const { return m_typeName; }
98 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
99 template <typename TypeNameT = Aws::String>
100 void SetTypeName(TypeNameT&& value) {
101 m_typeNameHasBeenSet = true;
102 m_typeName = std::forward<TypeNameT>(value);
103 }
104 template <typename TypeNameT = Aws::String>
105 HookResultSummary& WithTypeName(TypeNameT&& value) {
106 SetTypeName(std::forward<TypeNameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
116 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
117 template <typename TypeVersionIdT = Aws::String>
118 void SetTypeVersionId(TypeVersionIdT&& value) {
119 m_typeVersionIdHasBeenSet = true;
120 m_typeVersionId = std::forward<TypeVersionIdT>(value);
121 }
122 template <typename TypeVersionIdT = Aws::String>
123 HookResultSummary& WithTypeVersionId(TypeVersionIdT&& value) {
124 SetTypeVersionId(std::forward<TypeVersionIdT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetTypeConfigurationVersionId() const { return m_typeConfigurationVersionId; }
134 inline bool TypeConfigurationVersionIdHasBeenSet() const { return m_typeConfigurationVersionIdHasBeenSet; }
135 template <typename TypeConfigurationVersionIdT = Aws::String>
136 void SetTypeConfigurationVersionId(TypeConfigurationVersionIdT&& value) {
137 m_typeConfigurationVersionIdHasBeenSet = true;
138 m_typeConfigurationVersionId = std::forward<TypeConfigurationVersionIdT>(value);
139 }
140 template <typename TypeConfigurationVersionIdT = Aws::String>
141 HookResultSummary& WithTypeConfigurationVersionId(TypeConfigurationVersionIdT&& value) {
142 SetTypeConfigurationVersionId(std::forward<TypeConfigurationVersionIdT>(value));
143 return *this;
144 }
146
148
156 inline HookStatus GetStatus() const { return m_status; }
157 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
158 inline void SetStatus(HookStatus value) {
159 m_statusHasBeenSet = true;
160 m_status = value;
161 }
163 SetStatus(value);
164 return *this;
165 }
167
169
174 inline const Aws::String& GetHookStatusReason() const { return m_hookStatusReason; }
175 inline bool HookStatusReasonHasBeenSet() const { return m_hookStatusReasonHasBeenSet; }
176 template <typename HookStatusReasonT = Aws::String>
177 void SetHookStatusReason(HookStatusReasonT&& value) {
178 m_hookStatusReasonHasBeenSet = true;
179 m_hookStatusReason = std::forward<HookStatusReasonT>(value);
180 }
181 template <typename HookStatusReasonT = Aws::String>
182 HookResultSummary& WithHookStatusReason(HookStatusReasonT&& value) {
183 SetHookStatusReason(std::forward<HookStatusReasonT>(value));
184 return *this;
185 }
187
189
194 inline const Aws::Utils::DateTime& GetInvokedAt() const { return m_invokedAt; }
195 inline bool InvokedAtHasBeenSet() const { return m_invokedAtHasBeenSet; }
196 template <typename InvokedAtT = Aws::Utils::DateTime>
197 void SetInvokedAt(InvokedAtT&& value) {
198 m_invokedAtHasBeenSet = true;
199 m_invokedAt = std::forward<InvokedAtT>(value);
200 }
201 template <typename InvokedAtT = Aws::Utils::DateTime>
202 HookResultSummary& WithInvokedAt(InvokedAtT&& value) {
203 SetInvokedAt(std::forward<InvokedAtT>(value));
204 return *this;
205 }
207
209
212 inline ListHookResultsTargetType GetTargetType() const { return m_targetType; }
213 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
215 m_targetTypeHasBeenSet = true;
216 m_targetType = value;
217 }
219 SetTargetType(value);
220 return *this;
221 }
223
225
228 inline const Aws::String& GetTargetId() const { return m_targetId; }
229 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
230 template <typename TargetIdT = Aws::String>
231 void SetTargetId(TargetIdT&& value) {
232 m_targetIdHasBeenSet = true;
233 m_targetId = std::forward<TargetIdT>(value);
234 }
235 template <typename TargetIdT = Aws::String>
236 HookResultSummary& WithTargetId(TargetIdT&& value) {
237 SetTargetId(std::forward<TargetIdT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::String& GetTypeArn() const { return m_typeArn; }
247 inline bool TypeArnHasBeenSet() const { return m_typeArnHasBeenSet; }
248 template <typename TypeArnT = Aws::String>
249 void SetTypeArn(TypeArnT&& value) {
250 m_typeArnHasBeenSet = true;
251 m_typeArn = std::forward<TypeArnT>(value);
252 }
253 template <typename TypeArnT = Aws::String>
254 HookResultSummary& WithTypeArn(TypeArnT&& value) {
255 SetTypeArn(std::forward<TypeArnT>(value));
256 return *this;
257 }
259
261
266 inline const Aws::String& GetHookExecutionTarget() const { return m_hookExecutionTarget; }
267 inline bool HookExecutionTargetHasBeenSet() const { return m_hookExecutionTargetHasBeenSet; }
268 template <typename HookExecutionTargetT = Aws::String>
269 void SetHookExecutionTarget(HookExecutionTargetT&& value) {
270 m_hookExecutionTargetHasBeenSet = true;
271 m_hookExecutionTarget = std::forward<HookExecutionTargetT>(value);
272 }
273 template <typename HookExecutionTargetT = Aws::String>
274 HookResultSummary& WithHookExecutionTarget(HookExecutionTargetT&& value) {
275 SetHookExecutionTarget(std::forward<HookExecutionTargetT>(value));
276 return *this;
277 }
279
281
285 inline HookCategory GetHookCategory() const { return m_hookCategory; }
286 inline bool HookCategoryHasBeenSet() const { return m_hookCategoryHasBeenSet; }
287 inline void SetHookCategory(HookCategory value) {
288 m_hookCategoryHasBeenSet = true;
289 m_hookCategory = value;
290 }
292 SetHookCategory(value);
293 return *this;
294 }
296 private:
297 Aws::String m_hookResultId;
298
300
302
303 Aws::String m_typeName;
304
305 Aws::String m_typeVersionId;
306
307 Aws::String m_typeConfigurationVersionId;
308
310
311 Aws::String m_hookStatusReason;
312
313 Aws::Utils::DateTime m_invokedAt{};
314
316
317 Aws::String m_targetId;
318
319 Aws::String m_typeArn;
320
321 Aws::String m_hookExecutionTarget;
322
323 HookCategory m_hookCategory{HookCategory::NOT_SET};
324 bool m_hookResultIdHasBeenSet = false;
325 bool m_invocationPointHasBeenSet = false;
326 bool m_failureModeHasBeenSet = false;
327 bool m_typeNameHasBeenSet = false;
328 bool m_typeVersionIdHasBeenSet = false;
329 bool m_typeConfigurationVersionIdHasBeenSet = false;
330 bool m_statusHasBeenSet = false;
331 bool m_hookStatusReasonHasBeenSet = false;
332 bool m_invokedAtHasBeenSet = false;
333 bool m_targetTypeHasBeenSet = false;
334 bool m_targetIdHasBeenSet = false;
335 bool m_typeArnHasBeenSet = false;
336 bool m_hookExecutionTargetHasBeenSet = false;
337 bool m_hookCategoryHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace CloudFormation
342} // namespace Aws
HookResultSummary & WithHookResultId(HookResultIdT &&value)
HookResultSummary & WithTargetType(ListHookResultsTargetType value)
const Aws::String & GetTypeConfigurationVersionId() const
HookResultSummary & WithTargetId(TargetIdT &&value)
void SetHookExecutionTarget(HookExecutionTargetT &&value)
AWS_CLOUDFORMATION_API HookResultSummary()=default
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
HookResultSummary & WithHookStatusReason(HookStatusReasonT &&value)
ListHookResultsTargetType GetTargetType() const
AWS_CLOUDFORMATION_API HookResultSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHookStatusReason(HookStatusReasonT &&value)
void SetInvocationPoint(HookInvocationPoint value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
HookResultSummary & WithTypeName(TypeNameT &&value)
HookResultSummary & WithTypeVersionId(TypeVersionIdT &&value)
HookResultSummary & WithStatus(HookStatus value)
HookResultSummary & WithTypeArn(TypeArnT &&value)
HookResultSummary & WithHookCategory(HookCategory value)
void SetTypeConfigurationVersionId(TypeConfigurationVersionIdT &&value)
void SetTargetType(ListHookResultsTargetType value)
HookResultSummary & WithInvokedAt(InvokedAtT &&value)
AWS_CLOUDFORMATION_API HookResultSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HookResultSummary & WithHookExecutionTarget(HookExecutionTargetT &&value)
HookResultSummary & WithFailureMode(HookFailureMode value)
HookResultSummary & WithInvocationPoint(HookInvocationPoint value)
HookResultSummary & WithTypeConfigurationVersionId(TypeConfigurationVersionIdT &&value)
const Aws::Utils::DateTime & GetInvokedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream