AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/PlatformType.h>
10#include <aws/appstream/model/S3Location.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 AppStream {
19namespace Model {
20
24 public:
25 AWS_APPSTREAM_API CreateApplicationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
32
33 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetDisplayName() const { return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 template <typename DisplayNameT = Aws::String>
64 void SetDisplayName(DisplayNameT&& value) {
65 m_displayNameHasBeenSet = true;
66 m_displayName = std::forward<DisplayNameT>(value);
67 }
68 template <typename DisplayNameT = Aws::String>
70 SetDisplayName(std::forward<DisplayNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const S3Location& GetIconS3Location() const { return m_iconS3Location; }
98 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
99 template <typename IconS3LocationT = S3Location>
100 void SetIconS3Location(IconS3LocationT&& value) {
101 m_iconS3LocationHasBeenSet = true;
102 m_iconS3Location = std::forward<IconS3LocationT>(value);
103 }
104 template <typename IconS3LocationT = S3Location>
106 SetIconS3Location(std::forward<IconS3LocationT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
116 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
117 template <typename LaunchPathT = Aws::String>
118 void SetLaunchPath(LaunchPathT&& value) {
119 m_launchPathHasBeenSet = true;
120 m_launchPath = std::forward<LaunchPathT>(value);
121 }
122 template <typename LaunchPathT = Aws::String>
124 SetLaunchPath(std::forward<LaunchPathT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
134 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
135 template <typename WorkingDirectoryT = Aws::String>
136 void SetWorkingDirectory(WorkingDirectoryT&& value) {
137 m_workingDirectoryHasBeenSet = true;
138 m_workingDirectory = std::forward<WorkingDirectoryT>(value);
139 }
140 template <typename WorkingDirectoryT = Aws::String>
141 CreateApplicationRequest& WithWorkingDirectory(WorkingDirectoryT&& value) {
142 SetWorkingDirectory(std::forward<WorkingDirectoryT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetLaunchParameters() const { return m_launchParameters; }
152 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
153 template <typename LaunchParametersT = Aws::String>
154 void SetLaunchParameters(LaunchParametersT&& value) {
155 m_launchParametersHasBeenSet = true;
156 m_launchParameters = std::forward<LaunchParametersT>(value);
157 }
158 template <typename LaunchParametersT = Aws::String>
159 CreateApplicationRequest& WithLaunchParameters(LaunchParametersT&& value) {
160 SetLaunchParameters(std::forward<LaunchParametersT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::Vector<PlatformType>& GetPlatforms() const { return m_platforms; }
171 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
172 template <typename PlatformsT = Aws::Vector<PlatformType>>
173 void SetPlatforms(PlatformsT&& value) {
174 m_platformsHasBeenSet = true;
175 m_platforms = std::forward<PlatformsT>(value);
176 }
177 template <typename PlatformsT = Aws::Vector<PlatformType>>
179 SetPlatforms(std::forward<PlatformsT>(value));
180 return *this;
181 }
183 m_platformsHasBeenSet = true;
184 m_platforms.push_back(value);
185 return *this;
186 }
188
190
194 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const { return m_instanceFamilies; }
195 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
196 template <typename InstanceFamiliesT = Aws::Vector<Aws::String>>
197 void SetInstanceFamilies(InstanceFamiliesT&& value) {
198 m_instanceFamiliesHasBeenSet = true;
199 m_instanceFamilies = std::forward<InstanceFamiliesT>(value);
200 }
201 template <typename InstanceFamiliesT = Aws::Vector<Aws::String>>
202 CreateApplicationRequest& WithInstanceFamilies(InstanceFamiliesT&& value) {
203 SetInstanceFamilies(std::forward<InstanceFamiliesT>(value));
204 return *this;
205 }
206 template <typename InstanceFamiliesT = Aws::String>
207 CreateApplicationRequest& AddInstanceFamilies(InstanceFamiliesT&& value) {
208 m_instanceFamiliesHasBeenSet = true;
209 m_instanceFamilies.emplace_back(std::forward<InstanceFamiliesT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::String& GetAppBlockArn() const { return m_appBlockArn; }
219 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
220 template <typename AppBlockArnT = Aws::String>
221 void SetAppBlockArn(AppBlockArnT&& value) {
222 m_appBlockArnHasBeenSet = true;
223 m_appBlockArn = std::forward<AppBlockArnT>(value);
224 }
225 template <typename AppBlockArnT = Aws::String>
227 SetAppBlockArn(std::forward<AppBlockArnT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
237 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
238 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
239 void SetTags(TagsT&& value) {
240 m_tagsHasBeenSet = true;
241 m_tags = std::forward<TagsT>(value);
242 }
243 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
245 SetTags(std::forward<TagsT>(value));
246 return *this;
247 }
248 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
249 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
250 m_tagsHasBeenSet = true;
251 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
252 return *this;
253 }
255 private:
256 Aws::String m_name;
257
258 Aws::String m_displayName;
259
260 Aws::String m_description;
261
262 S3Location m_iconS3Location;
263
264 Aws::String m_launchPath;
265
266 Aws::String m_workingDirectory;
267
268 Aws::String m_launchParameters;
269
270 Aws::Vector<PlatformType> m_platforms;
271
272 Aws::Vector<Aws::String> m_instanceFamilies;
273
274 Aws::String m_appBlockArn;
275
277 bool m_nameHasBeenSet = false;
278 bool m_displayNameHasBeenSet = false;
279 bool m_descriptionHasBeenSet = false;
280 bool m_iconS3LocationHasBeenSet = false;
281 bool m_launchPathHasBeenSet = false;
282 bool m_workingDirectoryHasBeenSet = false;
283 bool m_launchParametersHasBeenSet = false;
284 bool m_platformsHasBeenSet = false;
285 bool m_instanceFamiliesHasBeenSet = false;
286 bool m_appBlockArnHasBeenSet = false;
287 bool m_tagsHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace AppStream
292} // namespace Aws
CreateApplicationRequest & AddPlatforms(PlatformType value)
CreateApplicationRequest & WithLaunchPath(LaunchPathT &&value)
CreateApplicationRequest & WithWorkingDirectory(WorkingDirectoryT &&value)
CreateApplicationRequest & WithDisplayName(DisplayNameT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & WithName(NameT &&value)
CreateApplicationRequest & WithInstanceFamilies(InstanceFamiliesT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & WithAppBlockArn(AppBlockArnT &&value)
CreateApplicationRequest & WithLaunchParameters(LaunchParametersT &&value)
CreateApplicationRequest & WithTags(TagsT &&value)
AWS_APPSTREAM_API CreateApplicationRequest()=default
CreateApplicationRequest & AddInstanceFamilies(InstanceFamiliesT &&value)
const Aws::Vector< Aws::String > & GetInstanceFamilies() const
virtual const char * GetServiceRequestName() const override
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithIconS3Location(IconS3LocationT &&value)
const Aws::Vector< PlatformType > & GetPlatforms() const
CreateApplicationRequest & WithPlatforms(PlatformsT &&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