AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline ImageSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline ImageSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline ImageSummary& WithArn(const char* value) { SetArn(value); return *this;}
61
63
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline ImageSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline ImageSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline ImageSummary& WithName(const char* value) { SetName(value); return *this;}
75
77
80 inline const ImageType& GetType() const{ return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(const ImageType& value) { m_typeHasBeenSet = true; m_type = value; }
83 inline void SetType(ImageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
84 inline ImageSummary& WithType(const ImageType& value) { SetType(value); return *this;}
85 inline ImageSummary& WithType(ImageType&& value) { SetType(std::move(value)); return *this;}
87
89
92 inline const Aws::String& GetVersion() const{ return m_version; }
93 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
94 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
95 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
96 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
97 inline ImageSummary& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
98 inline ImageSummary& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
99 inline ImageSummary& WithVersion(const char* value) { SetVersion(value); return *this;}
101
103
106 inline const Platform& GetPlatform() const{ return m_platform; }
107 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
108 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
109 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
110 inline ImageSummary& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
111 inline ImageSummary& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
113
115
119 inline const Aws::String& GetOsVersion() const{ return m_osVersion; }
120 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
121 inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; }
122 inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); }
123 inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); }
124 inline ImageSummary& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;}
125 inline ImageSummary& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;}
126 inline ImageSummary& WithOsVersion(const char* value) { SetOsVersion(value); return *this;}
128
130
133 inline const ImageState& GetState() const{ return m_state; }
134 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
135 inline void SetState(const ImageState& value) { m_stateHasBeenSet = true; m_state = value; }
136 inline void SetState(ImageState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
137 inline ImageSummary& WithState(const ImageState& value) { SetState(value); return *this;}
138 inline ImageSummary& WithState(ImageState&& value) { SetState(std::move(value)); return *this;}
140
142
145 inline const Aws::String& GetOwner() const{ return m_owner; }
146 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
147 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
148 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
149 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
150 inline ImageSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
151 inline ImageSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
152 inline ImageSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
154
156
159 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
160 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
161 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
162 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
163 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
164 inline ImageSummary& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
165 inline ImageSummary& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
166 inline ImageSummary& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
168
170
174 inline const OutputResources& GetOutputResources() const{ return m_outputResources; }
175 inline bool OutputResourcesHasBeenSet() const { return m_outputResourcesHasBeenSet; }
176 inline void SetOutputResources(const OutputResources& value) { m_outputResourcesHasBeenSet = true; m_outputResources = value; }
177 inline void SetOutputResources(OutputResources&& value) { m_outputResourcesHasBeenSet = true; m_outputResources = std::move(value); }
178 inline ImageSummary& WithOutputResources(const OutputResources& value) { SetOutputResources(value); return *this;}
179 inline ImageSummary& WithOutputResources(OutputResources&& value) { SetOutputResources(std::move(value)); return *this;}
181
183
186 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
187 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
188 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
189 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
190 inline ImageSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
191 inline ImageSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
192 inline ImageSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
193 inline ImageSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
194 inline ImageSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
195 inline ImageSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
196 inline ImageSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
197 inline ImageSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
198 inline ImageSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
200
202
210 inline const BuildType& GetBuildType() const{ return m_buildType; }
211 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
212 inline void SetBuildType(const BuildType& value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
213 inline void SetBuildType(BuildType&& value) { m_buildTypeHasBeenSet = true; m_buildType = std::move(value); }
214 inline ImageSummary& WithBuildType(const BuildType& value) { SetBuildType(value); return *this;}
215 inline ImageSummary& WithBuildType(BuildType&& value) { SetBuildType(std::move(value)); return *this;}
217
219
222 inline const ImageSource& GetImageSource() const{ return m_imageSource; }
223 inline bool ImageSourceHasBeenSet() const { return m_imageSourceHasBeenSet; }
224 inline void SetImageSource(const ImageSource& value) { m_imageSourceHasBeenSet = true; m_imageSource = value; }
225 inline void SetImageSource(ImageSource&& value) { m_imageSourceHasBeenSet = true; m_imageSource = std::move(value); }
226 inline ImageSummary& WithImageSource(const ImageSource& value) { SetImageSource(value); return *this;}
227 inline ImageSummary& WithImageSource(ImageSource&& value) { SetImageSource(std::move(value)); return *this;}
229
231
235 inline const Aws::Utils::DateTime& GetDeprecationTime() const{ return m_deprecationTime; }
236 inline bool DeprecationTimeHasBeenSet() const { return m_deprecationTimeHasBeenSet; }
237 inline void SetDeprecationTime(const Aws::Utils::DateTime& value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime = value; }
238 inline void SetDeprecationTime(Aws::Utils::DateTime&& value) { m_deprecationTimeHasBeenSet = true; m_deprecationTime = std::move(value); }
239 inline ImageSummary& WithDeprecationTime(const Aws::Utils::DateTime& value) { SetDeprecationTime(value); return *this;}
240 inline ImageSummary& WithDeprecationTime(Aws::Utils::DateTime&& value) { SetDeprecationTime(std::move(value)); return *this;}
242
244
248 inline const Aws::String& GetLifecycleExecutionId() const{ return m_lifecycleExecutionId; }
249 inline bool LifecycleExecutionIdHasBeenSet() const { return m_lifecycleExecutionIdHasBeenSet; }
250 inline void SetLifecycleExecutionId(const Aws::String& value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId = value; }
251 inline void SetLifecycleExecutionId(Aws::String&& value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId = std::move(value); }
252 inline void SetLifecycleExecutionId(const char* value) { m_lifecycleExecutionIdHasBeenSet = true; m_lifecycleExecutionId.assign(value); }
253 inline ImageSummary& WithLifecycleExecutionId(const Aws::String& value) { SetLifecycleExecutionId(value); return *this;}
254 inline ImageSummary& WithLifecycleExecutionId(Aws::String&& value) { SetLifecycleExecutionId(std::move(value)); return *this;}
255 inline ImageSummary& WithLifecycleExecutionId(const char* value) { SetLifecycleExecutionId(value); return *this;}
257 private:
258
259 Aws::String m_arn;
260 bool m_arnHasBeenSet = false;
261
262 Aws::String m_name;
263 bool m_nameHasBeenSet = false;
264
265 ImageType m_type;
266 bool m_typeHasBeenSet = false;
267
268 Aws::String m_version;
269 bool m_versionHasBeenSet = false;
270
271 Platform m_platform;
272 bool m_platformHasBeenSet = false;
273
274 Aws::String m_osVersion;
275 bool m_osVersionHasBeenSet = false;
276
277 ImageState m_state;
278 bool m_stateHasBeenSet = false;
279
280 Aws::String m_owner;
281 bool m_ownerHasBeenSet = false;
282
283 Aws::String m_dateCreated;
284 bool m_dateCreatedHasBeenSet = false;
285
286 OutputResources m_outputResources;
287 bool m_outputResourcesHasBeenSet = false;
288
290 bool m_tagsHasBeenSet = false;
291
292 BuildType m_buildType;
293 bool m_buildTypeHasBeenSet = false;
294
295 ImageSource m_imageSource;
296 bool m_imageSourceHasBeenSet = false;
297
298 Aws::Utils::DateTime m_deprecationTime;
299 bool m_deprecationTimeHasBeenSet = false;
300
301 Aws::String m_lifecycleExecutionId;
302 bool m_lifecycleExecutionIdHasBeenSet = false;
303 };
304
305} // namespace Model
306} // namespace imagebuilder
307} // namespace Aws
void SetOwner(const Aws::String &value)
ImageSummary & WithBuildType(const BuildType &value)
AWS_IMAGEBUILDER_API ImageSummary(Aws::Utils::Json::JsonView jsonValue)
void SetDateCreated(Aws::String &&value)
ImageSummary & WithPlatform(Platform &&value)
const Aws::String & GetArn() const
ImageSummary & WithOsVersion(const char *value)
ImageSummary & WithLifecycleExecutionId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetImageSource(const ImageSource &value)
ImageSummary & WithDateCreated(Aws::String &&value)
ImageSummary & AddTags(const char *key, const char *value)
void SetVersion(const Aws::String &value)
void SetOsVersion(Aws::String &&value)
const BuildType & GetBuildType() const
void SetDeprecationTime(Aws::Utils::DateTime &&value)
const ImageType & GetType() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
void SetBuildType(const BuildType &value)
ImageSummary & WithName(const char *value)
void SetOwner(Aws::String &&value)
void SetBuildType(BuildType &&value)
ImageSummary & WithArn(Aws::String &&value)
const Platform & GetPlatform() const
ImageSummary & WithBuildType(BuildType &&value)
ImageSummary & WithOwner(Aws::String &&value)
const Aws::String & GetOwner() const
void SetLifecycleExecutionId(Aws::String &&value)
ImageSummary & WithDeprecationTime(const Aws::Utils::DateTime &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ImageSummary & WithType(const ImageType &value)
const Aws::Utils::DateTime & GetDeprecationTime() const
ImageSummary & WithName(const Aws::String &value)
ImageSummary & WithDateCreated(const Aws::String &value)
const Aws::String & GetDateCreated() const
ImageSummary & WithDeprecationTime(Aws::Utils::DateTime &&value)
ImageSummary & WithState(ImageState &&value)
void SetDateCreated(const char *value)
void SetDateCreated(const Aws::String &value)
ImageSummary & AddTags(const Aws::String &key, const Aws::String &value)
void SetArn(const Aws::String &value)
void SetArn(Aws::String &&value)
const ImageSource & GetImageSource() const
void SetLifecycleExecutionId(const char *value)
void SetOutputResources(OutputResources &&value)
const ImageState & GetState() const
void SetVersion(Aws::String &&value)
ImageSummary & WithLifecycleExecutionId(Aws::String &&value)
ImageSummary & WithName(Aws::String &&value)
ImageSummary & WithOutputResources(OutputResources &&value)
ImageSummary & WithOutputResources(const OutputResources &value)
ImageSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ImageSummary & WithOwner(const char *value)
const Aws::String & GetLifecycleExecutionId() const
void SetType(const ImageType &value)
void SetDeprecationTime(const Aws::Utils::DateTime &value)
ImageSummary & AddTags(const Aws::String &key, Aws::String &&value)
ImageSummary & WithVersion(const char *value)
ImageSummary & WithType(ImageType &&value)
ImageSummary & WithArn(const Aws::String &value)
ImageSummary & WithOsVersion(Aws::String &&value)
void SetState(ImageState &&value)
void SetOsVersion(const char *value)
ImageSummary & AddTags(const char *key, Aws::String &&value)
AWS_IMAGEBUILDER_API ImageSummary()
void SetPlatform(const Platform &value)
ImageSummary & WithVersion(const Aws::String &value)
void SetName(const Aws::String &value)
ImageSummary & AddTags(Aws::String &&key, Aws::String &&value)
ImageSummary & WithOwner(const Aws::String &value)
ImageSummary & WithDateCreated(const char *value)
ImageSummary & WithVersion(Aws::String &&value)
const Aws::String & GetVersion() const
AWS_IMAGEBUILDER_API ImageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOsVersion(const Aws::String &value)
ImageSummary & WithPlatform(const Platform &value)
void SetLifecycleExecutionId(const Aws::String &value)
ImageSummary & AddTags(Aws::String &&key, const char *value)
void SetOutputResources(const OutputResources &value)
ImageSummary & WithImageSource(ImageSource &&value)
void SetName(Aws::String &&value)
ImageSummary & WithOsVersion(const Aws::String &value)
void SetImageSource(ImageSource &&value)
ImageSummary & WithArn(const char *value)
ImageSummary & AddTags(Aws::String &&key, const Aws::String &value)
ImageSummary & WithState(const ImageState &value)
ImageSummary & WithImageSource(const ImageSource &value)
const OutputResources & GetOutputResources() const
ImageSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetState(const ImageState &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ImageSummary & WithLifecycleExecutionId(const Aws::String &value)
void SetVersion(const char *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