AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStackRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/appstream/model/ApplicationSettings.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/appstream/model/StreamingExperienceSettings.h>
14#include <aws/appstream/model/StorageConnector.h>
15#include <aws/appstream/model/UserSetting.h>
16#include <aws/appstream/model/AccessEndpoint.h>
17#include <utility>
18
19namespace Aws
20{
21namespace AppStream
22{
23namespace Model
24{
25
29 {
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
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreateStackRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 CreateStackRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDisplayName() const { return m_displayName; }
73 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
74 template<typename DisplayNameT = Aws::String>
75 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
76 template<typename DisplayNameT = Aws::String>
77 CreateStackRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
79
81
84 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
85 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
86 template<typename StorageConnectorsT = Aws::Vector<StorageConnector>>
87 void SetStorageConnectors(StorageConnectorsT&& value) { m_storageConnectorsHasBeenSet = true; m_storageConnectors = std::forward<StorageConnectorsT>(value); }
88 template<typename StorageConnectorsT = Aws::Vector<StorageConnector>>
89 CreateStackRequest& WithStorageConnectors(StorageConnectorsT&& value) { SetStorageConnectors(std::forward<StorageConnectorsT>(value)); return *this;}
90 template<typename StorageConnectorsT = StorageConnector>
91 CreateStackRequest& AddStorageConnectors(StorageConnectorsT&& value) { m_storageConnectorsHasBeenSet = true; m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value)); return *this; }
93
95
98 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
99 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
100 template<typename RedirectURLT = Aws::String>
101 void SetRedirectURL(RedirectURLT&& value) { m_redirectURLHasBeenSet = true; m_redirectURL = std::forward<RedirectURLT>(value); }
102 template<typename RedirectURLT = Aws::String>
103 CreateStackRequest& WithRedirectURL(RedirectURLT&& value) { SetRedirectURL(std::forward<RedirectURLT>(value)); return *this;}
105
107
111 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
112 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
113 template<typename FeedbackURLT = Aws::String>
114 void SetFeedbackURL(FeedbackURLT&& value) { m_feedbackURLHasBeenSet = true; m_feedbackURL = std::forward<FeedbackURLT>(value); }
115 template<typename FeedbackURLT = Aws::String>
116 CreateStackRequest& WithFeedbackURL(FeedbackURLT&& value) { SetFeedbackURL(std::forward<FeedbackURLT>(value)); return *this;}
118
120
124 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
125 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
126 template<typename UserSettingsT = Aws::Vector<UserSetting>>
127 void SetUserSettings(UserSettingsT&& value) { m_userSettingsHasBeenSet = true; m_userSettings = std::forward<UserSettingsT>(value); }
128 template<typename UserSettingsT = Aws::Vector<UserSetting>>
129 CreateStackRequest& WithUserSettings(UserSettingsT&& value) { SetUserSettings(std::forward<UserSettingsT>(value)); return *this;}
130 template<typename UserSettingsT = UserSetting>
131 CreateStackRequest& AddUserSettings(UserSettingsT&& value) { m_userSettingsHasBeenSet = true; m_userSettings.emplace_back(std::forward<UserSettingsT>(value)); return *this; }
133
135
140 inline const ApplicationSettings& GetApplicationSettings() const { return m_applicationSettings; }
141 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
142 template<typename ApplicationSettingsT = ApplicationSettings>
143 void SetApplicationSettings(ApplicationSettingsT&& value) { m_applicationSettingsHasBeenSet = true; m_applicationSettings = std::forward<ApplicationSettingsT>(value); }
144 template<typename ApplicationSettingsT = ApplicationSettings>
145 CreateStackRequest& WithApplicationSettings(ApplicationSettingsT&& value) { SetApplicationSettings(std::forward<ApplicationSettingsT>(value)); return *this;}
147
149
159 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
162 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
163 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 CreateStackRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
165 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
166 CreateStackRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
167 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
168 }
170
172
176 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
177 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
178 template<typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
179 void SetAccessEndpoints(AccessEndpointsT&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints = std::forward<AccessEndpointsT>(value); }
180 template<typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
181 CreateStackRequest& WithAccessEndpoints(AccessEndpointsT&& value) { SetAccessEndpoints(std::forward<AccessEndpointsT>(value)); return *this;}
182 template<typename AccessEndpointsT = AccessEndpoint>
183 CreateStackRequest& AddAccessEndpoints(AccessEndpointsT&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value)); return *this; }
185
187
192 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
193 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
194 template<typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
195 void SetEmbedHostDomains(EmbedHostDomainsT&& value) { m_embedHostDomainsHasBeenSet = true; m_embedHostDomains = std::forward<EmbedHostDomainsT>(value); }
196 template<typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
197 CreateStackRequest& WithEmbedHostDomains(EmbedHostDomainsT&& value) { SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value)); return *this;}
198 template<typename EmbedHostDomainsT = Aws::String>
199 CreateStackRequest& AddEmbedHostDomains(EmbedHostDomainsT&& value) { m_embedHostDomainsHasBeenSet = true; m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value)); return *this; }
201
203
207 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
208 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
209 template<typename StreamingExperienceSettingsT = StreamingExperienceSettings>
210 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) { m_streamingExperienceSettingsHasBeenSet = true; m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value); }
211 template<typename StreamingExperienceSettingsT = StreamingExperienceSettings>
212 CreateStackRequest& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) { SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value)); return *this;}
214 private:
215
216 Aws::String m_name;
217 bool m_nameHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 Aws::String m_displayName;
223 bool m_displayNameHasBeenSet = false;
224
225 Aws::Vector<StorageConnector> m_storageConnectors;
226 bool m_storageConnectorsHasBeenSet = false;
227
228 Aws::String m_redirectURL;
229 bool m_redirectURLHasBeenSet = false;
230
231 Aws::String m_feedbackURL;
232 bool m_feedbackURLHasBeenSet = false;
233
234 Aws::Vector<UserSetting> m_userSettings;
235 bool m_userSettingsHasBeenSet = false;
236
237 ApplicationSettings m_applicationSettings;
238 bool m_applicationSettingsHasBeenSet = false;
239
241 bool m_tagsHasBeenSet = false;
242
243 Aws::Vector<AccessEndpoint> m_accessEndpoints;
244 bool m_accessEndpointsHasBeenSet = false;
245
246 Aws::Vector<Aws::String> m_embedHostDomains;
247 bool m_embedHostDomainsHasBeenSet = false;
248
249 StreamingExperienceSettings m_streamingExperienceSettings;
250 bool m_streamingExperienceSettingsHasBeenSet = false;
251 };
252
253} // namespace Model
254} // namespace AppStream
255} // 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
void SetAccessEndpoints(AccessEndpointsT &&value)
CreateStackRequest & AddUserSettings(UserSettingsT &&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 & WithStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
const Aws::Vector< StorageConnector > & GetStorageConnectors() const
virtual const char * GetServiceRequestName() const override
CreateStackRequest & WithDescription(DescriptionT &&value)
CreateStackRequest & WithEmbedHostDomains(EmbedHostDomainsT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
const ApplicationSettings & GetApplicationSettings() const
CreateStackRequest & WithFeedbackURL(FeedbackURLT &&value)
CreateStackRequest & WithStorageConnectors(StorageConnectorsT &&value)
CreateStackRequest & WithTags(TagsT &&value)
void SetEmbedHostDomains(EmbedHostDomainsT &&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