AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
GetGeneratedTemplateResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/GeneratedTemplateStatus.h>
9#include <aws/cloudformation/model/ResponseMetadata.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace CloudFormation {
25namespace Model {
27 public:
28 AWS_CLOUDFORMATION_API GetGeneratedTemplateResult() = default;
31
33
46 inline GeneratedTemplateStatus GetStatus() const { return m_status; }
48 m_statusHasBeenSet = true;
49 m_status = value;
50 }
52 SetStatus(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
63 template <typename TemplateBodyT = Aws::String>
64 void SetTemplateBody(TemplateBodyT&& value) {
65 m_templateBodyHasBeenSet = true;
66 m_templateBody = std::forward<TemplateBodyT>(value);
67 }
68 template <typename TemplateBodyT = Aws::String>
70 SetTemplateBody(std::forward<TemplateBodyT>(value));
71 return *this;
72 }
74
76
77 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
78 template <typename ResponseMetadataT = ResponseMetadata>
79 void SetResponseMetadata(ResponseMetadataT&& value) {
80 m_responseMetadataHasBeenSet = true;
81 m_responseMetadata = std::forward<ResponseMetadataT>(value);
82 }
83 template <typename ResponseMetadataT = ResponseMetadata>
85 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
86 return *this;
87 }
89 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
90
91 private:
93
94 Aws::String m_templateBody;
95
96 ResponseMetadata m_responseMetadata;
97 Aws::Http::HttpResponseCode m_HttpResponseCode;
98 bool m_statusHasBeenSet = false;
99 bool m_templateBodyHasBeenSet = false;
100 bool m_responseMetadataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CloudFormation
105} // namespace Aws
AWS_CLOUDFORMATION_API GetGeneratedTemplateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetGeneratedTemplateResult & WithTemplateBody(TemplateBodyT &&value)
GetGeneratedTemplateResult & WithStatus(GeneratedTemplateStatus value)
AWS_CLOUDFORMATION_API GetGeneratedTemplateResult()=default
GetGeneratedTemplateResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_CLOUDFORMATION_API GetGeneratedTemplateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument