AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateApplicationRequest.h
Go to the documentation of this file.
1
6#pragma once
14#include <utility>
15
16namespace Aws
17{
18namespace AppStream
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
35
37
39
40
45 inline const Aws::String& GetName() const{ return m_name; }
46
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70
75 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
76
81 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82
87 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
88
89
94 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
95
100 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
101
106 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
107
112 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
113
118 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
119
124 inline CreateApplicationRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
125
130 inline CreateApplicationRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
131
136 inline CreateApplicationRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
137
138
142 inline const Aws::String& GetDescription() const{ return m_description; }
143
147 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148
152 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
153
157 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
158
162 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
163
167 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
168
172 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
173
177 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
178
179
183 inline const S3Location& GetIconS3Location() const{ return m_iconS3Location; }
184
188 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
189
193 inline void SetIconS3Location(const S3Location& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = value; }
194
198 inline void SetIconS3Location(S3Location&& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = std::move(value); }
199
203 inline CreateApplicationRequest& WithIconS3Location(const S3Location& value) { SetIconS3Location(value); return *this;}
204
208 inline CreateApplicationRequest& WithIconS3Location(S3Location&& value) { SetIconS3Location(std::move(value)); return *this;}
209
210
214 inline const Aws::String& GetLaunchPath() const{ return m_launchPath; }
215
219 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
220
224 inline void SetLaunchPath(const Aws::String& value) { m_launchPathHasBeenSet = true; m_launchPath = value; }
225
229 inline void SetLaunchPath(Aws::String&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::move(value); }
230
234 inline void SetLaunchPath(const char* value) { m_launchPathHasBeenSet = true; m_launchPath.assign(value); }
235
239 inline CreateApplicationRequest& WithLaunchPath(const Aws::String& value) { SetLaunchPath(value); return *this;}
240
244 inline CreateApplicationRequest& WithLaunchPath(Aws::String&& value) { SetLaunchPath(std::move(value)); return *this;}
245
249 inline CreateApplicationRequest& WithLaunchPath(const char* value) { SetLaunchPath(value); return *this;}
250
251
255 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
256
260 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
261
265 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
266
270 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
271
275 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
276
281
285 inline CreateApplicationRequest& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
286
290 inline CreateApplicationRequest& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
291
292
296 inline const Aws::String& GetLaunchParameters() const{ return m_launchParameters; }
297
301 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
302
306 inline void SetLaunchParameters(const Aws::String& value) { m_launchParametersHasBeenSet = true; m_launchParameters = value; }
307
311 inline void SetLaunchParameters(Aws::String&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::move(value); }
312
316 inline void SetLaunchParameters(const char* value) { m_launchParametersHasBeenSet = true; m_launchParameters.assign(value); }
317
322
326 inline CreateApplicationRequest& WithLaunchParameters(Aws::String&& value) { SetLaunchParameters(std::move(value)); return *this;}
327
331 inline CreateApplicationRequest& WithLaunchParameters(const char* value) { SetLaunchParameters(value); return *this;}
332
333
338 inline const Aws::Vector<PlatformType>& GetPlatforms() const{ return m_platforms; }
339
344 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
345
350 inline void SetPlatforms(const Aws::Vector<PlatformType>& value) { m_platformsHasBeenSet = true; m_platforms = value; }
351
356 inline void SetPlatforms(Aws::Vector<PlatformType>&& value) { m_platformsHasBeenSet = true; m_platforms = std::move(value); }
357
363
368 inline CreateApplicationRequest& WithPlatforms(Aws::Vector<PlatformType>&& value) { SetPlatforms(std::move(value)); return *this;}
369
374 inline CreateApplicationRequest& AddPlatforms(const PlatformType& value) { m_platformsHasBeenSet = true; m_platforms.push_back(value); return *this; }
375
380 inline CreateApplicationRequest& AddPlatforms(PlatformType&& value) { m_platformsHasBeenSet = true; m_platforms.push_back(std::move(value)); return *this; }
381
382
387 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const{ return m_instanceFamilies; }
388
393 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
394
399 inline void SetInstanceFamilies(const Aws::Vector<Aws::String>& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = value; }
400
405 inline void SetInstanceFamilies(Aws::Vector<Aws::String>&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = std::move(value); }
406
412
418
423 inline CreateApplicationRequest& AddInstanceFamilies(const Aws::String& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; }
424
429 inline CreateApplicationRequest& AddInstanceFamilies(Aws::String&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(std::move(value)); return *this; }
430
435 inline CreateApplicationRequest& AddInstanceFamilies(const char* value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; }
436
437
441 inline const Aws::String& GetAppBlockArn() const{ return m_appBlockArn; }
442
446 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
447
451 inline void SetAppBlockArn(const Aws::String& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = value; }
452
456 inline void SetAppBlockArn(Aws::String&& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = std::move(value); }
457
461 inline void SetAppBlockArn(const char* value) { m_appBlockArnHasBeenSet = true; m_appBlockArn.assign(value); }
462
466 inline CreateApplicationRequest& WithAppBlockArn(const Aws::String& value) { SetAppBlockArn(value); return *this;}
467
471 inline CreateApplicationRequest& WithAppBlockArn(Aws::String&& value) { SetAppBlockArn(std::move(value)); return *this;}
472
476 inline CreateApplicationRequest& WithAppBlockArn(const char* value) { SetAppBlockArn(value); return *this;}
477
478
482 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
483
487 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
488
492 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
493
497 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
498
503
507 inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
508
512 inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
513
517 inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
518
522 inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
523
527 inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
528
532 inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
533
537 inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
538
542 inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
543
544 private:
545
546 Aws::String m_name;
547 bool m_nameHasBeenSet = false;
548
549 Aws::String m_displayName;
550 bool m_displayNameHasBeenSet = false;
551
552 Aws::String m_description;
553 bool m_descriptionHasBeenSet = false;
554
555 S3Location m_iconS3Location;
556 bool m_iconS3LocationHasBeenSet = false;
557
558 Aws::String m_launchPath;
559 bool m_launchPathHasBeenSet = false;
560
561 Aws::String m_workingDirectory;
562 bool m_workingDirectoryHasBeenSet = false;
563
564 Aws::String m_launchParameters;
565 bool m_launchParametersHasBeenSet = false;
566
567 Aws::Vector<PlatformType> m_platforms;
568 bool m_platformsHasBeenSet = false;
569
570 Aws::Vector<Aws::String> m_instanceFamilies;
571 bool m_instanceFamiliesHasBeenSet = false;
572
573 Aws::String m_appBlockArn;
574 bool m_appBlockArnHasBeenSet = false;
575
577 bool m_tagsHasBeenSet = false;
578 };
579
580} // namespace Model
581} // namespace AppStream
582} // namespace Aws
#define AWS_APPSTREAM_API
CreateApplicationRequest & WithIconS3Location(S3Location &&value)
CreateApplicationRequest & WithWorkingDirectory(const char *value)
void SetInstanceFamilies(const Aws::Vector< Aws::String > &value)
CreateApplicationRequest & AddPlatforms(PlatformType &&value)
CreateApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateApplicationRequest & AddInstanceFamilies(Aws::String &&value)
CreateApplicationRequest & WithName(Aws::String &&value)
CreateApplicationRequest & WithDescription(Aws::String &&value)
CreateApplicationRequest & WithName(const char *value)
CreateApplicationRequest & WithLaunchPath(Aws::String &&value)
CreateApplicationRequest & WithDescription(const Aws::String &value)
CreateApplicationRequest & WithPlatforms(Aws::Vector< PlatformType > &&value)
CreateApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateApplicationRequest & WithLaunchParameters(const Aws::String &value)
CreateApplicationRequest & WithDisplayName(Aws::String &&value)
CreateApplicationRequest & WithAppBlockArn(const char *value)
CreateApplicationRequest & WithPlatforms(const Aws::Vector< PlatformType > &value)
CreateApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & AddPlatforms(const PlatformType &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateApplicationRequest & AddTags(const char *key, Aws::String &&value)
CreateApplicationRequest & WithDisplayName(const Aws::String &value)
CreateApplicationRequest & WithInstanceFamilies(const Aws::Vector< Aws::String > &value)
CreateApplicationRequest & WithInstanceFamilies(Aws::Vector< Aws::String > &&value)
CreateApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateApplicationRequest & WithWorkingDirectory(Aws::String &&value)
const Aws::Vector< Aws::String > & GetInstanceFamilies() const
CreateApplicationRequest & WithLaunchPath(const Aws::String &value)
CreateApplicationRequest & WithLaunchParameters(const char *value)
CreateApplicationRequest & WithAppBlockArn(Aws::String &&value)
void SetPlatforms(const Aws::Vector< PlatformType > &value)
void SetInstanceFamilies(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateApplicationRequest & AddInstanceFamilies(const char *value)
CreateApplicationRequest & AddTags(Aws::String &&key, const char *value)
CreateApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetPlatforms(Aws::Vector< PlatformType > &&value)
CreateApplicationRequest & WithLaunchPath(const char *value)
const Aws::Vector< PlatformType > & GetPlatforms() const
CreateApplicationRequest & AddInstanceFamilies(const Aws::String &value)
CreateApplicationRequest & WithDescription(const char *value)
CreateApplicationRequest & AddTags(const char *key, const char *value)
CreateApplicationRequest & WithAppBlockArn(const Aws::String &value)
CreateApplicationRequest & WithLaunchParameters(Aws::String &&value)
CreateApplicationRequest & WithIconS3Location(const S3Location &value)
CreateApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateApplicationRequest & WithWorkingDirectory(const Aws::String &value)
CreateApplicationRequest & WithName(const Aws::String &value)
CreateApplicationRequest & WithDisplayName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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