AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeGeneratedTemplateResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudformation/model/GeneratedTemplateStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/cloudformation/model/TemplateProgress.h>
13#include <aws/cloudformation/model/TemplateConfiguration.h>
14#include <aws/cloudformation/model/ResponseMetadata.h>
15#include <aws/cloudformation/model/ResourceDetail.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Xml
26{
27 class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace CloudFormation
31{
32namespace Model
33{
35 {
36 public:
37 AWS_CLOUDFORMATION_API DescribeGeneratedTemplateResult() = default;
40
41
43
50 inline const Aws::String& GetGeneratedTemplateId() const { return m_generatedTemplateId; }
51 template<typename GeneratedTemplateIdT = Aws::String>
52 void SetGeneratedTemplateId(GeneratedTemplateIdT&& value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId = std::forward<GeneratedTemplateIdT>(value); }
53 template<typename GeneratedTemplateIdT = Aws::String>
54 DescribeGeneratedTemplateResult& WithGeneratedTemplateId(GeneratedTemplateIdT&& value) { SetGeneratedTemplateId(std::forward<GeneratedTemplateIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetGeneratedTemplateName() const { return m_generatedTemplateName; }
62 template<typename GeneratedTemplateNameT = Aws::String>
63 void SetGeneratedTemplateName(GeneratedTemplateNameT&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::forward<GeneratedTemplateNameT>(value); }
64 template<typename GeneratedTemplateNameT = Aws::String>
65 DescribeGeneratedTemplateResult& WithGeneratedTemplateName(GeneratedTemplateNameT&& value) { SetGeneratedTemplateName(std::forward<GeneratedTemplateNameT>(value)); return *this;}
67
69
73 inline const Aws::Vector<ResourceDetail>& GetResources() const { return m_resources; }
74 template<typename ResourcesT = Aws::Vector<ResourceDetail>>
75 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
76 template<typename ResourcesT = Aws::Vector<ResourceDetail>>
77 DescribeGeneratedTemplateResult& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
78 template<typename ResourcesT = ResourceDetail>
79 DescribeGeneratedTemplateResult& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
81
83
96 inline GeneratedTemplateStatus GetStatus() const { return m_status; }
97 inline void SetStatus(GeneratedTemplateStatus value) { m_statusHasBeenSet = true; m_status = value; }
100
102
106 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
107 template<typename StatusReasonT = Aws::String>
108 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
109 template<typename StatusReasonT = Aws::String>
110 DescribeGeneratedTemplateResult& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
118 template<typename CreationTimeT = Aws::Utils::DateTime>
119 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
120 template<typename CreationTimeT = Aws::Utils::DateTime>
121 DescribeGeneratedTemplateResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
129 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
130 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
131 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
132 DescribeGeneratedTemplateResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
134
136
139 inline const TemplateProgress& GetProgress() const { return m_progress; }
140 template<typename ProgressT = TemplateProgress>
141 void SetProgress(ProgressT&& value) { m_progressHasBeenSet = true; m_progress = std::forward<ProgressT>(value); }
142 template<typename ProgressT = TemplateProgress>
143 DescribeGeneratedTemplateResult& WithProgress(ProgressT&& value) { SetProgress(std::forward<ProgressT>(value)); return *this;}
145
147
151 inline const Aws::String& GetStackId() const { return m_stackId; }
152 template<typename StackIdT = Aws::String>
153 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
154 template<typename StackIdT = Aws::String>
155 DescribeGeneratedTemplateResult& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
157
159
163 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
164 template<typename TemplateConfigurationT = TemplateConfiguration>
165 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
166 template<typename TemplateConfigurationT = TemplateConfiguration>
167 DescribeGeneratedTemplateResult& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
169
171
175 inline int GetTotalWarnings() const { return m_totalWarnings; }
176 inline void SetTotalWarnings(int value) { m_totalWarningsHasBeenSet = true; m_totalWarnings = value; }
177 inline DescribeGeneratedTemplateResult& WithTotalWarnings(int value) { SetTotalWarnings(value); return *this;}
179
181
182 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
183 template<typename ResponseMetadataT = ResponseMetadata>
184 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
185 template<typename ResponseMetadataT = ResponseMetadata>
186 DescribeGeneratedTemplateResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
188 private:
189
190 Aws::String m_generatedTemplateId;
191 bool m_generatedTemplateIdHasBeenSet = false;
192
193 Aws::String m_generatedTemplateName;
194 bool m_generatedTemplateNameHasBeenSet = false;
195
196 Aws::Vector<ResourceDetail> m_resources;
197 bool m_resourcesHasBeenSet = false;
198
200 bool m_statusHasBeenSet = false;
201
202 Aws::String m_statusReason;
203 bool m_statusReasonHasBeenSet = false;
204
205 Aws::Utils::DateTime m_creationTime{};
206 bool m_creationTimeHasBeenSet = false;
207
208 Aws::Utils::DateTime m_lastUpdatedTime{};
209 bool m_lastUpdatedTimeHasBeenSet = false;
210
211 TemplateProgress m_progress;
212 bool m_progressHasBeenSet = false;
213
214 Aws::String m_stackId;
215 bool m_stackIdHasBeenSet = false;
216
217 TemplateConfiguration m_templateConfiguration;
218 bool m_templateConfigurationHasBeenSet = false;
219
220 int m_totalWarnings{0};
221 bool m_totalWarningsHasBeenSet = false;
222
223 ResponseMetadata m_responseMetadata;
224 bool m_responseMetadataHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace CloudFormation
229} // 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