AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageVersion.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/BuildType.h>
12#include <aws/imagebuilder/model/ImageSource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace imagebuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_IMAGEBUILDER_API ImageVersion();
40 AWS_IMAGEBUILDER_API ImageVersion(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API ImageVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
57 inline const Aws::String& GetArn() const{ return m_arn; }
58 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
59 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
60 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
61 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
62 inline ImageVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;}
63 inline ImageVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
64 inline ImageVersion& WithArn(const char* value) { SetArn(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline ImageVersion& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline ImageVersion& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline ImageVersion& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const ImageType& GetType() const{ return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(const ImageType& value) { m_typeHasBeenSet = true; m_type = value; }
88 inline void SetType(ImageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
89 inline ImageVersion& WithType(const ImageType& value) { SetType(value); return *this;}
90 inline ImageVersion& WithType(ImageType&& value) { SetType(std::move(value)); return *this;}
92
94
111 inline const Aws::String& GetVersion() const{ return m_version; }
112 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
113 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
114 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
115 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
116 inline ImageVersion& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
117 inline ImageVersion& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
118 inline ImageVersion& WithVersion(const char* value) { SetVersion(value); return *this;}
120
122
126 inline const Platform& GetPlatform() const{ return m_platform; }
127 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
128 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
129 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
130 inline ImageVersion& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
131 inline ImageVersion& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
133
135
139 inline const Aws::String& GetOsVersion() const{ return m_osVersion; }
140 inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; }
141 inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; }
142 inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); }
143 inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); }
144 inline ImageVersion& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;}
145 inline ImageVersion& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;}
146 inline ImageVersion& WithOsVersion(const char* value) { SetOsVersion(value); return *this;}
148
150
153 inline const Aws::String& GetOwner() const{ return m_owner; }
154 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
155 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
156 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
157 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
158 inline ImageVersion& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
159 inline ImageVersion& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
160 inline ImageVersion& WithOwner(const char* value) { SetOwner(value); return *this;}
162
164
168 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
169 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
170 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
171 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
172 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
173 inline ImageVersion& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
174 inline ImageVersion& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
175 inline ImageVersion& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
177
179
187 inline const BuildType& GetBuildType() const{ return m_buildType; }
188 inline bool BuildTypeHasBeenSet() const { return m_buildTypeHasBeenSet; }
189 inline void SetBuildType(const BuildType& value) { m_buildTypeHasBeenSet = true; m_buildType = value; }
190 inline void SetBuildType(BuildType&& value) { m_buildTypeHasBeenSet = true; m_buildType = std::move(value); }
191 inline ImageVersion& WithBuildType(const BuildType& value) { SetBuildType(value); return *this;}
192 inline ImageVersion& WithBuildType(BuildType&& value) { SetBuildType(std::move(value)); return *this;}
194
196
199 inline const ImageSource& GetImageSource() const{ return m_imageSource; }
200 inline bool ImageSourceHasBeenSet() const { return m_imageSourceHasBeenSet; }
201 inline void SetImageSource(const ImageSource& value) { m_imageSourceHasBeenSet = true; m_imageSource = value; }
202 inline void SetImageSource(ImageSource&& value) { m_imageSourceHasBeenSet = true; m_imageSource = std::move(value); }
203 inline ImageVersion& WithImageSource(const ImageSource& value) { SetImageSource(value); return *this;}
204 inline ImageVersion& WithImageSource(ImageSource&& value) { SetImageSource(std::move(value)); return *this;}
206 private:
207
208 Aws::String m_arn;
209 bool m_arnHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 ImageType m_type;
215 bool m_typeHasBeenSet = false;
216
217 Aws::String m_version;
218 bool m_versionHasBeenSet = false;
219
220 Platform m_platform;
221 bool m_platformHasBeenSet = false;
222
223 Aws::String m_osVersion;
224 bool m_osVersionHasBeenSet = false;
225
226 Aws::String m_owner;
227 bool m_ownerHasBeenSet = false;
228
229 Aws::String m_dateCreated;
230 bool m_dateCreatedHasBeenSet = false;
231
232 BuildType m_buildType;
233 bool m_buildTypeHasBeenSet = false;
234
235 ImageSource m_imageSource;
236 bool m_imageSourceHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace imagebuilder
241} // namespace Aws
const ImageSource & GetImageSource() const
void SetVersion(const Aws::String &value)
void SetName(const Aws::String &value)
ImageVersion & WithOsVersion(const char *value)
ImageVersion & WithArn(Aws::String &&value)
AWS_IMAGEBUILDER_API ImageVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API ImageVersion(Aws::Utils::Json::JsonView jsonValue)
void SetBuildType(const BuildType &value)
void SetName(Aws::String &&value)
void SetImageSource(const ImageSource &value)
ImageVersion & WithOwner(const Aws::String &value)
ImageVersion & WithDateCreated(const Aws::String &value)
ImageVersion & WithDateCreated(const char *value)
void SetOwner(Aws::String &&value)
ImageVersion & WithBuildType(BuildType &&value)
ImageVersion & WithOwner(const char *value)
ImageVersion & WithVersion(const Aws::String &value)
ImageVersion & WithOwner(Aws::String &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ImageVersion & WithType(ImageType &&value)
void SetOsVersion(Aws::String &&value)
void SetBuildType(BuildType &&value)
void SetDateCreated(const Aws::String &value)
const ImageType & GetType() const
const Aws::String & GetArn() const
ImageVersion & WithArn(const Aws::String &value)
void SetOsVersion(const Aws::String &value)
ImageVersion & WithArn(const char *value)
ImageVersion & WithOsVersion(Aws::String &&value)
AWS_IMAGEBUILDER_API ImageVersion()
void SetVersion(Aws::String &&value)
ImageVersion & WithBuildType(const BuildType &value)
void SetDateCreated(Aws::String &&value)
ImageVersion & WithPlatform(Platform &&value)
const Aws::String & GetOsVersion() const
ImageVersion & WithVersion(const char *value)
const Aws::String & GetVersion() const
void SetPlatform(const Platform &value)
ImageVersion & WithType(const ImageType &value)
void SetOsVersion(const char *value)
void SetDateCreated(const char *value)
const Aws::String & GetName() const
ImageVersion & WithName(const char *value)
void SetOwner(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetType(const ImageType &value)
ImageVersion & WithImageSource(const ImageSource &value)
ImageVersion & WithName(const Aws::String &value)
ImageVersion & WithVersion(Aws::String &&value)
ImageVersion & WithPlatform(const Platform &value)
const Platform & GetPlatform() const
ImageVersion & WithOsVersion(const Aws::String &value)
void SetImageSource(ImageSource &&value)
void SetArn(Aws::String &&value)
ImageVersion & WithDateCreated(Aws::String &&value)
const Aws::String & GetOwner() const
const BuildType & GetBuildType() const
ImageVersion & WithName(Aws::String &&value)
ImageVersion & WithImageSource(ImageSource &&value)
const Aws::String & GetDateCreated() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue