AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentSummary.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/ComponentState.h>
12#include <aws/imagebuilder/model/ComponentType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace imagebuilder
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_IMAGEBUILDER_API ComponentSummary();
40 AWS_IMAGEBUILDER_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IMAGEBUILDER_API ComponentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline ComponentSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline ComponentSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline ComponentSummary& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline ComponentSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline ComponentSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline ComponentSummary& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetVersion() const{ return m_version; }
78 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
79 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
80 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
81 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
82 inline ComponentSummary& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
83 inline ComponentSummary& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
84 inline ComponentSummary& WithVersion(const char* value) { SetVersion(value); return *this;}
86
88
91 inline const Platform& GetPlatform() const{ return m_platform; }
92 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
93 inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
94 inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
95 inline ComponentSummary& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
96 inline ComponentSummary& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
98
100
105 inline const Aws::Vector<Aws::String>& GetSupportedOsVersions() const{ return m_supportedOsVersions; }
106 inline bool SupportedOsVersionsHasBeenSet() const { return m_supportedOsVersionsHasBeenSet; }
107 inline void SetSupportedOsVersions(const Aws::Vector<Aws::String>& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = value; }
108 inline void SetSupportedOsVersions(Aws::Vector<Aws::String>&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions = std::move(value); }
111 inline ComponentSummary& AddSupportedOsVersions(const Aws::String& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; }
112 inline ComponentSummary& AddSupportedOsVersions(Aws::String&& value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(std::move(value)); return *this; }
113 inline ComponentSummary& AddSupportedOsVersions(const char* value) { m_supportedOsVersionsHasBeenSet = true; m_supportedOsVersions.push_back(value); return *this; }
115
117
120 inline const ComponentState& GetState() const{ return m_state; }
121 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
122 inline void SetState(const ComponentState& value) { m_stateHasBeenSet = true; m_state = value; }
123 inline void SetState(ComponentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
124 inline ComponentSummary& WithState(const ComponentState& value) { SetState(value); return *this;}
125 inline ComponentSummary& WithState(ComponentState&& value) { SetState(std::move(value)); return *this;}
127
129
133 inline const ComponentType& GetType() const{ return m_type; }
134 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
135 inline void SetType(const ComponentType& value) { m_typeHasBeenSet = true; m_type = value; }
136 inline void SetType(ComponentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
137 inline ComponentSummary& WithType(const ComponentType& value) { SetType(value); return *this;}
138 inline ComponentSummary& WithType(ComponentType&& value) { SetType(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 ComponentSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
151 inline ComponentSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
152 inline ComponentSummary& WithOwner(const char* value) { SetOwner(value); return *this;}
154
156
159 inline const Aws::String& GetDescription() const{ return m_description; }
160 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
161 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
162 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
163 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
164 inline ComponentSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
165 inline ComponentSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
166 inline ComponentSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
168
170
173 inline const Aws::String& GetChangeDescription() const{ return m_changeDescription; }
174 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
175 inline void SetChangeDescription(const Aws::String& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = value; }
176 inline void SetChangeDescription(Aws::String&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::move(value); }
177 inline void SetChangeDescription(const char* value) { m_changeDescriptionHasBeenSet = true; m_changeDescription.assign(value); }
178 inline ComponentSummary& WithChangeDescription(const Aws::String& value) { SetChangeDescription(value); return *this;}
179 inline ComponentSummary& WithChangeDescription(Aws::String&& value) { SetChangeDescription(std::move(value)); return *this;}
180 inline ComponentSummary& WithChangeDescription(const char* value) { SetChangeDescription(value); return *this;}
182
184
187 inline const Aws::String& GetDateCreated() const{ return m_dateCreated; }
188 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
189 inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; }
190 inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); }
191 inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); }
192 inline ComponentSummary& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;}
193 inline ComponentSummary& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;}
194 inline ComponentSummary& WithDateCreated(const char* value) { SetDateCreated(value); return *this;}
196
198
201 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
204 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
205 inline ComponentSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
206 inline ComponentSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
207 inline ComponentSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
208 inline ComponentSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
209 inline ComponentSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
210 inline ComponentSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
211 inline ComponentSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
212 inline ComponentSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
213 inline ComponentSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
215
217
221 inline const Aws::String& GetPublisher() const{ return m_publisher; }
222 inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; }
223 inline void SetPublisher(const Aws::String& value) { m_publisherHasBeenSet = true; m_publisher = value; }
224 inline void SetPublisher(Aws::String&& value) { m_publisherHasBeenSet = true; m_publisher = std::move(value); }
225 inline void SetPublisher(const char* value) { m_publisherHasBeenSet = true; m_publisher.assign(value); }
226 inline ComponentSummary& WithPublisher(const Aws::String& value) { SetPublisher(value); return *this;}
227 inline ComponentSummary& WithPublisher(Aws::String&& value) { SetPublisher(std::move(value)); return *this;}
228 inline ComponentSummary& WithPublisher(const char* value) { SetPublisher(value); return *this;}
230
232
236 inline bool GetObfuscate() const{ return m_obfuscate; }
237 inline bool ObfuscateHasBeenSet() const { return m_obfuscateHasBeenSet; }
238 inline void SetObfuscate(bool value) { m_obfuscateHasBeenSet = true; m_obfuscate = value; }
239 inline ComponentSummary& WithObfuscate(bool value) { SetObfuscate(value); return *this;}
241 private:
242
243 Aws::String m_arn;
244 bool m_arnHasBeenSet = false;
245
246 Aws::String m_name;
247 bool m_nameHasBeenSet = false;
248
249 Aws::String m_version;
250 bool m_versionHasBeenSet = false;
251
252 Platform m_platform;
253 bool m_platformHasBeenSet = false;
254
255 Aws::Vector<Aws::String> m_supportedOsVersions;
256 bool m_supportedOsVersionsHasBeenSet = false;
257
258 ComponentState m_state;
259 bool m_stateHasBeenSet = false;
260
261 ComponentType m_type;
262 bool m_typeHasBeenSet = false;
263
264 Aws::String m_owner;
265 bool m_ownerHasBeenSet = false;
266
267 Aws::String m_description;
268 bool m_descriptionHasBeenSet = false;
269
270 Aws::String m_changeDescription;
271 bool m_changeDescriptionHasBeenSet = false;
272
273 Aws::String m_dateCreated;
274 bool m_dateCreatedHasBeenSet = false;
275
277 bool m_tagsHasBeenSet = false;
278
279 Aws::String m_publisher;
280 bool m_publisherHasBeenSet = false;
281
282 bool m_obfuscate;
283 bool m_obfuscateHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace imagebuilder
288} // namespace Aws
ComponentSummary & AddTags(const char *key, Aws::String &&value)
void SetState(const ComponentState &value)
void SetSupportedOsVersions(Aws::Vector< Aws::String > &&value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentSummary & WithArn(Aws::String &&value)
void SetType(const ComponentType &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ComponentSummary & WithPublisher(const Aws::String &value)
ComponentSummary & WithPublisher(Aws::String &&value)
const ComponentState & GetState() const
ComponentSummary & WithName(Aws::String &&value)
void SetArn(const Aws::String &value)
void SetChangeDescription(const Aws::String &value)
ComponentSummary & AddSupportedOsVersions(const Aws::String &value)
ComponentSummary & WithOwner(const Aws::String &value)
ComponentSummary & WithOwner(Aws::String &&value)
ComponentSummary & AddTags(const Aws::String &key, Aws::String &&value)
ComponentSummary & AddTags(const Aws::String &key, const Aws::String &value)
AWS_IMAGEBUILDER_API ComponentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentSummary & WithObfuscate(bool value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ComponentSummary & WithSupportedOsVersions(const Aws::Vector< Aws::String > &value)
ComponentSummary & WithOwner(const char *value)
ComponentSummary & AddTags(Aws::String &&key, const Aws::String &value)
ComponentSummary & WithChangeDescription(const Aws::String &value)
void SetDateCreated(const Aws::String &value)
ComponentSummary & WithVersion(const char *value)
ComponentSummary & WithDateCreated(const Aws::String &value)
ComponentSummary & WithDateCreated(Aws::String &&value)
ComponentSummary & WithName(const char *value)
ComponentSummary & WithVersion(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSupportedOsVersions() const
ComponentSummary & AddTags(Aws::String &&key, Aws::String &&value)
ComponentSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ComponentSummary & WithState(ComponentState &&value)
ComponentSummary & WithSupportedOsVersions(Aws::Vector< Aws::String > &&value)
ComponentSummary & WithDescription(const char *value)
void SetDescription(const Aws::String &value)
ComponentSummary & WithDescription(Aws::String &&value)
ComponentSummary & WithArn(const Aws::String &value)
void SetName(const Aws::String &value)
ComponentSummary & AddTags(const char *key, const char *value)
ComponentSummary & WithPlatform(const Platform &value)
ComponentSummary & AddSupportedOsVersions(Aws::String &&value)
ComponentSummary & WithChangeDescription(const char *value)
void SetPublisher(const Aws::String &value)
ComponentSummary & AddTags(Aws::String &&key, const char *value)
ComponentSummary & AddSupportedOsVersions(const char *value)
ComponentSummary & WithName(const Aws::String &value)
ComponentSummary & WithPublisher(const char *value)
const Aws::String & GetChangeDescription() const
ComponentSummary & WithDateCreated(const char *value)
void SetOwner(const Aws::String &value)
ComponentSummary & WithState(const ComponentState &value)
void SetVersion(const Aws::String &value)
ComponentSummary & WithVersion(Aws::String &&value)
ComponentSummary & WithArn(const char *value)
ComponentSummary & WithPlatform(Platform &&value)
ComponentSummary & WithDescription(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_IMAGEBUILDER_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue)
void SetSupportedOsVersions(const Aws::Vector< Aws::String > &value)
ComponentSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ComponentSummary & WithType(const ComponentType &value)
ComponentSummary & WithType(ComponentType &&value)
ComponentSummary & WithChangeDescription(Aws::String &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue