AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 ServiceTemplateVersion& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
63 inline const Aws::Vector<CompatibleEnvironmentTemplate>& GetCompatibleEnvironmentTemplates() const { return m_compatibleEnvironmentTemplates; }
64 inline bool CompatibleEnvironmentTemplatesHasBeenSet() const { return m_compatibleEnvironmentTemplatesHasBeenSet; }
65 template<typename CompatibleEnvironmentTemplatesT = Aws::Vector<CompatibleEnvironmentTemplate>>
66 void SetCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates = std::forward<CompatibleEnvironmentTemplatesT>(value); }
67 template<typename CompatibleEnvironmentTemplatesT = Aws::Vector<CompatibleEnvironmentTemplate>>
68 ServiceTemplateVersion& WithCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { SetCompatibleEnvironmentTemplates(std::forward<CompatibleEnvironmentTemplatesT>(value)); return *this;}
69 template<typename CompatibleEnvironmentTemplatesT = CompatibleEnvironmentTemplate>
70 ServiceTemplateVersion& AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT&& value) { m_compatibleEnvironmentTemplatesHasBeenSet = true; m_compatibleEnvironmentTemplates.emplace_back(std::forward<CompatibleEnvironmentTemplatesT>(value)); return *this; }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template<typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
81 template<typename CreatedAtT = Aws::Utils::DateTime>
82 ServiceTemplateVersion& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template<typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
93 template<typename DescriptionT = Aws::String>
94 ServiceTemplateVersion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
102 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
103 template<typename LastModifiedAtT = Aws::Utils::DateTime>
104 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
105 template<typename LastModifiedAtT = Aws::Utils::DateTime>
106 ServiceTemplateVersion& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
108
110
114 inline const Aws::String& GetMajorVersion() const { return m_majorVersion; }
115 inline bool MajorVersionHasBeenSet() const { return m_majorVersionHasBeenSet; }
116 template<typename MajorVersionT = Aws::String>
117 void SetMajorVersion(MajorVersionT&& value) { m_majorVersionHasBeenSet = true; m_majorVersion = std::forward<MajorVersionT>(value); }
118 template<typename MajorVersionT = Aws::String>
119 ServiceTemplateVersion& WithMajorVersion(MajorVersionT&& value) { SetMajorVersion(std::forward<MajorVersionT>(value)); return *this;}
121
123
126 inline const Aws::String& GetMinorVersion() const { return m_minorVersion; }
127 inline bool MinorVersionHasBeenSet() const { return m_minorVersionHasBeenSet; }
128 template<typename MinorVersionT = Aws::String>
129 void SetMinorVersion(MinorVersionT&& value) { m_minorVersionHasBeenSet = true; m_minorVersion = std::forward<MinorVersionT>(value); }
130 template<typename MinorVersionT = Aws::String>
131 ServiceTemplateVersion& WithMinorVersion(MinorVersionT&& value) { SetMinorVersion(std::forward<MinorVersionT>(value)); return *this;}
133
135
138 inline const Aws::String& GetRecommendedMinorVersion() const { return m_recommendedMinorVersion; }
139 inline bool RecommendedMinorVersionHasBeenSet() const { return m_recommendedMinorVersionHasBeenSet; }
140 template<typename RecommendedMinorVersionT = Aws::String>
141 void SetRecommendedMinorVersion(RecommendedMinorVersionT&& value) { m_recommendedMinorVersionHasBeenSet = true; m_recommendedMinorVersion = std::forward<RecommendedMinorVersionT>(value); }
142 template<typename RecommendedMinorVersionT = Aws::String>
143 ServiceTemplateVersion& WithRecommendedMinorVersion(RecommendedMinorVersionT&& value) { SetRecommendedMinorVersion(std::forward<RecommendedMinorVersionT>(value)); return *this;}
145
147
150 inline const Aws::String& GetSchema() const { return m_schema; }
151 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
152 template<typename SchemaT = Aws::String>
153 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
154 template<typename SchemaT = Aws::String>
155 ServiceTemplateVersion& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
157
159
162 inline TemplateVersionStatus GetStatus() const { return m_status; }
163 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
164 inline void SetStatus(TemplateVersionStatus value) { m_statusHasBeenSet = true; m_status = value; }
165 inline ServiceTemplateVersion& WithStatus(TemplateVersionStatus value) { SetStatus(value); return *this;}
167
169
172 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
173 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
174 template<typename StatusMessageT = Aws::String>
175 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
176 template<typename StatusMessageT = Aws::String>
177 ServiceTemplateVersion& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
179
181
188 inline const Aws::Vector<ServiceTemplateSupportedComponentSourceType>& GetSupportedComponentSources() const { return m_supportedComponentSources; }
189 inline bool SupportedComponentSourcesHasBeenSet() const { return m_supportedComponentSourcesHasBeenSet; }
190 template<typename SupportedComponentSourcesT = Aws::Vector<ServiceTemplateSupportedComponentSourceType>>
191 void SetSupportedComponentSources(SupportedComponentSourcesT&& value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources = std::forward<SupportedComponentSourcesT>(value); }
192 template<typename SupportedComponentSourcesT = Aws::Vector<ServiceTemplateSupportedComponentSourceType>>
193 ServiceTemplateVersion& WithSupportedComponentSources(SupportedComponentSourcesT&& value) { SetSupportedComponentSources(std::forward<SupportedComponentSourcesT>(value)); return *this;}
194 inline ServiceTemplateVersion& AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType value) { m_supportedComponentSourcesHasBeenSet = true; m_supportedComponentSources.push_back(value); return *this; }
196
198
201 inline const Aws::String& GetTemplateName() const { return m_templateName; }
202 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
203 template<typename TemplateNameT = Aws::String>
204 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
205 template<typename TemplateNameT = Aws::String>
206 ServiceTemplateVersion& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
208 private:
209
210 Aws::String m_arn;
211 bool m_arnHasBeenSet = false;
212
213 Aws::Vector<CompatibleEnvironmentTemplate> m_compatibleEnvironmentTemplates;
214 bool m_compatibleEnvironmentTemplatesHasBeenSet = false;
215
216 Aws::Utils::DateTime m_createdAt{};
217 bool m_createdAtHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 Aws::Utils::DateTime m_lastModifiedAt{};
223 bool m_lastModifiedAtHasBeenSet = false;
224
225 Aws::String m_majorVersion;
226 bool m_majorVersionHasBeenSet = false;
227
228 Aws::String m_minorVersion;
229 bool m_minorVersionHasBeenSet = false;
230
231 Aws::String m_recommendedMinorVersion;
232 bool m_recommendedMinorVersionHasBeenSet = false;
233
234 Aws::String m_schema;
235 bool m_schemaHasBeenSet = false;
236
238 bool m_statusHasBeenSet = false;
239
240 Aws::String m_statusMessage;
241 bool m_statusMessageHasBeenSet = false;
242
244 bool m_supportedComponentSourcesHasBeenSet = false;
245
246 Aws::String m_templateName;
247 bool m_templateNameHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace Proton
252} // namespace Aws
AWS_PROTON_API ServiceTemplateVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API ServiceTemplateVersion()=default
ServiceTemplateVersion & WithSchema(SchemaT &&value)
const Aws::Vector< CompatibleEnvironmentTemplate > & GetCompatibleEnvironmentTemplates() const
ServiceTemplateVersion & WithCreatedAt(CreatedAtT &&value)
ServiceTemplateVersion & WithMinorVersion(MinorVersionT &&value)
void SetCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
ServiceTemplateVersion & WithCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
ServiceTemplateVersion & AddSupportedComponentSources(ServiceTemplateSupportedComponentSourceType value)
const Aws::Utils::DateTime & GetLastModifiedAt() const
ServiceTemplateVersion & WithSupportedComponentSources(SupportedComponentSourcesT &&value)
ServiceTemplateVersion & WithDescription(DescriptionT &&value)
const Aws::Vector< ServiceTemplateSupportedComponentSourceType > & GetSupportedComponentSources() const
void SetSupportedComponentSources(SupportedComponentSourcesT &&value)
ServiceTemplateVersion & AddCompatibleEnvironmentTemplates(CompatibleEnvironmentTemplatesT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(TemplateVersionStatus value)
void SetRecommendedMinorVersion(RecommendedMinorVersionT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
ServiceTemplateVersion & WithRecommendedMinorVersion(RecommendedMinorVersionT &&value)
ServiceTemplateVersion & WithMajorVersion(MajorVersionT &&value)
AWS_PROTON_API ServiceTemplateVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceTemplateVersion & WithStatus(TemplateVersionStatus value)
ServiceTemplateVersion & WithTemplateName(TemplateNameT &&value)
ServiceTemplateVersion & WithStatusMessage(StatusMessageT &&value)
ServiceTemplateVersion & WithLastModifiedAt(LastModifiedAtT &&value)
ServiceTemplateVersion & WithArn(ArnT &&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