AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentVersion.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/Platform.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/imagebuilder/model/ComponentType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IMAGEBUILDER_API ComponentVersion();
39 AWS_IMAGEBUILDER_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API ComponentVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
56 inline const Aws::String& GetArn() const{ return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
59 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
60 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
61 inline ComponentVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;}
62 inline ComponentVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
63 inline ComponentVersion& WithArn(const char* value) { SetArn(value); return *this;}
65
67
70 inline const Aws::String& GetName() const{ return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
73 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
74 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 inline ComponentVersion& WithName(const Aws::String& value) { SetName(value); return *this;}
76 inline ComponentVersion& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 inline ComponentVersion& WithName(const char* value) { SetName(value); return *this;}
79
81
97 inline const Aws::String& GetVersion() const{ return m_version; }
98 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
99 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
100 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
101 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
102 inline ComponentVersion& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
103 inline ComponentVersion& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
104 inline ComponentVersion& WithVersion(const char* value) { SetVersion(value); return *this;}
106
108
111 inline const Aws::String& GetDescription() const{ return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
114 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
116 inline ComponentVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 inline ComponentVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 inline ComponentVersion& WithDescription(const char* value) { SetDescription(value); return *this;}
120
122
125 inline const Platform& GetPlatform() const{ return m_platform; }
126 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
127 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
128 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
129 inline ComponentVersion& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
130 inline ComponentVersion& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
132
134
139 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const{ return m_supportedOsVersions; }
140 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
141 inline void SetSupportedOsVersions(const Aws::Vector<Aws::String>& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = value; }
142 inline void SetSupportedOsVersions(Aws::Vector<Aws::String>&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = std::move(value); }
145 inline ComponentVersion& AddSupportedOsVersions(const Aws::String& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; }
146 inline ComponentVersion& AddSupportedOsVersions(Aws::String&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(std::move(value)); return *this; }
147 inline ComponentVersion& AddSupportedOsVersions(const char* value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; }
149
151
155 inline const ComponentType& GetType() const{ return m_type; }
156 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
157 inline void SetType(const ComponentType& value) { m_typeHasBeenSet = true; m_type = value; }
158 inline void SetType(ComponentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
159 inline ComponentVersion& WithType(const ComponentType& value) { SetType(value); return *this;}
160 inline ComponentVersion& WithType(ComponentType&& value) { SetType(std::move(value)); return *this;}
162
164
167 inline const Aws::String& GetOwner() const{ return m_owner; }
168 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
169 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
170 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
171 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
172 inline ComponentVersion& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
173 inline ComponentVersion& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
174 inline ComponentVersion& WithOwner(const char* value) { SetOwner(value); return *this;}
176
178
181 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
182 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
183 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
184 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
185 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
186 inline ComponentVersion& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
187 inline ComponentVersion& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
188 inline ComponentVersion& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
190 private:
191
192 Aws::String m_arn;
193 bool m_arnHasBeenSet = false;
194
195 Aws::String m_name;
196 bool m_nameHasBeenSet = false;
197
198 Aws::String m_version;
199 bool m_versionHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 Platform m_platform;
205 bool m_platformHasBeenSet = false;
206
207 Aws::Vector<Aws::String> m_supportedOsVersions;
208 bool m_supportedOsVersionsHasBeenSet = false;
209
210 ComponentType m_type;
211 bool m_typeHasBeenSet = false;
212
213 Aws::String m_owner;
214 bool m_ownerHasBeenSet = false;
215
216 Aws::String m_dateCreated;
217 bool m_dateCreatedHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace imagebuilder
222} // namespace Aws
ComponentVersion & WithPlatform(Platform &&value)
ComponentVersion & WithVersion(const Aws::String &value)
void SetDescription(const Aws::String &value)
ComponentVersion & WithSupportedOsVersions(const Aws::Vector< Aws::String > &value)
ComponentVersion & WithOwner(const Aws::String &value)
void SetDateCreated(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetSupportedOsVersions(Aws::Vector< Aws::String > &&value)
ComponentVersion & AddSupportedOsVersions(const Aws::String &value)
ComponentVersion & WithPlatform(const Platform &value)
ComponentVersion & WithDescription(const Aws::String &value)
ComponentVersion & AddSupportedOsVersions(Aws::String &&value)
ComponentVersion & WithOwner(const char *value)
ComponentVersion & WithName(const Aws::String &value)
ComponentVersion & WithDateCreated(const char *value)
void SetType(const ComponentType &value)
ComponentVersion & AddSupportedOsVersions(const char *value)
void SetName(const Aws::String &value)
ComponentVersion & WithDateCreated(const Aws::String &value)
ComponentVersion & WithName(const char *value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentVersion & WithArn(const char *value)
ComponentVersion & WithArn(const Aws::String &value)
ComponentVersion & WithType(const ComponentType &value)
ComponentVersion & WithName(Aws::String &&value)
ComponentVersion & WithVersion(Aws::String &&value)
ComponentVersion & WithDescription(const char *value)
AWS_IMAGEBUILDER_API ComponentVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentVersion & WithDateCreated(Aws::String &&value)
void SetVersion(const Aws::String &value)
ComponentVersion & WithOwner(Aws::String &&value)
void SetSupportedOsVersions(const Aws::Vector< Aws::String > &value)
ComponentVersion & WithVersion(const char *value)
void SetOwner(const Aws::String &value)
ComponentVersion & WithType(ComponentType &&value)
const Aws::Vector< Aws::String > & GetSupportedOsVersions() const
AWS_IMAGEBUILDER_API ComponentVersion(Aws::Utils::Json::JsonView jsonValue)
ComponentVersion & WithSupportedOsVersions(Aws::Vector< Aws::String > &&value)
ComponentVersion & WithDescription(Aws::String &&value)
ComponentVersion & WithArn(Aws::String &&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