AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Application.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/PlatformType.h>
9#include <aws/appstream/model/S3Location.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppStream {
25namespace Model {
26
34 public:
35 AWS_APPSTREAM_API Application() = default;
36 AWS_APPSTREAM_API Application(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPSTREAM_API Application& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 Application& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template <typename DisplayNameT = Aws::String>
65 void SetDisplayName(DisplayNameT&& value) {
66 m_displayNameHasBeenSet = true;
67 m_displayName = std::forward<DisplayNameT>(value);
68 }
69 template <typename DisplayNameT = Aws::String>
70 Application& WithDisplayName(DisplayNameT&& value) {
71 SetDisplayName(std::forward<DisplayNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetIconURL() const { return m_iconURL; }
81 inline bool IconURLHasBeenSet() const { return m_iconURLHasBeenSet; }
82 template <typename IconURLT = Aws::String>
83 void SetIconURL(IconURLT&& value) {
84 m_iconURLHasBeenSet = true;
85 m_iconURL = std::forward<IconURLT>(value);
86 }
87 template <typename IconURLT = Aws::String>
88 Application& WithIconURL(IconURLT&& value) {
89 SetIconURL(std::forward<IconURLT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
99 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
100 template <typename LaunchPathT = Aws::String>
101 void SetLaunchPath(LaunchPathT&& value) {
102 m_launchPathHasBeenSet = true;
103 m_launchPath = std::forward<LaunchPathT>(value);
104 }
105 template <typename LaunchPathT = Aws::String>
106 Application& WithLaunchPath(LaunchPathT&& value) {
107 SetLaunchPath(std::forward<LaunchPathT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetLaunchParameters() const { return m_launchParameters; }
117 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
118 template <typename LaunchParametersT = Aws::String>
119 void SetLaunchParameters(LaunchParametersT&& value) {
120 m_launchParametersHasBeenSet = true;
121 m_launchParameters = std::forward<LaunchParametersT>(value);
122 }
123 template <typename LaunchParametersT = Aws::String>
124 Application& WithLaunchParameters(LaunchParametersT&& value) {
125 SetLaunchParameters(std::forward<LaunchParametersT>(value));
126 return *this;
127 }
129
131
135 inline bool GetEnabled() const { return m_enabled; }
136 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
137 inline void SetEnabled(bool value) {
138 m_enabledHasBeenSet = true;
139 m_enabled = value;
140 }
141 inline Application& WithEnabled(bool value) {
142 SetEnabled(value);
143 return *this;
144 }
146
148
151 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
152 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
153 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
154 void SetMetadata(MetadataT&& value) {
155 m_metadataHasBeenSet = true;
156 m_metadata = std::forward<MetadataT>(value);
157 }
158 template <typename MetadataT = Aws::Map<Aws::String, Aws::String>>
159 Application& WithMetadata(MetadataT&& value) {
160 SetMetadata(std::forward<MetadataT>(value));
161 return *this;
162 }
163 template <typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
164 Application& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
165 m_metadataHasBeenSet = true;
166 m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
176 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
177 template <typename WorkingDirectoryT = Aws::String>
178 void SetWorkingDirectory(WorkingDirectoryT&& value) {
179 m_workingDirectoryHasBeenSet = true;
180 m_workingDirectory = std::forward<WorkingDirectoryT>(value);
181 }
182 template <typename WorkingDirectoryT = Aws::String>
183 Application& WithWorkingDirectory(WorkingDirectoryT&& value) {
184 SetWorkingDirectory(std::forward<WorkingDirectoryT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetDescription() const { return m_description; }
194 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
195 template <typename DescriptionT = Aws::String>
196 void SetDescription(DescriptionT&& value) {
197 m_descriptionHasBeenSet = true;
198 m_description = std::forward<DescriptionT>(value);
199 }
200 template <typename DescriptionT = Aws::String>
201 Application& WithDescription(DescriptionT&& value) {
202 SetDescription(std::forward<DescriptionT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetArn() const { return m_arn; }
212 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
213 template <typename ArnT = Aws::String>
214 void SetArn(ArnT&& value) {
215 m_arnHasBeenSet = true;
216 m_arn = std::forward<ArnT>(value);
217 }
218 template <typename ArnT = Aws::String>
219 Application& WithArn(ArnT&& value) {
220 SetArn(std::forward<ArnT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetAppBlockArn() const { return m_appBlockArn; }
230 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
231 template <typename AppBlockArnT = Aws::String>
232 void SetAppBlockArn(AppBlockArnT&& value) {
233 m_appBlockArnHasBeenSet = true;
234 m_appBlockArn = std::forward<AppBlockArnT>(value);
235 }
236 template <typename AppBlockArnT = Aws::String>
237 Application& WithAppBlockArn(AppBlockArnT&& value) {
238 SetAppBlockArn(std::forward<AppBlockArnT>(value));
239 return *this;
240 }
242
244
247 inline const S3Location& GetIconS3Location() const { return m_iconS3Location; }
248 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
249 template <typename IconS3LocationT = S3Location>
250 void SetIconS3Location(IconS3LocationT&& value) {
251 m_iconS3LocationHasBeenSet = true;
252 m_iconS3Location = std::forward<IconS3LocationT>(value);
253 }
254 template <typename IconS3LocationT = S3Location>
255 Application& WithIconS3Location(IconS3LocationT&& value) {
256 SetIconS3Location(std::forward<IconS3LocationT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Vector<PlatformType>& GetPlatforms() const { return m_platforms; }
266 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
267 template <typename PlatformsT = Aws::Vector<PlatformType>>
268 void SetPlatforms(PlatformsT&& value) {
269 m_platformsHasBeenSet = true;
270 m_platforms = std::forward<PlatformsT>(value);
271 }
272 template <typename PlatformsT = Aws::Vector<PlatformType>>
273 Application& WithPlatforms(PlatformsT&& value) {
274 SetPlatforms(std::forward<PlatformsT>(value));
275 return *this;
276 }
278 m_platformsHasBeenSet = true;
279 m_platforms.push_back(value);
280 return *this;
281 }
283
285
288 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const { return m_instanceFamilies; }
289 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
290 template <typename InstanceFamiliesT = Aws::Vector<Aws::String>>
291 void SetInstanceFamilies(InstanceFamiliesT&& value) {
292 m_instanceFamiliesHasBeenSet = true;
293 m_instanceFamilies = std::forward<InstanceFamiliesT>(value);
294 }
295 template <typename InstanceFamiliesT = Aws::Vector<Aws::String>>
296 Application& WithInstanceFamilies(InstanceFamiliesT&& value) {
297 SetInstanceFamilies(std::forward<InstanceFamiliesT>(value));
298 return *this;
299 }
300 template <typename InstanceFamiliesT = Aws::String>
301 Application& AddInstanceFamilies(InstanceFamiliesT&& value) {
302 m_instanceFamiliesHasBeenSet = true;
303 m_instanceFamilies.emplace_back(std::forward<InstanceFamiliesT>(value));
304 return *this;
305 }
307
309
312 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
313 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
314 template <typename CreatedTimeT = Aws::Utils::DateTime>
315 void SetCreatedTime(CreatedTimeT&& value) {
316 m_createdTimeHasBeenSet = true;
317 m_createdTime = std::forward<CreatedTimeT>(value);
318 }
319 template <typename CreatedTimeT = Aws::Utils::DateTime>
320 Application& WithCreatedTime(CreatedTimeT&& value) {
321 SetCreatedTime(std::forward<CreatedTimeT>(value));
322 return *this;
323 }
325 private:
326 Aws::String m_name;
327
328 Aws::String m_displayName;
329
330 Aws::String m_iconURL;
331
332 Aws::String m_launchPath;
333
334 Aws::String m_launchParameters;
335
336 bool m_enabled{false};
337
339
340 Aws::String m_workingDirectory;
341
342 Aws::String m_description;
343
344 Aws::String m_arn;
345
346 Aws::String m_appBlockArn;
347
348 S3Location m_iconS3Location;
349
350 Aws::Vector<PlatformType> m_platforms;
351
352 Aws::Vector<Aws::String> m_instanceFamilies;
353
354 Aws::Utils::DateTime m_createdTime{};
355 bool m_nameHasBeenSet = false;
356 bool m_displayNameHasBeenSet = false;
357 bool m_iconURLHasBeenSet = false;
358 bool m_launchPathHasBeenSet = false;
359 bool m_launchParametersHasBeenSet = false;
360 bool m_enabledHasBeenSet = false;
361 bool m_metadataHasBeenSet = false;
362 bool m_workingDirectoryHasBeenSet = false;
363 bool m_descriptionHasBeenSet = false;
364 bool m_arnHasBeenSet = false;
365 bool m_appBlockArnHasBeenSet = false;
366 bool m_iconS3LocationHasBeenSet = false;
367 bool m_platformsHasBeenSet = false;
368 bool m_instanceFamiliesHasBeenSet = false;
369 bool m_createdTimeHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace AppStream
374} // namespace Aws
void SetLaunchParameters(LaunchParametersT &&value)
const Aws::String & GetAppBlockArn() const
const Aws::Vector< PlatformType > & GetPlatforms() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetDisplayName(DisplayNameT &&value)
Definition Application.h:65
void SetLaunchPath(LaunchPathT &&value)
Application & WithDisplayName(DisplayNameT &&value)
Definition Application.h:70
void SetMetadata(MetadataT &&value)
void SetWorkingDirectory(WorkingDirectoryT &&value)
Application & WithWorkingDirectory(WorkingDirectoryT &&value)
void SetPlatforms(PlatformsT &&value)
AWS_APPSTREAM_API Application(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Application()=default
Application & WithLaunchParameters(LaunchParametersT &&value)
const Aws::String & GetName() const
Definition Application.h:44
void SetCreatedTime(CreatedTimeT &&value)
Application & WithAppBlockArn(AppBlockArnT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetAppBlockArn(AppBlockArnT &&value)
Application & WithIconURL(IconURLT &&value)
Definition Application.h:88
void SetInstanceFamilies(InstanceFamiliesT &&value)
Application & WithArn(ArnT &&value)
Application & WithIconS3Location(IconS3LocationT &&value)
Application & WithName(NameT &&value)
Definition Application.h:52
Application & WithPlatforms(PlatformsT &&value)
const Aws::String & GetDescription() const
AWS_APPSTREAM_API Application & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIconS3Location(IconS3LocationT &&value)
Application & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetInstanceFamilies() const
void SetIconURL(IconURLT &&value)
Definition Application.h:83
const Aws::String & GetWorkingDirectory() const
const Aws::String & GetArn() const
const Aws::String & GetLaunchParameters() const
Application & WithEnabled(bool value)
void SetDescription(DescriptionT &&value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const S3Location & GetIconS3Location() const
Application & WithCreatedTime(CreatedTimeT &&value)
Application & WithInstanceFamilies(InstanceFamiliesT &&value)
Application & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const Aws::String & GetDisplayName() const
Definition Application.h:62
Application & WithMetadata(MetadataT &&value)
const Aws::String & GetIconURL() const
Definition Application.h:80
Application & WithLaunchPath(LaunchPathT &&value)
const Aws::String & GetLaunchPath() const
Definition Application.h:98
Application & AddInstanceFamilies(InstanceFamiliesT &&value)
Application & AddPlatforms(PlatformType 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