AWS SDK for C++

AWS SDK for C++ Version 1.11.939

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/appstream/model/WebAuthnRedirection.h>
18#include <aws/core/utils/memory/stl/AWSMap.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25namespace AppStream {
26namespace Model {
27
31 public:
32 AWS_APPSTREAM_API CreateStackRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateStack"; }
39
40 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
41
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
56 CreateStackRequest& WithName(NameT&& value) {
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template <typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) {
70 m_descriptionHasBeenSet = true;
71 m_description = std::forward<DescriptionT>(value);
72 }
73 template <typename DescriptionT = Aws::String>
74 CreateStackRequest& WithDescription(DescriptionT&& value) {
75 SetDescription(std::forward<DescriptionT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDisplayName() const { return m_displayName; }
85 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
86 template <typename DisplayNameT = Aws::String>
87 void SetDisplayName(DisplayNameT&& value) {
88 m_displayNameHasBeenSet = true;
89 m_displayName = std::forward<DisplayNameT>(value);
90 }
91 template <typename DisplayNameT = Aws::String>
92 CreateStackRequest& WithDisplayName(DisplayNameT&& value) {
93 SetDisplayName(std::forward<DisplayNameT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
103 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
104 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
105 void SetStorageConnectors(StorageConnectorsT&& value) {
106 m_storageConnectorsHasBeenSet = true;
107 m_storageConnectors = std::forward<StorageConnectorsT>(value);
108 }
109 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
110 CreateStackRequest& WithStorageConnectors(StorageConnectorsT&& value) {
111 SetStorageConnectors(std::forward<StorageConnectorsT>(value));
112 return *this;
113 }
114 template <typename StorageConnectorsT = StorageConnector>
115 CreateStackRequest& AddStorageConnectors(StorageConnectorsT&& value) {
116 m_storageConnectorsHasBeenSet = true;
117 m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
127 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
128 template <typename RedirectURLT = Aws::String>
129 void SetRedirectURL(RedirectURLT&& value) {
130 m_redirectURLHasBeenSet = true;
131 m_redirectURL = std::forward<RedirectURLT>(value);
132 }
133 template <typename RedirectURLT = Aws::String>
134 CreateStackRequest& WithRedirectURL(RedirectURLT&& value) {
135 SetRedirectURL(std::forward<RedirectURLT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
146 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
147 template <typename FeedbackURLT = Aws::String>
148 void SetFeedbackURL(FeedbackURLT&& value) {
149 m_feedbackURLHasBeenSet = true;
150 m_feedbackURL = std::forward<FeedbackURLT>(value);
151 }
152 template <typename FeedbackURLT = Aws::String>
153 CreateStackRequest& WithFeedbackURL(FeedbackURLT&& value) {
154 SetFeedbackURL(std::forward<FeedbackURLT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
165 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
166 template <typename UserSettingsT = Aws::Vector<UserSetting>>
167 void SetUserSettings(UserSettingsT&& value) {
168 m_userSettingsHasBeenSet = true;
169 m_userSettings = std::forward<UserSettingsT>(value);
170 }
171 template <typename UserSettingsT = Aws::Vector<UserSetting>>
172 CreateStackRequest& WithUserSettings(UserSettingsT&& value) {
173 SetUserSettings(std::forward<UserSettingsT>(value));
174 return *this;
175 }
176 template <typename UserSettingsT = UserSetting>
177 CreateStackRequest& AddUserSettings(UserSettingsT&& value) {
178 m_userSettingsHasBeenSet = true;
179 m_userSettings.emplace_back(std::forward<UserSettingsT>(value));
180 return *this;
181 }
183
185
190 inline const ApplicationSettings& GetApplicationSettings() const { return m_applicationSettings; }
191 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
192 template <typename ApplicationSettingsT = ApplicationSettings>
193 void SetApplicationSettings(ApplicationSettingsT&& value) {
194 m_applicationSettingsHasBeenSet = true;
195 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
196 }
197 template <typename ApplicationSettingsT = ApplicationSettings>
198 CreateStackRequest& WithApplicationSettings(ApplicationSettingsT&& value) {
199 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
200 return *this;
201 }
203
205
216 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
217 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
218 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
219 void SetTags(TagsT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags = std::forward<TagsT>(value);
222 }
223 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 CreateStackRequest& WithTags(TagsT&& value) {
225 SetTags(std::forward<TagsT>(value));
226 return *this;
227 }
228 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
229 CreateStackRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
232 return *this;
233 }
235
237
242 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
243 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
244 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
245 void SetAccessEndpoints(AccessEndpointsT&& value) {
246 m_accessEndpointsHasBeenSet = true;
247 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
248 }
249 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
250 CreateStackRequest& WithAccessEndpoints(AccessEndpointsT&& value) {
251 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
252 return *this;
253 }
254 template <typename AccessEndpointsT = AccessEndpoint>
255 CreateStackRequest& AddAccessEndpoints(AccessEndpointsT&& value) {
256 m_accessEndpointsHasBeenSet = true;
257 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
258 return *this;
259 }
261
263
268 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
269 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
270 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
271 void SetEmbedHostDomains(EmbedHostDomainsT&& value) {
272 m_embedHostDomainsHasBeenSet = true;
273 m_embedHostDomains = std::forward<EmbedHostDomainsT>(value);
274 }
275 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
276 CreateStackRequest& WithEmbedHostDomains(EmbedHostDomainsT&& value) {
277 SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value));
278 return *this;
279 }
280 template <typename EmbedHostDomainsT = Aws::String>
281 CreateStackRequest& AddEmbedHostDomains(EmbedHostDomainsT&& value) {
282 m_embedHostDomainsHasBeenSet = true;
283 m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value));
284 return *this;
285 }
287
289
293 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
294 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
295 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
296 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
297 m_streamingExperienceSettingsHasBeenSet = true;
298 m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value);
299 }
300 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
301 CreateStackRequest& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
302 SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value));
303 return *this;
304 }
306
308
309 inline const ContentRedirection& GetContentRedirection() const { return m_contentRedirection; }
310 inline bool ContentRedirectionHasBeenSet() const { return m_contentRedirectionHasBeenSet; }
311 template <typename ContentRedirectionT = ContentRedirection>
312 void SetContentRedirection(ContentRedirectionT&& value) {
313 m_contentRedirectionHasBeenSet = true;
314 m_contentRedirection = std::forward<ContentRedirectionT>(value);
315 }
316 template <typename ContentRedirectionT = ContentRedirection>
317 CreateStackRequest& WithContentRedirection(ContentRedirectionT&& value) {
318 SetContentRedirection(std::forward<ContentRedirectionT>(value));
319 return *this;
320 }
322
324
329 inline const WebAuthnRedirection& GetWebAuthnRedirection() const { return m_webAuthnRedirection; }
330 inline bool WebAuthnRedirectionHasBeenSet() const { return m_webAuthnRedirectionHasBeenSet; }
331 template <typename WebAuthnRedirectionT = WebAuthnRedirection>
332 void SetWebAuthnRedirection(WebAuthnRedirectionT&& value) {
333 m_webAuthnRedirectionHasBeenSet = true;
334 m_webAuthnRedirection = std::forward<WebAuthnRedirectionT>(value);
335 }
336 template <typename WebAuthnRedirectionT = WebAuthnRedirection>
337 CreateStackRequest& WithWebAuthnRedirection(WebAuthnRedirectionT&& value) {
338 SetWebAuthnRedirection(std::forward<WebAuthnRedirectionT>(value));
339 return *this;
340 }
342
344
348 inline const AgentAccessConfig& GetAgentAccessConfig() const { return m_agentAccessConfig; }
349 inline bool AgentAccessConfigHasBeenSet() const { return m_agentAccessConfigHasBeenSet; }
350 template <typename AgentAccessConfigT = AgentAccessConfig>
351 void SetAgentAccessConfig(AgentAccessConfigT&& value) {
352 m_agentAccessConfigHasBeenSet = true;
353 m_agentAccessConfig = std::forward<AgentAccessConfigT>(value);
354 }
355 template <typename AgentAccessConfigT = AgentAccessConfig>
356 CreateStackRequest& WithAgentAccessConfig(AgentAccessConfigT&& value) {
357 SetAgentAccessConfig(std::forward<AgentAccessConfigT>(value));
358 return *this;
359 }
361
363
370 inline StorageConnectorAuthentication GetStorageConnectorAuthentication() const { return m_storageConnectorAuthentication; }
371 inline bool StorageConnectorAuthenticationHasBeenSet() const { return m_storageConnectorAuthenticationHasBeenSet; }
373 m_storageConnectorAuthenticationHasBeenSet = true;
374 m_storageConnectorAuthentication = value;
375 }
381 private:
382 Aws::String m_name;
383
384 Aws::String m_description;
385
386 Aws::String m_displayName;
387
388 Aws::Vector<StorageConnector> m_storageConnectors;
389
390 Aws::String m_redirectURL;
391
392 Aws::String m_feedbackURL;
393
394 Aws::Vector<UserSetting> m_userSettings;
395
396 ApplicationSettings m_applicationSettings;
397
399
400 Aws::Vector<AccessEndpoint> m_accessEndpoints;
401
402 Aws::Vector<Aws::String> m_embedHostDomains;
403
404 StreamingExperienceSettings m_streamingExperienceSettings;
405
406 ContentRedirection m_contentRedirection;
407
408 WebAuthnRedirection m_webAuthnRedirection;
409
410 AgentAccessConfig m_agentAccessConfig;
411
413 bool m_nameHasBeenSet = false;
414 bool m_descriptionHasBeenSet = false;
415 bool m_displayNameHasBeenSet = false;
416 bool m_storageConnectorsHasBeenSet = false;
417 bool m_redirectURLHasBeenSet = false;
418 bool m_feedbackURLHasBeenSet = false;
419 bool m_userSettingsHasBeenSet = false;
420 bool m_applicationSettingsHasBeenSet = false;
421 bool m_tagsHasBeenSet = false;
422 bool m_accessEndpointsHasBeenSet = false;
423 bool m_embedHostDomainsHasBeenSet = false;
424 bool m_streamingExperienceSettingsHasBeenSet = false;
425 bool m_contentRedirectionHasBeenSet = false;
426 bool m_webAuthnRedirectionHasBeenSet = false;
427 bool m_agentAccessConfigHasBeenSet = false;
428 bool m_storageConnectorAuthenticationHasBeenSet = false;
429};
430
431} // namespace Model
432} // namespace AppStream
433} // 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
const WebAuthnRedirection & GetWebAuthnRedirection() const
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 & WithWebAuthnRedirection(WebAuthnRedirectionT &&value)
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)
void SetWebAuthnRedirection(WebAuthnRedirectionT &&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