AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TemplateSummary.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudformation/model/GeneratedTemplateStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFormation
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CLOUDFORMATION_API TemplateSummary();
37 AWS_CLOUDFORMATION_API TemplateSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFORMATION_API TemplateSummary& 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
43
45
52 inline const Aws::String& GetGeneratedTemplateId() const{ return m_generatedTemplateId; }
53 inline bool GeneratedTemplateIdHasBeenSet() const { return m_generatedTemplateIdHasBeenSet; }
54 inline void SetGeneratedTemplateId(const Aws::String& value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId = value; }
55 inline void SetGeneratedTemplateId(Aws::String&& value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId = std::move(value); }
56 inline void SetGeneratedTemplateId(const char* value) { m_generatedTemplateIdHasBeenSet = true; m_generatedTemplateId.assign(value); }
57 inline TemplateSummary& WithGeneratedTemplateId(const Aws::String& value) { SetGeneratedTemplateId(value); return *this;}
58 inline TemplateSummary& WithGeneratedTemplateId(Aws::String&& value) { SetGeneratedTemplateId(std::move(value)); return *this;}
59 inline TemplateSummary& WithGeneratedTemplateId(const char* value) { SetGeneratedTemplateId(value); return *this;}
61
63
66 inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; }
67 inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }
68 inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; }
69 inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); }
70 inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); }
72 inline TemplateSummary& WithGeneratedTemplateName(Aws::String&& value) { SetGeneratedTemplateName(std::move(value)); return *this;}
73 inline TemplateSummary& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;}
75
77
90 inline const GeneratedTemplateStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const GeneratedTemplateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(GeneratedTemplateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline TemplateSummary& WithStatus(const GeneratedTemplateStatus& value) { SetStatus(value); return *this;}
95 inline TemplateSummary& WithStatus(GeneratedTemplateStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
103 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
104 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
105 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
106 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
107 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
108 inline TemplateSummary& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
109 inline TemplateSummary& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
110 inline TemplateSummary& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
118 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
119 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
120 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
121 inline TemplateSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
122 inline TemplateSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
130 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
131 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
132 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
133 inline TemplateSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
134 inline TemplateSummary& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
136
138
142 inline int GetNumberOfResources() const{ return m_numberOfResources; }
143 inline bool NumberOfResourcesHasBeenSet() const { return m_numberOfResourcesHasBeenSet; }
144 inline void SetNumberOfResources(int value) { m_numberOfResourcesHasBeenSet = true; m_numberOfResources = value; }
145 inline TemplateSummary& WithNumberOfResources(int value) { SetNumberOfResources(value); return *this;}
147 private:
148
149 Aws::String m_generatedTemplateId;
150 bool m_generatedTemplateIdHasBeenSet = false;
151
152 Aws::String m_generatedTemplateName;
153 bool m_generatedTemplateNameHasBeenSet = false;
154
156 bool m_statusHasBeenSet = false;
157
158 Aws::String m_statusReason;
159 bool m_statusReasonHasBeenSet = false;
160
161 Aws::Utils::DateTime m_creationTime;
162 bool m_creationTimeHasBeenSet = false;
163
164 Aws::Utils::DateTime m_lastUpdatedTime;
165 bool m_lastUpdatedTimeHasBeenSet = false;
166
167 int m_numberOfResources;
168 bool m_numberOfResourcesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CloudFormation
173} // namespace Aws
TemplateSummary & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetGeneratedTemplateId(Aws::String &&value)
AWS_CLOUDFORMATION_API TemplateSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetGeneratedTemplateName() const
const Aws::String & GetStatusReason() const
TemplateSummary & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
void SetStatus(GeneratedTemplateStatus &&value)
void SetGeneratedTemplateName(Aws::String &&value)
TemplateSummary & WithStatusReason(const char *value)
TemplateSummary & WithStatusReason(const Aws::String &value)
AWS_CLOUDFORMATION_API TemplateSummary()
TemplateSummary & WithStatus(const GeneratedTemplateStatus &value)
TemplateSummary & WithStatus(GeneratedTemplateStatus &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetStatusReason(const Aws::String &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TemplateSummary & WithGeneratedTemplateName(const Aws::String &value)
AWS_CLOUDFORMATION_API TemplateSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
TemplateSummary & WithGeneratedTemplateId(const char *value)
TemplateSummary & WithCreationTime(const Aws::Utils::DateTime &value)
TemplateSummary & WithGeneratedTemplateName(const char *value)
TemplateSummary & WithGeneratedTemplateId(const Aws::String &value)
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetGeneratedTemplateName(const Aws::String &value)
void SetGeneratedTemplateId(const Aws::String &value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
const Aws::String & GetGeneratedTemplateId() const
TemplateSummary & WithCreationTime(Aws::Utils::DateTime &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TemplateSummary & WithGeneratedTemplateName(Aws::String &&value)
void SetStatus(const GeneratedTemplateStatus &value)
TemplateSummary & WithGeneratedTemplateId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreationTime() const
const GeneratedTemplateStatus & GetStatus() const
TemplateSummary & WithNumberOfResources(int value)
TemplateSummary & WithStatusReason(Aws::String &&value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream