AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImageSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
11#include <aws/imagebuilder/model/BuildType.h>
12#include <aws/imagebuilder/model/ImageLoggingConfiguration.h>
13#include <aws/imagebuilder/model/ImageSource.h>
14#include <aws/imagebuilder/model/ImageState.h>
15#include <aws/imagebuilder/model/ImageType.h>
16#include <aws/imagebuilder/model/OutputResources.h>
17#include <aws/imagebuilder/model/Platform.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace imagebuilder {
29namespace Model {
30
37 public:
38 AWS_IMAGEBUILDER_API ImageSummary() = default;
39 AWS_IMAGEBUILDER_API ImageSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API ImageSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
55 ImageSummary& WithArn(ArnT&& value) {
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 ImageSummary& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
83 inline ImageType GetType() const { return m_type; }
84 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
85 inline void SetType(ImageType value) {
86 m_typeHasBeenSet = true;
87 m_type = value;
88 }
90 SetType(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetVersion() const { return m_version; }
100 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
101 template <typename VersionT = Aws::String>
102 void SetVersion(VersionT&& value) {
103 m_versionHasBeenSet = true;
104 m_version = std::forward<VersionT>(value);
105 }
106 template <typename VersionT = Aws::String>
107 ImageSummary& WithVersion(VersionT&& value) {
108 SetVersion(std::forward<VersionT>(value));
109 return *this;
110 }
112
114
117 inline Platform GetPlatform() const { return m_platform; }
118 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
119 inline void SetPlatform(Platform value) {
120 m_platformHasBeenSet = true;
121 m_platform = value;
122 }
124 SetPlatform(value);
125 return *this;
126 }
128
130
134 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
135 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
136 template <typename OsVersionT = Aws::String>
137 void SetOsVersion(OsVersionT&& value) {
138 m_osVersionHasBeenSet = true;
139 m_osVersion = std::forward<OsVersionT>(value);
140 }
141 template <typename OsVersionT = Aws::String>
142 ImageSummary& WithOsVersion(OsVersionT&& value) {
143 SetOsVersion(std::forward<OsVersionT>(value));
144 return *this;
145 }
147
149
152 inline const ImageState& GetState() const { return m_state; }
153 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
154 template <typename StateT = ImageState>
155 void SetState(StateT&& value) {
156 m_stateHasBeenSet = true;
157 m_state = std::forward<StateT>(value);
158 }
159 template <typename StateT = ImageState>
160 ImageSummary& WithState(StateT&& value) {
161 SetState(std::forward<StateT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetOwner() const { return m_owner; }
171 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
172 template <typename OwnerT = Aws::String>
173 void SetOwner(OwnerT&& value) {
174 m_ownerHasBeenSet = true;
175 m_owner = std::forward<OwnerT>(value);
176 }
177 template <typename OwnerT = Aws::String>
178 ImageSummary& WithOwner(OwnerT&& value) {
179 SetOwner(std::forward<OwnerT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
189 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
190 template <typename DateCreatedT = Aws::String>
191 void SetDateCreated(DateCreatedT&& value) {
192 m_dateCreatedHasBeenSet = true;
193 m_dateCreated = std::forward<DateCreatedT>(value);
194 }
195 template <typename DateCreatedT = Aws::String>
196 ImageSummary& WithDateCreated(DateCreatedT&& value) {
197 SetDateCreated(std::forward<DateCreatedT>(value));
198 return *this;
199 }
201
203
207 inline const OutputResources& GetOutputResources() const { return m_outputResources; }
208 inline bool OutputResourcesHasBeenSet() const { return m_outputResourcesHasBeenSet; }
209 template <typename OutputResourcesT = OutputResources>
210 void SetOutputResources(OutputResourcesT&& value) {
211 m_outputResourcesHasBeenSet = true;
212 m_outputResources = std::forward<OutputResourcesT>(value);
213 }
214 template <typename OutputResourcesT = OutputResources>
215 ImageSummary& WithOutputResources(OutputResourcesT&& value) {
216 SetOutputResources(std::forward<OutputResourcesT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
226 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
227 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 void SetTags(TagsT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags = std::forward<TagsT>(value);
231 }
232 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
233 ImageSummary& WithTags(TagsT&& value) {
234 SetTags(std::forward<TagsT>(value));
235 return *this;
236 }
237 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
238 ImageSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
239 m_tagsHasBeenSet = true;
240 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
241 return *this;
242 }
244
246
255 inline BuildType GetBuildType() const { return m_buildType; }
256 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
257 inline void SetBuildType(BuildType value) {
258 m_buildTypeHasBeenSet = true;
259 m_buildType = value;
260 }
262 SetBuildType(value);
263 return *this;
264 }
266
268
271 inline ImageSource GetImageSource() const { return m_imageSource; }
272 inline bool ImageSourceHasBeenSet() const { return m_imageSourceHasBeenSet; }
273 inline void SetImageSource(ImageSource value) {
274 m_imageSourceHasBeenSet = true;
275 m_imageSource = value;
276 }
278 SetImageSource(value);
279 return *this;
280 }
282
284
288 inline const Aws::Utils::DateTime& GetDeprecationTime() const { return m_deprecationTime; }
289 inline bool DeprecationTimeHasBeenSet() const { return m_deprecationTimeHasBeenSet; }
290 template <typename DeprecationTimeT = Aws::Utils::DateTime>
291 void SetDeprecationTime(DeprecationTimeT&& value) {
292 m_deprecationTimeHasBeenSet = true;
293 m_deprecationTime = std::forward<DeprecationTimeT>(value);
294 }
295 template <typename DeprecationTimeT = Aws::Utils::DateTime>
296 ImageSummary& WithDeprecationTime(DeprecationTimeT&& value) {
297 SetDeprecationTime(std::forward<DeprecationTimeT>(value));
298 return *this;
299 }
301
303
307 inline const Aws::String& GetLifecycleExecutionId() const { return m_lifecycleExecutionId; }
308 inline bool LifecycleExecutionIdHasBeenSet() const { return m_lifecycleExecutionIdHasBeenSet; }
309 template <typename LifecycleExecutionIdT = Aws::String>
310 void SetLifecycleExecutionId(LifecycleExecutionIdT&& value) {
311 m_lifecycleExecutionIdHasBeenSet = true;
312 m_lifecycleExecutionId = std::forward<LifecycleExecutionIdT>(value);
313 }
314 template <typename LifecycleExecutionIdT = Aws::String>
315 ImageSummary& WithLifecycleExecutionId(LifecycleExecutionIdT&& value) {
316 SetLifecycleExecutionId(std::forward<LifecycleExecutionIdT>(value));
317 return *this;
318 }
320
322
325 inline const ImageLoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
326 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
327 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
328 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
329 m_loggingConfigurationHasBeenSet = true;
330 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
331 }
332 template <typename LoggingConfigurationT = ImageLoggingConfiguration>
333 ImageSummary& WithLoggingConfiguration(LoggingConfigurationT&& value) {
334 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
335 return *this;
336 }
338 private:
339 Aws::String m_arn;
340
341 Aws::String m_name;
342
344
345 Aws::String m_version;
346
347 Platform m_platform{Platform::NOT_SET};
348
349 Aws::String m_osVersion;
350
351 ImageState m_state;
352
353 Aws::String m_owner;
354
355 Aws::String m_dateCreated;
356
357 OutputResources m_outputResources;
358
360
361 BuildType m_buildType{BuildType::NOT_SET};
362
363 ImageSource m_imageSource{ImageSource::NOT_SET};
364
365 Aws::Utils::DateTime m_deprecationTime{};
366
367 Aws::String m_lifecycleExecutionId;
368
369 ImageLoggingConfiguration m_loggingConfiguration;
370 bool m_arnHasBeenSet = false;
371 bool m_nameHasBeenSet = false;
372 bool m_typeHasBeenSet = false;
373 bool m_versionHasBeenSet = false;
374 bool m_platformHasBeenSet = false;
375 bool m_osVersionHasBeenSet = false;
376 bool m_stateHasBeenSet = false;
377 bool m_ownerHasBeenSet = false;
378 bool m_dateCreatedHasBeenSet = false;
379 bool m_outputResourcesHasBeenSet = false;
380 bool m_tagsHasBeenSet = false;
381 bool m_buildTypeHasBeenSet = false;
382 bool m_imageSourceHasBeenSet = false;
383 bool m_deprecationTimeHasBeenSet = false;
384 bool m_lifecycleExecutionIdHasBeenSet = false;
385 bool m_loggingConfigurationHasBeenSet = false;
386};
387
388} // namespace Model
389} // namespace imagebuilder
390} // namespace Aws
AWS_IMAGEBUILDER_API ImageSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetImageSource(ImageSource value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
ImageSummary & WithDateCreated(DateCreatedT &&value)
ImageSummary & WithTags(TagsT &&value)
ImageSummary & WithOsVersion(OsVersionT &&value)
const Aws::String & GetOwner() const
const Aws::Utils::DateTime & GetDeprecationTime() const
ImageSummary & WithOutputResources(OutputResourcesT &&value)
void SetOutputResources(OutputResourcesT &&value)
const Aws::String & GetDateCreated() const
void SetLoggingConfiguration(LoggingConfigurationT &&value)
const ImageLoggingConfiguration & GetLoggingConfiguration() const
void SetLifecycleExecutionId(LifecycleExecutionIdT &&value)
const ImageState & GetState() const
ImageSummary & WithImageSource(ImageSource value)
ImageSummary & WithLoggingConfiguration(LoggingConfigurationT &&value)
ImageSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetLifecycleExecutionId() const
ImageSummary & WithName(NameT &&value)
void SetOsVersion(OsVersionT &&value)
ImageSummary & WithType(ImageType value)
void SetDateCreated(DateCreatedT &&value)
ImageSummary & WithArn(ArnT &&value)
ImageSummary & WithBuildType(BuildType value)
ImageSummary & WithLifecycleExecutionId(LifecycleExecutionIdT &&value)
const Aws::String & GetVersion() const
AWS_IMAGEBUILDER_API ImageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API ImageSummary()=default
ImageSummary & WithState(StateT &&value)
ImageSummary & WithVersion(VersionT &&value)
void SetDeprecationTime(DeprecationTimeT &&value)
ImageSummary & WithDeprecationTime(DeprecationTimeT &&value)
ImageSummary & WithPlatform(Platform value)
const OutputResources & GetOutputResources() const
ImageSummary & WithOwner(OwnerT &&value)
const Aws::String & GetOsVersion() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue