AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DescribeGeneratedTemplateResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/GeneratedTemplateStatus.h>
9#include <aws/cloudformation/model/ResourceDetail.h>
10#include <aws/cloudformation/model/ResponseMetadata.h>
11#include <aws/cloudformation/model/TemplateConfiguration.h>
12#include <aws/cloudformation/model/TemplateProgress.h>
13#include <aws/core/http/HttpResponse.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Xml {
26class XmlDocument;
27} // namespace Xml
28} // namespace Utils
29namespace CloudFormation {
30namespace Model {
32 public:
33 AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult() = default;
37
39
46 inline const Aws::String& GetGeneratedTemplateId() const { return m_generatedTemplateId; }
47 template <typename GeneratedTemplateIdT = Aws::String>
48 void SetGeneratedTemplateId(GeneratedTemplateIdT&& value) {
49 m_generatedTemplateIdHasBeenSet = true;
50 m_generatedTemplateId = std::forward<GeneratedTemplateIdT>(value);
51 }
52 template <typename GeneratedTemplateIdT = Aws::String>
54 SetGeneratedTemplateId(std::forward<GeneratedTemplateIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetGeneratedTemplateName() const { return m_generatedTemplateName; }
64 template <typename GeneratedTemplateNameT = Aws::String>
65 void SetGeneratedTemplateName(GeneratedTemplateNameT&& value) {
66 m_generatedTemplateNameHasBeenSet = true;
67 m_generatedTemplateName = std::forward<GeneratedTemplateNameT>(value);
68 }
69 template <typename GeneratedTemplateNameT = Aws::String>
71 SetGeneratedTemplateName(std::forward<GeneratedTemplateNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<ResourceDetail>& GetResources() const { return m_resources; }
82 template <typename ResourcesT = Aws::Vector<ResourceDetail>>
83 void SetResources(ResourcesT&& value) {
84 m_resourcesHasBeenSet = true;
85 m_resources = std::forward<ResourcesT>(value);
86 }
87 template <typename ResourcesT = Aws::Vector<ResourceDetail>>
89 SetResources(std::forward<ResourcesT>(value));
90 return *this;
91 }
92 template <typename ResourcesT = ResourceDetail>
94 m_resourcesHasBeenSet = true;
95 m_resources.emplace_back(std::forward<ResourcesT>(value));
96 return *this;
97 }
99
101
114 inline GeneratedTemplateStatus GetStatus() const { return m_status; }
116 m_statusHasBeenSet = true;
117 m_status = value;
118 }
120 SetStatus(value);
121 return *this;
122 }
124
126
130 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
131 template <typename StatusReasonT = Aws::String>
132 void SetStatusReason(StatusReasonT&& value) {
133 m_statusReasonHasBeenSet = true;
134 m_statusReason = std::forward<StatusReasonT>(value);
135 }
136 template <typename StatusReasonT = Aws::String>
138 SetStatusReason(std::forward<StatusReasonT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
148 template <typename CreationTimeT = Aws::Utils::DateTime>
149 void SetCreationTime(CreationTimeT&& value) {
150 m_creationTimeHasBeenSet = true;
151 m_creationTime = std::forward<CreationTimeT>(value);
152 }
153 template <typename CreationTimeT = Aws::Utils::DateTime>
155 SetCreationTime(std::forward<CreationTimeT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
165 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
166 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
167 m_lastUpdatedTimeHasBeenSet = true;
168 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
169 }
170 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
172 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
173 return *this;
174 }
176
178
181 inline const TemplateProgress& GetProgress() const { return m_progress; }
182 template <typename ProgressT = TemplateProgress>
183 void SetProgress(ProgressT&& value) {
184 m_progressHasBeenSet = true;
185 m_progress = std::forward<ProgressT>(value);
186 }
187 template <typename ProgressT = TemplateProgress>
189 SetProgress(std::forward<ProgressT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::String& GetStackId() const { return m_stackId; }
200 template <typename StackIdT = Aws::String>
201 void SetStackId(StackIdT&& value) {
202 m_stackIdHasBeenSet = true;
203 m_stackId = std::forward<StackIdT>(value);
204 }
205 template <typename StackIdT = Aws::String>
207 SetStackId(std::forward<StackIdT>(value));
208 return *this;
209 }
211
213
217 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
218 template <typename TemplateConfigurationT = TemplateConfiguration>
219 void SetTemplateConfiguration(TemplateConfigurationT&& value) {
220 m_templateConfigurationHasBeenSet = true;
221 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
222 }
223 template <typename TemplateConfigurationT = TemplateConfiguration>
225 SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value));
226 return *this;
227 }
229
231
235 inline int GetTotalWarnings() const { return m_totalWarnings; }
236 inline void SetTotalWarnings(int value) {
237 m_totalWarningsHasBeenSet = true;
238 m_totalWarnings = value;
239 }
241 SetTotalWarnings(value);
242 return *this;
243 }
245
247
248 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
249 template <typename ResponseMetadataT = ResponseMetadata>
250 void SetResponseMetadata(ResponseMetadataT&& value) {
251 m_responseMetadataHasBeenSet = true;
252 m_responseMetadata = std::forward<ResponseMetadataT>(value);
253 }
254 template <typename ResponseMetadataT = ResponseMetadata>
256 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
257 return *this;
258 }
260 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
261
262 private:
263 Aws::String m_generatedTemplateId;
264
265 Aws::String m_generatedTemplateName;
266
267 Aws::Vector<ResourceDetail> m_resources;
268
270
271 Aws::String m_statusReason;
272
273 Aws::Utils::DateTime m_creationTime{};
274
275 Aws::Utils::DateTime m_lastUpdatedTime{};
276
277 TemplateProgress m_progress;
278
279 Aws::String m_stackId;
280
281 TemplateConfiguration m_templateConfiguration;
282
283 int m_totalWarnings{0};
284
285 ResponseMetadata m_responseMetadata;
286 Aws::Http::HttpResponseCode m_HttpResponseCode;
287 bool m_generatedTemplateIdHasBeenSet = false;
288 bool m_generatedTemplateNameHasBeenSet = false;
289 bool m_resourcesHasBeenSet = false;
290 bool m_statusHasBeenSet = false;
291 bool m_statusReasonHasBeenSet = false;
292 bool m_creationTimeHasBeenSet = false;
293 bool m_lastUpdatedTimeHasBeenSet = false;
294 bool m_progressHasBeenSet = false;
295 bool m_stackIdHasBeenSet = false;
296 bool m_templateConfigurationHasBeenSet = false;
297 bool m_totalWarningsHasBeenSet = false;
298 bool m_responseMetadataHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace CloudFormation
303} // namespace Aws
AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeGeneratedTemplateResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
DescribeGeneratedTemplateResult & WithProgress(ProgressT &&value)
DescribeGeneratedTemplateResult & WithGeneratedTemplateName(GeneratedTemplateNameT &&value)
DescribeGeneratedTemplateResult & WithStatus(GeneratedTemplateStatus value)
DescribeGeneratedTemplateResult & AddResources(ResourcesT &&value)
DescribeGeneratedTemplateResult & WithGeneratedTemplateId(GeneratedTemplateIdT &&value)
DescribeGeneratedTemplateResult & WithResources(ResourcesT &&value)
DescribeGeneratedTemplateResult & WithCreationTime(CreationTimeT &&value)
AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult()=default
DescribeGeneratedTemplateResult & WithTemplateConfiguration(TemplateConfigurationT &&value)
AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeGeneratedTemplateResult & WithResponseMetadata(ResponseMetadataT &&value)
DescribeGeneratedTemplateResult & WithStackId(StackIdT &&value)
DescribeGeneratedTemplateResult & WithStatusReason(StatusReasonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument