AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
CreateStackRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AccessEndpoint.h>
10#include <aws/appstream/model/AgentAccessConfig.h>
11#include <aws/appstream/model/ApplicationSettings.h>
12#include <aws/appstream/model/ContentRedirection.h>
13#include <aws/appstream/model/StorageConnector.h>
14#include <aws/appstream/model/StorageConnectorAuthentication.h>
15#include <aws/appstream/model/StreamingExperienceSettings.h>
16#include <aws/appstream/model/UserSetting.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace AppStream {
25namespace Model {
26
30 public:
31 AWS_APPSTREAM_API CreateStackRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateStack"; }
38
39 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
40
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 CreateStackRequest& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 CreateStackRequest& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDisplayName() const { return m_displayName; }
84 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
85 template <typename DisplayNameT = Aws::String>
86 void SetDisplayName(DisplayNameT&& value) {
87 m_displayNameHasBeenSet = true;
88 m_displayName = std::forward<DisplayNameT>(value);
89 }
90 template <typename DisplayNameT = Aws::String>
91 CreateStackRequest& WithDisplayName(DisplayNameT&& value) {
92 SetDisplayName(std::forward<DisplayNameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
102 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
103 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
104 void SetStorageConnectors(StorageConnectorsT&& value) {
105 m_storageConnectorsHasBeenSet = true;
106 m_storageConnectors = std::forward<StorageConnectorsT>(value);
107 }
108 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
109 CreateStackRequest& WithStorageConnectors(StorageConnectorsT&& value) {
110 SetStorageConnectors(std::forward<StorageConnectorsT>(value));
111 return *this;
112 }
113 template <typename StorageConnectorsT = StorageConnector>
114 CreateStackRequest& AddStorageConnectors(StorageConnectorsT&& value) {
115 m_storageConnectorsHasBeenSet = true;
116 m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
126 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
127 template <typename RedirectURLT = Aws::String>
128 void SetRedirectURL(RedirectURLT&& value) {
129 m_redirectURLHasBeenSet = true;
130 m_redirectURL = std::forward<RedirectURLT>(value);
131 }
132 template <typename RedirectURLT = Aws::String>
133 CreateStackRequest& WithRedirectURL(RedirectURLT&& value) {
134 SetRedirectURL(std::forward<RedirectURLT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
145 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
146 template <typename FeedbackURLT = Aws::String>
147 void SetFeedbackURL(FeedbackURLT&& value) {
148 m_feedbackURLHasBeenSet = true;
149 m_feedbackURL = std::forward<FeedbackURLT>(value);
150 }
151 template <typename FeedbackURLT = Aws::String>
152 CreateStackRequest& WithFeedbackURL(FeedbackURLT&& value) {
153 SetFeedbackURL(std::forward<FeedbackURLT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
164 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
165 template <typename UserSettingsT = Aws::Vector<UserSetting>>
166 void SetUserSettings(UserSettingsT&& value) {
167 m_userSettingsHasBeenSet = true;
168 m_userSettings = std::forward<UserSettingsT>(value);
169 }
170 template <typename UserSettingsT = Aws::Vector<UserSetting>>
171 CreateStackRequest& WithUserSettings(UserSettingsT&& value) {
172 SetUserSettings(std::forward<UserSettingsT>(value));
173 return *this;
174 }
175 template <typename UserSettingsT = UserSetting>
176 CreateStackRequest& AddUserSettings(UserSettingsT&& value) {
177 m_userSettingsHasBeenSet = true;
178 m_userSettings.emplace_back(std::forward<UserSettingsT>(value));
179 return *this;
180 }
182
184
189 inline const ApplicationSettings& GetApplicationSettings() const { return m_applicationSettings; }
190 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
191 template <typename ApplicationSettingsT = ApplicationSettings>
192 void SetApplicationSettings(ApplicationSettingsT&& value) {
193 m_applicationSettingsHasBeenSet = true;
194 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
195 }
196 template <typename ApplicationSettingsT = ApplicationSettings>
197 CreateStackRequest& WithApplicationSettings(ApplicationSettingsT&& value) {
198 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
199 return *this;
200 }
202
204
215 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
216 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
217 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
218 void SetTags(TagsT&& value) {
219 m_tagsHasBeenSet = true;
220 m_tags = std::forward<TagsT>(value);
221 }
222 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 CreateStackRequest& WithTags(TagsT&& value) {
224 SetTags(std::forward<TagsT>(value));
225 return *this;
226 }
227 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
228 CreateStackRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
231 return *this;
232 }
234
236
241 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
242 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
243 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
244 void SetAccessEndpoints(AccessEndpointsT&& value) {
245 m_accessEndpointsHasBeenSet = true;
246 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
247 }
248 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
249 CreateStackRequest& WithAccessEndpoints(AccessEndpointsT&& value) {
250 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
251 return *this;
252 }
253 template <typename AccessEndpointsT = AccessEndpoint>
254 CreateStackRequest& AddAccessEndpoints(AccessEndpointsT&& value) {
255 m_accessEndpointsHasBeenSet = true;
256 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
257 return *this;
258 }
260
262
267 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
268 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
269 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
270 void SetEmbedHostDomains(EmbedHostDomainsT&& value) {
271 m_embedHostDomainsHasBeenSet = true;
272 m_embedHostDomains = std::forward<EmbedHostDomainsT>(value);
273 }
274 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
275 CreateStackRequest& WithEmbedHostDomains(EmbedHostDomainsT&& value) {
276 SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value));
277 return *this;
278 }
279 template <typename EmbedHostDomainsT = Aws::String>
280 CreateStackRequest& AddEmbedHostDomains(EmbedHostDomainsT&& value) {
281 m_embedHostDomainsHasBeenSet = true;
282 m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value));
283 return *this;
284 }
286
288
292 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
293 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
294 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
295 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
296 m_streamingExperienceSettingsHasBeenSet = true;
297 m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value);
298 }
299 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
300 CreateStackRequest& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
301 SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value));
302 return *this;
303 }
305
307
308 inline const ContentRedirection& GetContentRedirection() const { return m_contentRedirection; }
309 inline bool ContentRedirectionHasBeenSet() const { return m_contentRedirectionHasBeenSet; }
310 template <typename ContentRedirectionT = ContentRedirection>
311 void SetContentRedirection(ContentRedirectionT&& value) {
312 m_contentRedirectionHasBeenSet = true;
313 m_contentRedirection = std::forward<ContentRedirectionT>(value);
314 }
315 template <typename ContentRedirectionT = ContentRedirection>
316 CreateStackRequest& WithContentRedirection(ContentRedirectionT&& value) {
317 SetContentRedirection(std::forward<ContentRedirectionT>(value));
318 return *this;
319 }
321
323
327 inline const AgentAccessConfig& GetAgentAccessConfig() const { return m_agentAccessConfig; }
328 inline bool AgentAccessConfigHasBeenSet() const { return m_agentAccessConfigHasBeenSet; }
329 template <typename AgentAccessConfigT = AgentAccessConfig>
330 void SetAgentAccessConfig(AgentAccessConfigT&& value) {
331 m_agentAccessConfigHasBeenSet = true;
332 m_agentAccessConfig = std::forward<AgentAccessConfigT>(value);
333 }
334 template <typename AgentAccessConfigT = AgentAccessConfig>
335 CreateStackRequest& WithAgentAccessConfig(AgentAccessConfigT&& value) {
336 SetAgentAccessConfig(std::forward<AgentAccessConfigT>(value));
337 return *this;
338 }
340
342
349 inline StorageConnectorAuthentication GetStorageConnectorAuthentication() const { return m_storageConnectorAuthentication; }
350 inline bool StorageConnectorAuthenticationHasBeenSet() const { return m_storageConnectorAuthenticationHasBeenSet; }
352 m_storageConnectorAuthenticationHasBeenSet = true;
353 m_storageConnectorAuthentication = value;
354 }
357 return *this;
358 }
360 private:
361 Aws::String m_name;
362
363 Aws::String m_description;
364
365 Aws::String m_displayName;
366
367 Aws::Vector<StorageConnector> m_storageConnectors;
368
369 Aws::String m_redirectURL;
370
371 Aws::String m_feedbackURL;
372
373 Aws::Vector<UserSetting> m_userSettings;
374
375 ApplicationSettings m_applicationSettings;
376
378
379 Aws::Vector<AccessEndpoint> m_accessEndpoints;
380
381 Aws::Vector<Aws::String> m_embedHostDomains;
382
383 StreamingExperienceSettings m_streamingExperienceSettings;
384
385 ContentRedirection m_contentRedirection;
386
387 AgentAccessConfig m_agentAccessConfig;
388
390 bool m_nameHasBeenSet = false;
391 bool m_descriptionHasBeenSet = false;
392 bool m_displayNameHasBeenSet = false;
393 bool m_storageConnectorsHasBeenSet = false;
394 bool m_redirectURLHasBeenSet = false;
395 bool m_feedbackURLHasBeenSet = false;
396 bool m_userSettingsHasBeenSet = false;
397 bool m_applicationSettingsHasBeenSet = false;
398 bool m_tagsHasBeenSet = false;
399 bool m_accessEndpointsHasBeenSet = false;
400 bool m_embedHostDomainsHasBeenSet = false;
401 bool m_streamingExperienceSettingsHasBeenSet = false;
402 bool m_contentRedirectionHasBeenSet = false;
403 bool m_agentAccessConfigHasBeenSet = false;
404 bool m_storageConnectorAuthenticationHasBeenSet = false;
405};
406
407} // namespace Model
408} // namespace AppStream
409} // namespace Aws
void SetApplicationSettings(ApplicationSettingsT &&value)
CreateStackRequest & WithDisplayName(DisplayNameT &&value)
const Aws::Vector< Aws::String > & GetEmbedHostDomains() const
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStackRequest & WithContentRedirection(ContentRedirectionT &&value)
void SetAccessEndpoints(AccessEndpointsT &&value)
CreateStackRequest & AddUserSettings(UserSettingsT &&value)
void SetStorageConnectorAuthentication(StorageConnectorAuthentication value)
CreateStackRequest & AddEmbedHostDomains(EmbedHostDomainsT &&value)
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
void SetStorageConnectors(StorageConnectorsT &&value)
CreateStackRequest & AddStorageConnectors(StorageConnectorsT &&value)
AWS_APPSTREAM_API CreateStackRequest()=default
CreateStackRequest & WithAccessEndpoints(AccessEndpointsT &&value)
CreateStackRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateStackRequest & WithStorageConnectorAuthentication(StorageConnectorAuthentication value)
CreateStackRequest & WithStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
const Aws::Vector< StorageConnector > & GetStorageConnectors() const
virtual const char * GetServiceRequestName() const override
const AgentAccessConfig & GetAgentAccessConfig() const
CreateStackRequest & WithDescription(DescriptionT &&value)
CreateStackRequest & WithEmbedHostDomains(EmbedHostDomainsT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
const ApplicationSettings & GetApplicationSettings() const
CreateStackRequest & WithAgentAccessConfig(AgentAccessConfigT &&value)
void SetContentRedirection(ContentRedirectionT &&value)
CreateStackRequest & WithFeedbackURL(FeedbackURLT &&value)
StorageConnectorAuthentication GetStorageConnectorAuthentication() const
CreateStackRequest & WithStorageConnectors(StorageConnectorsT &&value)
const ContentRedirection & GetContentRedirection() const
CreateStackRequest & WithTags(TagsT &&value)
void SetEmbedHostDomains(EmbedHostDomainsT &&value)
void SetAgentAccessConfig(AgentAccessConfigT &&value)
const Aws::Vector< UserSetting > & GetUserSettings() const
CreateStackRequest & WithApplicationSettings(ApplicationSettingsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateStackRequest & WithRedirectURL(RedirectURLT &&value)
void SetStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
const StreamingExperienceSettings & GetStreamingExperienceSettings() const
CreateStackRequest & WithName(NameT &&value)
CreateStackRequest & AddAccessEndpoints(AccessEndpointsT &&value)
CreateStackRequest & WithUserSettings(UserSettingsT &&value)
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