AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceTemplateVersion.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/proton/model/TemplateVersionStatus.h>
12#include <aws/proton/model/CompatibleEnvironmentTemplate.h>
13#include <aws/proton/model/ServiceTemplateSupportedComponentSourceType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Proton
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_PROTON_API ServiceTemplateVersion();
43 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const{ return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline ServiceTemplateVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline ServiceTemplateVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline ServiceTemplateVersion& WithArn(const char* value) { SetArn(value); return *this;}
59
61
65 inline const Aws::Vector<CompatibleEnvironmentTemplate>& GetCompatibleEnvironmentTemplates() const{ return m_compatibleEnvironmentTemplates; }
66 inline bool CompatibleEnvironmentTemplatesHasBeenSet() const { return m_compatibleEnvironmentTemplatesHasBeenSet; }
67 inline void SetCompatibleEnvironmentTemplates(const Aws::Vector<CompatibleEnvironmentTemplate>& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = value; }
68 inline void SetCompatibleEnvironmentTemplates(Aws::Vector<CompatibleEnvironmentTemplate>&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::move(value); }
71 inline ServiceTemplateVersion& AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplate& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(value); return *this; }
72 inline ServiceTemplateVersion& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplate&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
80 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
81 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
82 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
83 inline ServiceTemplateVersion& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
84 inline ServiceTemplateVersion& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline ServiceTemplateVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline ServiceTemplateVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline ServiceTemplateVersion& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; }
106 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
107 inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; }
108 inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); }
110 inline ServiceTemplateVersion& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;}
112
114
118 inline const Aws::String& GetMajorVersion() const{ return m_majorVersion; }
119 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
120 inline void SetMajorVersion(const Aws::String& value) { m_majorVersionHasBeenSet = true; m_majorVersion = value; }
121 inline void SetMajorVersion(Aws::String&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::move(value); }
122 inline void SetMajorVersion(const char* value) { m_majorVersionHasBeenSet = true; m_majorVersion.assign(value); }
123 inline ServiceTemplateVersion& WithMajorVersion(const Aws::String& value) { SetMajorVersion(value); return *this;}
124 inline ServiceTemplateVersion& WithMajorVersion(Aws::String&& value) { SetMajorVersion(std::move(value)); return *this;}
125 inline ServiceTemplateVersion& WithMajorVersion(const char* value) { SetMajorVersion(value); return *this;}
127
129
132 inline const Aws::String& GetMinorVersion() const{ return m_minorVersion; }
133 inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; }
134 inline void SetMinorVersion(const Aws::String& value) { m_minorVersionHasBeenSet = true; m_minorVersion = value; }
135 inline void SetMinorVersion(Aws::String&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::move(value); }
136 inline void SetMinorVersion(const char* value) { m_minorVersionHasBeenSet = true; m_minorVersion.assign(value); }
137 inline ServiceTemplateVersion& WithMinorVersion(const Aws::String& value) { SetMinorVersion(value); return *this;}
138 inline ServiceTemplateVersion& WithMinorVersion(Aws::String&& value) { SetMinorVersion(std::move(value)); return *this;}
139 inline ServiceTemplateVersion& WithMinorVersion(const char* value) { SetMinorVersion(value); return *this;}
141
143
146 inline const Aws::String& GetRecommendedMinorVersion() const{ return m_recommendedMinorVersion; }
147 inline bool RecommendedMinorVersionHasBeenSet() const { return m_recommendedMinorVersionHasBeenSet; }
148 inline void SetRecommendedMinorVersion(const Aws::String& value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion = value; }
149 inline void SetRecommendedMinorVersion(Aws::String&& value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion = std::move(value); }
150 inline void SetRecommendedMinorVersion(const char* value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion.assign(value); }
153 inline ServiceTemplateVersion& WithRecommendedMinorVersion(const char* value) { SetRecommendedMinorVersion(value); return *this;}
155
157
160 inline const Aws::String& GetSchema() const{ return m_schema; }
161 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
162 inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
163 inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
164 inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
165 inline ServiceTemplateVersion& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
166 inline ServiceTemplateVersion& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
167 inline ServiceTemplateVersion& WithSchema(const char* value) { SetSchema(value); return *this;}
169
171
174 inline const TemplateVersionStatus& GetStatus() const{ return m_status; }
175 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
176 inline void SetStatus(const TemplateVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
177 inline void SetStatus(TemplateVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
178 inline ServiceTemplateVersion& WithStatus(const TemplateVersionStatus& value) { SetStatus(value); return *this;}
179 inline ServiceTemplateVersion& WithStatus(TemplateVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
181
183
186 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
187 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
188 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
189 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
190 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
191 inline ServiceTemplateVersion& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
192 inline ServiceTemplateVersion& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
193 inline ServiceTemplateVersion& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
195
197
204 inline const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& GetSupportedComponentSources() const{ return m_supportedComponentSources; }
205 inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; }
206 inline void SetSupportedComponentSources(const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = value; }
207 inline void SetSupportedComponentSources(Aws::Vector<ServiceTemplateSupportedComponentSourceType>&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::move(value); }
210 inline ServiceTemplateVersion& AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; }
211 inline ServiceTemplateVersion& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(std::move(value)); return *this; }
213
215
218 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
219 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
220 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
221 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
222 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
223 inline ServiceTemplateVersion& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
224 inline ServiceTemplateVersion& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
225 inline ServiceTemplateVersion& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
227 private:
228
229 Aws::String m_arn;
230 bool m_arnHasBeenSet = false;
231
232 Aws::Vector<CompatibleEnvironmentTemplate> m_compatibleEnvironmentTemplates;
233 bool m_compatibleEnvironmentTemplatesHasBeenSet = false;
234
235 Aws::Utils::DateTime m_createdAt;
236 bool m_createdAtHasBeenSet = false;
237
238 Aws::String m_description;
239 bool m_descriptionHasBeenSet = false;
240
241 Aws::Utils::DateTime m_lastModifiedAt;
242 bool m_lastModifiedAtHasBeenSet = false;
243
244 Aws::String m_majorVersion;
245 bool m_majorVersionHasBeenSet = false;
246
247 Aws::String m_minorVersion;
248 bool m_minorVersionHasBeenSet = false;
249
250 Aws::String m_recommendedMinorVersion;
251 bool m_recommendedMinorVersionHasBeenSet = false;
252
253 Aws::String m_schema;
254 bool m_schemaHasBeenSet = false;
255
256 TemplateVersionStatus m_status;
257 bool m_statusHasBeenSet = false;
258
259 Aws::String m_statusMessage;
260 bool m_statusMessageHasBeenSet = false;
261
263 bool m_supportedComponentSourcesHasBeenSet = false;
264
265 Aws::String m_templateName;
266 bool m_templateNameHasBeenSet = false;
267 };
268
269} // namespace Model
270} // namespace Proton
271} // namespace Aws
ServiceTemplateVersion & WithSchema(const Aws::String &value)
ServiceTemplateVersion & WithArn(const char *value)
void SetSupportedComponentSources(const Aws::Vector< ServiceTemplateSupportedComponentSourceType > &value)
ServiceTemplateVersion & WithLastModifiedAt(const Aws::Utils::DateTime &value)
void SetLastModifiedAt(const Aws::Utils::DateTime &value)
ServiceTemplateVersion & WithDescription(const char *value)
void SetCompatibleEnvironmentTemplates(Aws::Vector< CompatibleEnvironmentTemplate > &&value)
void SetStatus(const TemplateVersionStatus &value)
AWS_PROTON_API ServiceTemplateVersion(Aws::Utils::Json::JsonView jsonValue)
ServiceTemplateVersion & WithArn(Aws::String &&value)
ServiceTemplateVersion & WithRecommendedMinorVersion(const Aws::String &value)
ServiceTemplateVersion & WithMajorVersion(const char *value)
ServiceTemplateVersion & WithLastModifiedAt(Aws::Utils::DateTime &&value)
ServiceTemplateVersion & WithStatusMessage(Aws::String &&value)
ServiceTemplateVersion & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< CompatibleEnvironmentTemplate > & GetCompatibleEnvironmentTemplates() const
const TemplateVersionStatus & GetStatus() const
ServiceTemplateVersion & WithDescription(const Aws::String &value)
ServiceTemplateVersion & WithCompatibleEnvironmentTemplates(const Aws::Vector< CompatibleEnvironmentTemplate > &value)
void SetRecommendedMinorVersion(const Aws::String &value)
ServiceTemplateVersion & WithArn(const Aws::String &value)
void SetLastModifiedAt(Aws::Utils::DateTime &&value)
ServiceTemplateVersion & WithDescription(Aws::String &&value)
ServiceTemplateVersion & AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplate &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetStatus(TemplateVersionStatus &&value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
void SetSupportedComponentSources(Aws::Vector< ServiceTemplateSupportedComponentSourceType > &&value)
const Aws::Vector< ServiceTemplateSupportedComponentSourceType > & GetSupportedComponentSources() const
ServiceTemplateVersion & WithSchema(Aws::String &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceTemplateVersion & WithStatusMessage(const char *value)
ServiceTemplateVersion & WithSchema(const char *value)
void SetCompatibleEnvironmentTemplates(const Aws::Vector< CompatibleEnvironmentTemplate > &value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceTemplateVersion & AddSupportedComponentSources(const ServiceTemplateSupportedComponentSourceType &value)
ServiceTemplateVersion & WithMinorVersion(Aws::String &&value)
ServiceTemplateVersion & WithMajorVersion(const Aws::String &value)
ServiceTemplateVersion & WithRecommendedMinorVersion(Aws::String &&value)
AWS_PROTON_API ServiceTemplateVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceTemplateVersion & WithRecommendedMinorVersion(const char *value)
ServiceTemplateVersion & WithTemplateName(Aws::String &&value)
ServiceTemplateVersion & WithMinorVersion(const char *value)
ServiceTemplateVersion & WithStatusMessage(const Aws::String &value)
ServiceTemplateVersion & WithSupportedComponentSources(Aws::Vector< ServiceTemplateSupportedComponentSourceType > &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
ServiceTemplateVersion & WithCreatedAt(const Aws::Utils::DateTime &value)
ServiceTemplateVersion & WithSupportedComponentSources(const Aws::Vector< ServiceTemplateSupportedComponentSourceType > &value)
ServiceTemplateVersion & WithTemplateName(const Aws::String &value)
ServiceTemplateVersion & AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType &&value)
ServiceTemplateVersion & WithTemplateName(const char *value)
ServiceTemplateVersion & WithMinorVersion(const Aws::String &value)
ServiceTemplateVersion & WithCompatibleEnvironmentTemplates(Aws::Vector< CompatibleEnvironmentTemplate > &&value)
ServiceTemplateVersion & WithStatus(const TemplateVersionStatus &value)
ServiceTemplateVersion & AddCompatibleEnvironmentTemplates(const CompatibleEnvironmentTemplate &value)
ServiceTemplateVersion & WithMajorVersion(Aws::String &&value)
ServiceTemplateVersion & WithStatus(TemplateVersionStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue