AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImageSummary.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/ImageType.h>
10#include <aws/imagebuilder/model/Platform.h>
11#include <aws/imagebuilder/model/ImageState.h>
12#include <aws/imagebuilder/model/OutputResources.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/imagebuilder/model/BuildType.h>
15#include <aws/imagebuilder/model/ImageSource.h>
16#include <aws/core/utils/DateTime.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace imagebuilder
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_IMAGEBUILDER_API ImageSummary() = default;
43 AWS_IMAGEBUILDER_API ImageSummary(Aws::Utils::Json::JsonView jsonValue);
44 AWS_IMAGEBUILDER_API ImageSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 ImageSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 ImageSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline ImageType GetType() const { return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(ImageType value) { m_typeHasBeenSet = true; m_type = value; }
79 inline ImageSummary& WithType(ImageType value) { SetType(value); return *this;}
81
83
86 inline const Aws::String& GetVersion() const { return m_version; }
87 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
88 template<typename VersionT = Aws::String>
89 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
90 template<typename VersionT = Aws::String>
91 ImageSummary& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
93
95
98 inline Platform GetPlatform() const { return m_platform; }
99 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
100 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
101 inline ImageSummary& WithPlatform(Platform value) { SetPlatform(value); return *this;}
103
105
109 inline const Aws::String& GetOsVersion() const { return m_osVersion; }
110 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
111 template<typename OsVersionT = Aws::String>
112 void SetOsVersion(OsVersionT&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::forward<OsVersionT>(value); }
113 template<typename OsVersionT = Aws::String>
114 ImageSummary& WithOsVersion(OsVersionT&& value) { SetOsVersion(std::forward<OsVersionT>(value)); return *this;}
116
118
121 inline const ImageState& GetState() const { return m_state; }
122 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
123 template<typename StateT = ImageState>
124 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
125 template<typename StateT = ImageState>
126 ImageSummary& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
128
130
133 inline const Aws::String& GetOwner() const { return m_owner; }
134 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
135 template<typename OwnerT = Aws::String>
136 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
137 template<typename OwnerT = Aws::String>
138 ImageSummary& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
140
142
145 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
146 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
147 template<typename DateCreatedT = Aws::String>
148 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
149 template<typename DateCreatedT = Aws::String>
150 ImageSummary& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
152
154
158 inline const OutputResources& GetOutputResources() const { return m_outputResources; }
159 inline bool OutputResourcesHasBeenSet() const { return m_outputResourcesHasBeenSet; }
160 template<typename OutputResourcesT = OutputResources>
161 void SetOutputResources(OutputResourcesT&& value) { m_outputResourcesHasBeenSet = true; m_outputResources = std::forward<OutputResourcesT>(value); }
162 template<typename OutputResourcesT = OutputResources>
163 ImageSummary& WithOutputResources(OutputResourcesT&& value) { SetOutputResources(std::forward<OutputResourcesT>(value)); return *this;}
165
167
170 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
173 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 ImageSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
176 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
177 ImageSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
178 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
179 }
181
183
192 inline BuildType GetBuildType() const { return m_buildType; }
193 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
194 inline void SetBuildType(BuildType value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
195 inline ImageSummary& WithBuildType(BuildType value) { SetBuildType(value); return *this;}
197
199
202 inline ImageSource GetImageSource() const { return m_imageSource; }
203 inline bool ImageSourceHasBeenSet() const { return m_imageSourceHasBeenSet; }
204 inline void SetImageSource(ImageSource value) { m_imageSourceHasBeenSet = true; m_imageSource = value; }
205 inline ImageSummary& WithImageSource(ImageSource value) { SetImageSource(value); return *this;}
207
209
213 inline const Aws::Utils::DateTime& GetDeprecationTime() const { return m_deprecationTime; }
214 inline bool DeprecationTimeHasBeenSet() const { return m_deprecationTimeHasBeenSet; }
215 template<typename DeprecationTimeT = Aws::Utils::DateTime>
216 void SetDeprecationTime(DeprecationTimeT&& value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime = std::forward<DeprecationTimeT>(value); }
217 template<typename DeprecationTimeT = Aws::Utils::DateTime>
218 ImageSummary& WithDeprecationTime(DeprecationTimeT&& value) { SetDeprecationTime(std::forward<DeprecationTimeT>(value)); return *this;}
220
222
226 inline const Aws::String& GetLifecycleExecutionId() const { return m_lifecycleExecutionId; }
227 inline bool LifecycleExecutionIdHasBeenSet() const { return m_lifecycleExecutionIdHasBeenSet; }
228 template<typename LifecycleExecutionIdT = Aws::String>
229 void SetLifecycleExecutionId(LifecycleExecutionIdT&& value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId = std::forward<LifecycleExecutionIdT>(value); }
230 template<typename LifecycleExecutionIdT = Aws::String>
231 ImageSummary& WithLifecycleExecutionId(LifecycleExecutionIdT&& value) { SetLifecycleExecutionId(std::forward<LifecycleExecutionIdT>(value)); return *this;}
233 private:
234
235 Aws::String m_arn;
236 bool m_arnHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
242 bool m_typeHasBeenSet = false;
243
244 Aws::String m_version;
245 bool m_versionHasBeenSet = false;
246
247 Platform m_platform{Platform::NOT_SET};
248 bool m_platformHasBeenSet = false;
249
250 Aws::String m_osVersion;
251 bool m_osVersionHasBeenSet = false;
252
253 ImageState m_state;
254 bool m_stateHasBeenSet = false;
255
256 Aws::String m_owner;
257 bool m_ownerHasBeenSet = false;
258
259 Aws::String m_dateCreated;
260 bool m_dateCreatedHasBeenSet = false;
261
262 OutputResources m_outputResources;
263 bool m_outputResourcesHasBeenSet = false;
264
266 bool m_tagsHasBeenSet = false;
267
268 BuildType m_buildType{BuildType::NOT_SET};
269 bool m_buildTypeHasBeenSet = false;
270
271 ImageSource m_imageSource{ImageSource::NOT_SET};
272 bool m_imageSourceHasBeenSet = false;
273
274 Aws::Utils::DateTime m_deprecationTime{};
275 bool m_deprecationTimeHasBeenSet = false;
276
277 Aws::String m_lifecycleExecutionId;
278 bool m_lifecycleExecutionIdHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace imagebuilder
283} // 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 SetLifecycleExecutionId(LifecycleExecutionIdT &&value)
const ImageState & GetState() const
ImageSummary & WithImageSource(ImageSource 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