AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ComponentVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
10#include <aws/imagebuilder/model/ComponentStatus.h>
11#include <aws/imagebuilder/model/ComponentType.h>
12#include <aws/imagebuilder/model/Platform.h>
13#include <aws/imagebuilder/model/ProductCodeListItem.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder {
25namespace Model {
26
34 public:
35 AWS_IMAGEBUILDER_API ComponentVersion() = default;
36 AWS_IMAGEBUILDER_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IMAGEBUILDER_API ComponentVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template <typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) {
56 m_arnHasBeenSet = true;
57 m_arn = std::forward<ArnT>(value);
58 }
59 template <typename ArnT = Aws::String>
60 ComponentVersion& WithArn(ArnT&& value) {
61 SetArn(std::forward<ArnT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
78 ComponentVersion& WithName(NameT&& value) {
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
101 inline const Aws::String& GetVersion() const { return m_version; }
102 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
103 template <typename VersionT = Aws::String>
104 void SetVersion(VersionT&& value) {
105 m_versionHasBeenSet = true;
106 m_version = std::forward<VersionT>(value);
107 }
108 template <typename VersionT = Aws::String>
109 ComponentVersion& WithVersion(VersionT&& value) {
110 SetVersion(std::forward<VersionT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template <typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) {
123 m_descriptionHasBeenSet = true;
124 m_description = std::forward<DescriptionT>(value);
125 }
126 template <typename DescriptionT = Aws::String>
127 ComponentVersion& WithDescription(DescriptionT&& value) {
128 SetDescription(std::forward<DescriptionT>(value));
129 return *this;
130 }
132
134
137 inline Platform GetPlatform() const { return m_platform; }
138 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
139 inline void SetPlatform(Platform value) {
140 m_platformHasBeenSet = true;
141 m_platform = value;
142 }
144 SetPlatform(value);
145 return *this;
146 }
148
150
155 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const { return m_supportedOsVersions; }
156 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
157 template <typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
158 void SetSupportedOsVersions(SupportedOsVersionsT&& value) {
159 m_supportedOsVersionsHasBeenSet = true;
160 m_supportedOsVersions = std::forward<SupportedOsVersionsT>(value);
161 }
162 template <typename SupportedOsVersionsT = Aws::Vector<Aws::String>>
163 ComponentVersion& WithSupportedOsVersions(SupportedOsVersionsT&& value) {
164 SetSupportedOsVersions(std::forward<SupportedOsVersionsT>(value));
165 return *this;
166 }
167 template <typename SupportedOsVersionsT = Aws::String>
168 ComponentVersion& AddSupportedOsVersions(SupportedOsVersionsT&& value) {
169 m_supportedOsVersionsHasBeenSet = true;
170 m_supportedOsVersions.emplace_back(std::forward<SupportedOsVersionsT>(value));
171 return *this;
172 }
174
176
180 inline ComponentType GetType() const { return m_type; }
181 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
182 inline void SetType(ComponentType value) {
183 m_typeHasBeenSet = true;
184 m_type = value;
185 }
187 SetType(value);
188 return *this;
189 }
191
193
196 inline const Aws::String& GetOwner() const { return m_owner; }
197 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
198 template <typename OwnerT = Aws::String>
199 void SetOwner(OwnerT&& value) {
200 m_ownerHasBeenSet = true;
201 m_owner = std::forward<OwnerT>(value);
202 }
203 template <typename OwnerT = Aws::String>
204 ComponentVersion& WithOwner(OwnerT&& value) {
205 SetOwner(std::forward<OwnerT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
215 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
216 template <typename DateCreatedT = Aws::String>
217 void SetDateCreated(DateCreatedT&& value) {
218 m_dateCreatedHasBeenSet = true;
219 m_dateCreated = std::forward<DateCreatedT>(value);
220 }
221 template <typename DateCreatedT = Aws::String>
222 ComponentVersion& WithDateCreated(DateCreatedT&& value) {
223 SetDateCreated(std::forward<DateCreatedT>(value));
224 return *this;
225 }
227
229
232 inline ComponentStatus GetStatus() const { return m_status; }
233 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
234 inline void SetStatus(ComponentStatus value) {
235 m_statusHasBeenSet = true;
236 m_status = value;
237 }
239 SetStatus(value);
240 return *this;
241 }
243
245
249 inline const Aws::Vector<ProductCodeListItem>& GetProductCodes() const { return m_productCodes; }
250 inline bool ProductCodesHasBeenSet() const { return m_productCodesHasBeenSet; }
251 template <typename ProductCodesT = Aws::Vector<ProductCodeListItem>>
252 void SetProductCodes(ProductCodesT&& value) {
253 m_productCodesHasBeenSet = true;
254 m_productCodes = std::forward<ProductCodesT>(value);
255 }
256 template <typename ProductCodesT = Aws::Vector<ProductCodeListItem>>
257 ComponentVersion& WithProductCodes(ProductCodesT&& value) {
258 SetProductCodes(std::forward<ProductCodesT>(value));
259 return *this;
260 }
261 template <typename ProductCodesT = ProductCodeListItem>
262 ComponentVersion& AddProductCodes(ProductCodesT&& value) {
263 m_productCodesHasBeenSet = true;
264 m_productCodes.emplace_back(std::forward<ProductCodesT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_arn;
270
271 Aws::String m_name;
272
273 Aws::String m_version;
274
275 Aws::String m_description;
276
277 Platform m_platform{Platform::NOT_SET};
278
279 Aws::Vector<Aws::String> m_supportedOsVersions;
280
282
283 Aws::String m_owner;
284
285 Aws::String m_dateCreated;
286
288
290 bool m_arnHasBeenSet = false;
291 bool m_nameHasBeenSet = false;
292 bool m_versionHasBeenSet = false;
293 bool m_descriptionHasBeenSet = false;
294 bool m_platformHasBeenSet = false;
295 bool m_supportedOsVersionsHasBeenSet = false;
296 bool m_typeHasBeenSet = false;
297 bool m_ownerHasBeenSet = false;
298 bool m_dateCreatedHasBeenSet = false;
299 bool m_statusHasBeenSet = false;
300 bool m_productCodesHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace imagebuilder
305} // namespace Aws
ComponentVersion & WithProductCodes(ProductCodesT &&value)
const Aws::Vector< ProductCodeListItem > & GetProductCodes() const
ComponentVersion & AddSupportedOsVersions(SupportedOsVersionsT &&value)
AWS_IMAGEBUILDER_API ComponentVersion()=default
void SetSupportedOsVersions(SupportedOsVersionsT &&value)
ComponentVersion & WithDateCreated(DateCreatedT &&value)
ComponentVersion & WithType(ComponentType value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentVersion & WithDescription(DescriptionT &&value)
ComponentVersion & WithVersion(VersionT &&value)
AWS_IMAGEBUILDER_API ComponentVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentVersion & WithStatus(ComponentStatus value)
ComponentVersion & WithOwner(OwnerT &&value)
ComponentVersion & AddProductCodes(ProductCodesT &&value)
ComponentVersion & WithName(NameT &&value)
ComponentVersion & WithPlatform(Platform value)
const Aws::Vector< Aws::String > & GetSupportedOsVersions() const
ComponentVersion & WithArn(ArnT &&value)
AWS_IMAGEBUILDER_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue)
void SetProductCodes(ProductCodesT &&value)
ComponentVersion & WithSupportedOsVersions(SupportedOsVersionsT &&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