AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template<typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
63 template<typename DisplayNameT = Aws::String>
64 CreateApplicationRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 CreateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const S3Location& GetIconS3Location() const { return m_iconS3Location; }
84 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
85 template<typename IconS3LocationT = S3Location>
86 void SetIconS3Location(IconS3LocationT&& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = std::forward<IconS3LocationT>(value); }
87 template<typename IconS3LocationT = S3Location>
88 CreateApplicationRequest& WithIconS3Location(IconS3LocationT&& value) { SetIconS3Location(std::forward<IconS3LocationT>(value)); return *this;}
90
92
95 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
96 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
97 template<typename LaunchPathT = Aws::String>
98 void SetLaunchPath(LaunchPathT&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::forward<LaunchPathT>(value); }
99 template<typename LaunchPathT = Aws::String>
100 CreateApplicationRequest& WithLaunchPath(LaunchPathT&& value) { SetLaunchPath(std::forward<LaunchPathT>(value)); return *this;}
102
104
107 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
108 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
109 template<typename WorkingDirectoryT = Aws::String>
110 void SetWorkingDirectory(WorkingDirectoryT&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::forward<WorkingDirectoryT>(value); }
111 template<typename WorkingDirectoryT = Aws::String>
112 CreateApplicationRequest& WithWorkingDirectory(WorkingDirectoryT&& value) { SetWorkingDirectory(std::forward<WorkingDirectoryT>(value)); return *this;}
114
116
119 inline const Aws::String& GetLaunchParameters() const { return m_launchParameters; }
120 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
121 template<typename LaunchParametersT = Aws::String>
122 void SetLaunchParameters(LaunchParametersT&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::forward<LaunchParametersT>(value); }
123 template<typename LaunchParametersT = Aws::String>
124 CreateApplicationRequest& WithLaunchParameters(LaunchParametersT&& value) { SetLaunchParameters(std::forward<LaunchParametersT>(value)); return *this;}
126
128
132 inline const Aws::Vector<PlatformType>& GetPlatforms() const { return m_platforms; }
133 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
134 template<typename PlatformsT = Aws::Vector<PlatformType>>
135 void SetPlatforms(PlatformsT&& value) { m_platformsHasBeenSet = true; m_platforms = std::forward<PlatformsT>(value); }
136 template<typename PlatformsT = Aws::Vector<PlatformType>>
137 CreateApplicationRequest& WithPlatforms(PlatformsT&& value) { SetPlatforms(std::forward<PlatformsT>(value)); return *this;}
138 inline CreateApplicationRequest& AddPlatforms(PlatformType value) { m_platformsHasBeenSet = true; m_platforms.push_back(value); return *this; }
140
142
146 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const { return m_instanceFamilies; }
147 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
148 template<typename InstanceFamiliesT = Aws::Vector<Aws::String>>
149 void SetInstanceFamilies(InstanceFamiliesT&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = std::forward<InstanceFamiliesT>(value); }
150 template<typename InstanceFamiliesT = Aws::Vector<Aws::String>>
151 CreateApplicationRequest& WithInstanceFamilies(InstanceFamiliesT&& value) { SetInstanceFamilies(std::forward<InstanceFamiliesT>(value)); return *this;}
152 template<typename InstanceFamiliesT = Aws::String>
153 CreateApplicationRequest& AddInstanceFamilies(InstanceFamiliesT&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.emplace_back(std::forward<InstanceFamiliesT>(value)); return *this; }
155
157
160 inline const Aws::String& GetAppBlockArn() const { return m_appBlockArn; }
161 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
162 template<typename AppBlockArnT = Aws::String>
163 void SetAppBlockArn(AppBlockArnT&& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = std::forward<AppBlockArnT>(value); }
164 template<typename AppBlockArnT = Aws::String>
165 CreateApplicationRequest& WithAppBlockArn(AppBlockArnT&& value) { SetAppBlockArn(std::forward<AppBlockArnT>(value)); return *this;}
167
169
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
176 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
178 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
179 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
180 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
181 }
183 private:
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::String m_displayName;
189 bool m_displayNameHasBeenSet = false;
190
191 Aws::String m_description;
192 bool m_descriptionHasBeenSet = false;
193
194 S3Location m_iconS3Location;
195 bool m_iconS3LocationHasBeenSet = false;
196
197 Aws::String m_launchPath;
198 bool m_launchPathHasBeenSet = false;
199
200 Aws::String m_workingDirectory;
201 bool m_workingDirectoryHasBeenSet = false;
202
203 Aws::String m_launchParameters;
204 bool m_launchParametersHasBeenSet = false;
205
206 Aws::Vector<PlatformType> m_platforms;
207 bool m_platformsHasBeenSet = false;
208
209 Aws::Vector<Aws::String> m_instanceFamilies;
210 bool m_instanceFamiliesHasBeenSet = false;
211
212 Aws::String m_appBlockArn;
213 bool m_appBlockArnHasBeenSet = false;
214
216 bool m_tagsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace AppStream
221} // 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