AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
GetHookResultResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/Annotation.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/HookTarget.h>
13#include <aws/cloudformation/model/ResponseMetadata.h>
14#include <aws/core/http/HttpResponse.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Xml {
27class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace CloudFormation {
31namespace Model {
33 public:
34 AWS_CLOUDFORMATION_API GetHookResultResult() = default;
37
39
42 inline const Aws::String& GetHookResultId() const { return m_hookResultId; }
43 template <typename HookResultIdT = Aws::String>
44 void SetHookResultId(HookResultIdT&& value) {
45 m_hookResultIdHasBeenSet = true;
46 m_hookResultId = std::forward<HookResultIdT>(value);
47 }
48 template <typename HookResultIdT = Aws::String>
49 GetHookResultResult& WithHookResultId(HookResultIdT&& value) {
50 SetHookResultId(std::forward<HookResultIdT>(value));
51 return *this;
52 }
54
56
59 inline HookInvocationPoint GetInvocationPoint() const { return m_invocationPoint; }
61 m_invocationPointHasBeenSet = true;
62 m_invocationPoint = value;
63 }
65 SetInvocationPoint(value);
66 return *this;
67 }
69
71
74 inline HookFailureMode GetFailureMode() const { return m_failureMode; }
75 inline void SetFailureMode(HookFailureMode value) {
76 m_failureModeHasBeenSet = true;
77 m_failureMode = value;
78 }
80 SetFailureMode(value);
81 return *this;
82 }
84
86
89 inline const Aws::String& GetTypeName() const { return m_typeName; }
90 template <typename TypeNameT = Aws::String>
91 void SetTypeName(TypeNameT&& value) {
92 m_typeNameHasBeenSet = true;
93 m_typeName = std::forward<TypeNameT>(value);
94 }
95 template <typename TypeNameT = Aws::String>
96 GetHookResultResult& WithTypeName(TypeNameT&& value) {
97 SetTypeName(std::forward<TypeNameT>(value));
98 return *this;
99 }
101
103
110 inline const Aws::String& GetOriginalTypeName() const { return m_originalTypeName; }
111 template <typename OriginalTypeNameT = Aws::String>
112 void SetOriginalTypeName(OriginalTypeNameT&& value) {
113 m_originalTypeNameHasBeenSet = true;
114 m_originalTypeName = std::forward<OriginalTypeNameT>(value);
115 }
116 template <typename OriginalTypeNameT = Aws::String>
117 GetHookResultResult& WithOriginalTypeName(OriginalTypeNameT&& value) {
118 SetOriginalTypeName(std::forward<OriginalTypeNameT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
128 template <typename TypeVersionIdT = Aws::String>
129 void SetTypeVersionId(TypeVersionIdT&& value) {
130 m_typeVersionIdHasBeenSet = true;
131 m_typeVersionId = std::forward<TypeVersionIdT>(value);
132 }
133 template <typename TypeVersionIdT = Aws::String>
134 GetHookResultResult& WithTypeVersionId(TypeVersionIdT&& value) {
135 SetTypeVersionId(std::forward<TypeVersionIdT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetTypeConfigurationVersionId() const { return m_typeConfigurationVersionId; }
146 template <typename TypeConfigurationVersionIdT = Aws::String>
147 void SetTypeConfigurationVersionId(TypeConfigurationVersionIdT&& value) {
148 m_typeConfigurationVersionIdHasBeenSet = true;
149 m_typeConfigurationVersionId = std::forward<TypeConfigurationVersionIdT>(value);
150 }
151 template <typename TypeConfigurationVersionIdT = Aws::String>
152 GetHookResultResult& WithTypeConfigurationVersionId(TypeConfigurationVersionIdT&& value) {
153 SetTypeConfigurationVersionId(std::forward<TypeConfigurationVersionIdT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetTypeArn() const { return m_typeArn; }
163 template <typename TypeArnT = Aws::String>
164 void SetTypeArn(TypeArnT&& value) {
165 m_typeArnHasBeenSet = true;
166 m_typeArn = std::forward<TypeArnT>(value);
167 }
168 template <typename TypeArnT = Aws::String>
169 GetHookResultResult& WithTypeArn(TypeArnT&& value) {
170 SetTypeArn(std::forward<TypeArnT>(value));
171 return *this;
172 }
174
176
184 inline HookStatus GetStatus() const { return m_status; }
185 inline void SetStatus(HookStatus value) {
186 m_statusHasBeenSet = true;
187 m_status = value;
188 }
190 SetStatus(value);
191 return *this;
192 }
194
196
200 inline const Aws::String& GetHookStatusReason() const { return m_hookStatusReason; }
201 template <typename HookStatusReasonT = Aws::String>
202 void SetHookStatusReason(HookStatusReasonT&& value) {
203 m_hookStatusReasonHasBeenSet = true;
204 m_hookStatusReason = std::forward<HookStatusReasonT>(value);
205 }
206 template <typename HookStatusReasonT = Aws::String>
207 GetHookResultResult& WithHookStatusReason(HookStatusReasonT&& value) {
208 SetHookStatusReason(std::forward<HookStatusReasonT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetInvokedAt() const { return m_invokedAt; }
218 template <typename InvokedAtT = Aws::Utils::DateTime>
219 void SetInvokedAt(InvokedAtT&& value) {
220 m_invokedAtHasBeenSet = true;
221 m_invokedAt = std::forward<InvokedAtT>(value);
222 }
223 template <typename InvokedAtT = Aws::Utils::DateTime>
224 GetHookResultResult& WithInvokedAt(InvokedAtT&& value) {
225 SetInvokedAt(std::forward<InvokedAtT>(value));
226 return *this;
227 }
229
231
234 inline const HookTarget& GetTarget() const { return m_target; }
235 template <typename TargetT = HookTarget>
236 void SetTarget(TargetT&& value) {
237 m_targetHasBeenSet = true;
238 m_target = std::forward<TargetT>(value);
239 }
240 template <typename TargetT = HookTarget>
241 GetHookResultResult& WithTarget(TargetT&& value) {
242 SetTarget(std::forward<TargetT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::Vector<Annotation>& GetAnnotations() const { return m_annotations; }
253 template <typename AnnotationsT = Aws::Vector<Annotation>>
254 void SetAnnotations(AnnotationsT&& value) {
255 m_annotationsHasBeenSet = true;
256 m_annotations = std::forward<AnnotationsT>(value);
257 }
258 template <typename AnnotationsT = Aws::Vector<Annotation>>
259 GetHookResultResult& WithAnnotations(AnnotationsT&& value) {
260 SetAnnotations(std::forward<AnnotationsT>(value));
261 return *this;
262 }
263 template <typename AnnotationsT = Annotation>
264 GetHookResultResult& AddAnnotations(AnnotationsT&& value) {
265 m_annotationsHasBeenSet = true;
266 m_annotations.emplace_back(std::forward<AnnotationsT>(value));
267 return *this;
268 }
270
272
273 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
274 template <typename ResponseMetadataT = ResponseMetadata>
275 void SetResponseMetadata(ResponseMetadataT&& value) {
276 m_responseMetadataHasBeenSet = true;
277 m_responseMetadata = std::forward<ResponseMetadataT>(value);
278 }
279 template <typename ResponseMetadataT = ResponseMetadata>
280 GetHookResultResult& WithResponseMetadata(ResponseMetadataT&& value) {
281 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
282 return *this;
283 }
285 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
286
287 private:
288 Aws::String m_hookResultId;
289
291
293
294 Aws::String m_typeName;
295
296 Aws::String m_originalTypeName;
297
298 Aws::String m_typeVersionId;
299
300 Aws::String m_typeConfigurationVersionId;
301
302 Aws::String m_typeArn;
303
305
306 Aws::String m_hookStatusReason;
307
308 Aws::Utils::DateTime m_invokedAt{};
309
310 HookTarget m_target;
311
312 Aws::Vector<Annotation> m_annotations;
313
314 ResponseMetadata m_responseMetadata;
315 Aws::Http::HttpResponseCode m_HttpResponseCode;
316 bool m_hookResultIdHasBeenSet = false;
317 bool m_invocationPointHasBeenSet = false;
318 bool m_failureModeHasBeenSet = false;
319 bool m_typeNameHasBeenSet = false;
320 bool m_originalTypeNameHasBeenSet = false;
321 bool m_typeVersionIdHasBeenSet = false;
322 bool m_typeConfigurationVersionIdHasBeenSet = false;
323 bool m_typeArnHasBeenSet = false;
324 bool m_statusHasBeenSet = false;
325 bool m_hookStatusReasonHasBeenSet = false;
326 bool m_invokedAtHasBeenSet = false;
327 bool m_targetHasBeenSet = false;
328 bool m_annotationsHasBeenSet = false;
329 bool m_responseMetadataHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace CloudFormation
334} // namespace Aws
GetHookResultResult & WithTypeConfigurationVersionId(TypeConfigurationVersionIdT &&value)
GetHookResultResult & WithTypeVersionId(TypeVersionIdT &&value)
GetHookResultResult & WithTarget(TargetT &&value)
GetHookResultResult & WithHookStatusReason(HookStatusReasonT &&value)
GetHookResultResult & WithInvocationPoint(HookInvocationPoint value)
GetHookResultResult & WithResponseMetadata(ResponseMetadataT &&value)
void SetInvocationPoint(HookInvocationPoint value)
GetHookResultResult & WithFailureMode(HookFailureMode value)
GetHookResultResult & WithTypeArn(TypeArnT &&value)
AWS_CLOUDFORMATION_API GetHookResultResult()=default
const ResponseMetadata & GetResponseMetadata() const
GetHookResultResult & WithOriginalTypeName(OriginalTypeNameT &&value)
void SetHookStatusReason(HookStatusReasonT &&value)
GetHookResultResult & WithAnnotations(AnnotationsT &&value)
const Aws::Utils::DateTime & GetInvokedAt() const
void SetTypeConfigurationVersionId(TypeConfigurationVersionIdT &&value)
void SetOriginalTypeName(OriginalTypeNameT &&value)
GetHookResultResult & WithHookResultId(HookResultIdT &&value)
GetHookResultResult & AddAnnotations(AnnotationsT &&value)
GetHookResultResult & WithInvokedAt(InvokedAtT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CLOUDFORMATION_API GetHookResultResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
GetHookResultResult & WithStatus(HookStatus value)
const Aws::Vector< Annotation > & GetAnnotations() const
GetHookResultResult & WithTypeName(TypeNameT &&value)
AWS_CLOUDFORMATION_API GetHookResultResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument