AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appstream/model/S3Location.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/appstream/model/PlatformType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AppStream
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPSTREAM_API CreateApplicationRequest();
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
36 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
61 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
64 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
65 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
66 inline CreateApplicationRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
67 inline CreateApplicationRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
68 inline CreateApplicationRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
89 inline const S3Location& GetIconS3Location() const{ return m_iconS3Location; }
90 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
91 inline void SetIconS3Location(const S3Location& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = value; }
92 inline void SetIconS3Location(S3Location&& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = std::move(value); }
93 inline CreateApplicationRequest& WithIconS3Location(const S3Location& value) { SetIconS3Location(value); return *this;}
94 inline CreateApplicationRequest& WithIconS3Location(S3Location&& value) { SetIconS3Location(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetLaunchPath() const{ return m_launchPath; }
102 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
103 inline void SetLaunchPath(const Aws::String& value) { m_launchPathHasBeenSet = true; m_launchPath = value; }
104 inline void SetLaunchPath(Aws::String&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::move(value); }
105 inline void SetLaunchPath(const char* value) { m_launchPathHasBeenSet = true; m_launchPath.assign(value); }
106 inline CreateApplicationRequest& WithLaunchPath(const Aws::String& value) { SetLaunchPath(value); return *this;}
107 inline CreateApplicationRequest& WithLaunchPath(Aws::String&& value) { SetLaunchPath(std::move(value)); return *this;}
108 inline CreateApplicationRequest& WithLaunchPath(const char* value) { SetLaunchPath(value); return *this;}
110
112
115 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
116 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
117 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
118 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
119 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
121 inline CreateApplicationRequest& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
122 inline CreateApplicationRequest& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
124
126
129 inline const Aws::String& GetLaunchParameters() const{ return m_launchParameters; }
130 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
131 inline void SetLaunchParameters(const Aws::String& value) { m_launchParametersHasBeenSet = true; m_launchParameters = value; }
132 inline void SetLaunchParameters(Aws::String&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::move(value); }
133 inline void SetLaunchParameters(const char* value) { m_launchParametersHasBeenSet = true; m_launchParameters.assign(value); }
135 inline CreateApplicationRequest& WithLaunchParameters(Aws::String&& value) { SetLaunchParameters(std::move(value)); return *this;}
136 inline CreateApplicationRequest& WithLaunchParameters(const char* value) { SetLaunchParameters(value); return *this;}
138
140
144 inline const Aws::Vector<PlatformType>& GetPlatforms() const{ return m_platforms; }
145 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
146 inline void SetPlatforms(const Aws::Vector<PlatformType>& value) { m_platformsHasBeenSet = true; m_platforms = value; }
147 inline void SetPlatforms(Aws::Vector<PlatformType>&& value) { m_platformsHasBeenSet = true; m_platforms = std::move(value); }
149 inline CreateApplicationRequest& WithPlatforms(Aws::Vector<PlatformType>&& value) { SetPlatforms(std::move(value)); return *this;}
150 inline CreateApplicationRequest& AddPlatforms(const PlatformType& value) { m_platformsHasBeenSet = true; m_platforms.push_back(value); return *this; }
151 inline CreateApplicationRequest& AddPlatforms(PlatformType&& value) { m_platformsHasBeenSet = true; m_platforms.push_back(std::move(value)); return *this; }
153
155
159 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const{ return m_instanceFamilies; }
160 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
161 inline void SetInstanceFamilies(const Aws::Vector<Aws::String>& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = value; }
162 inline void SetInstanceFamilies(Aws::Vector<Aws::String>&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = std::move(value); }
165 inline CreateApplicationRequest& AddInstanceFamilies(const Aws::String& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; }
166 inline CreateApplicationRequest& AddInstanceFamilies(Aws::String&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(std::move(value)); return *this; }
167 inline CreateApplicationRequest& AddInstanceFamilies(const char* value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.push_back(value); return *this; }
169
171
174 inline const Aws::String& GetAppBlockArn() const{ return m_appBlockArn; }
175 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
176 inline void SetAppBlockArn(const Aws::String& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = value; }
177 inline void SetAppBlockArn(Aws::String&& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = std::move(value); }
178 inline void SetAppBlockArn(const char* value) { m_appBlockArnHasBeenSet = true; m_appBlockArn.assign(value); }
179 inline CreateApplicationRequest& WithAppBlockArn(const Aws::String& value) { SetAppBlockArn(value); return *this;}
180 inline CreateApplicationRequest& WithAppBlockArn(Aws::String&& value) { SetAppBlockArn(std::move(value)); return *this;}
181 inline CreateApplicationRequest& WithAppBlockArn(const char* value) { SetAppBlockArn(value); return *this;}
183
185
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
189 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
190 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
191 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
193 inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
194 inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
195 inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
196 inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
197 inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
198 inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
199 inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
200 inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
202 private:
203
204 Aws::String m_name;
205 bool m_nameHasBeenSet = false;
206
207 Aws::String m_displayName;
208 bool m_displayNameHasBeenSet = false;
209
210 Aws::String m_description;
211 bool m_descriptionHasBeenSet = false;
212
213 S3Location m_iconS3Location;
214 bool m_iconS3LocationHasBeenSet = false;
215
216 Aws::String m_launchPath;
217 bool m_launchPathHasBeenSet = false;
218
219 Aws::String m_workingDirectory;
220 bool m_workingDirectoryHasBeenSet = false;
221
222 Aws::String m_launchParameters;
223 bool m_launchParametersHasBeenSet = false;
224
225 Aws::Vector<PlatformType> m_platforms;
226 bool m_platformsHasBeenSet = false;
227
228 Aws::Vector<Aws::String> m_instanceFamilies;
229 bool m_instanceFamiliesHasBeenSet = false;
230
231 Aws::String m_appBlockArn;
232 bool m_appBlockArnHasBeenSet = false;
233
235 bool m_tagsHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace AppStream
240} // namespace Aws
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