AWS SDK for C++

AWS SDK for C++ Version 1.11.789

Loading...
Searching...
No Matches
Stack.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AccessEndpoint.h>
9#include <aws/appstream/model/ApplicationSettingsResponse.h>
10#include <aws/appstream/model/ContentRedirection.h>
11#include <aws/appstream/model/StackError.h>
12#include <aws/appstream/model/StorageConnector.h>
13#include <aws/appstream/model/StreamingExperienceSettings.h>
14#include <aws/appstream/model/UserSetting.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace AppStream {
29namespace Model {
30
36class Stack {
37 public:
38 AWS_APPSTREAM_API Stack() = default;
39 AWS_APPSTREAM_API Stack(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSTREAM_API Stack& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
55 Stack& WithArn(ArnT&& value) {
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
73 Stack& WithName(NameT&& value) {
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
91 Stack& WithDescription(DescriptionT&& value) {
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDisplayName() const { return m_displayName; }
102 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
103 template <typename DisplayNameT = Aws::String>
104 void SetDisplayName(DisplayNameT&& value) {
105 m_displayNameHasBeenSet = true;
106 m_displayName = std::forward<DisplayNameT>(value);
107 }
108 template <typename DisplayNameT = Aws::String>
109 Stack& WithDisplayName(DisplayNameT&& value) {
110 SetDisplayName(std::forward<DisplayNameT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
120 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
121 template <typename CreatedTimeT = Aws::Utils::DateTime>
122 void SetCreatedTime(CreatedTimeT&& value) {
123 m_createdTimeHasBeenSet = true;
124 m_createdTime = std::forward<CreatedTimeT>(value);
125 }
126 template <typename CreatedTimeT = Aws::Utils::DateTime>
127 Stack& WithCreatedTime(CreatedTimeT&& value) {
128 SetCreatedTime(std::forward<CreatedTimeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
138 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
139 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
140 void SetStorageConnectors(StorageConnectorsT&& value) {
141 m_storageConnectorsHasBeenSet = true;
142 m_storageConnectors = std::forward<StorageConnectorsT>(value);
143 }
144 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
145 Stack& WithStorageConnectors(StorageConnectorsT&& value) {
146 SetStorageConnectors(std::forward<StorageConnectorsT>(value));
147 return *this;
148 }
149 template <typename StorageConnectorsT = StorageConnector>
150 Stack& AddStorageConnectors(StorageConnectorsT&& value) {
151 m_storageConnectorsHasBeenSet = true;
152 m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
162 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
163 template <typename RedirectURLT = Aws::String>
164 void SetRedirectURL(RedirectURLT&& value) {
165 m_redirectURLHasBeenSet = true;
166 m_redirectURL = std::forward<RedirectURLT>(value);
167 }
168 template <typename RedirectURLT = Aws::String>
169 Stack& WithRedirectURL(RedirectURLT&& value) {
170 SetRedirectURL(std::forward<RedirectURLT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
181 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
182 template <typename FeedbackURLT = Aws::String>
183 void SetFeedbackURL(FeedbackURLT&& value) {
184 m_feedbackURLHasBeenSet = true;
185 m_feedbackURL = std::forward<FeedbackURLT>(value);
186 }
187 template <typename FeedbackURLT = Aws::String>
188 Stack& WithFeedbackURL(FeedbackURLT&& value) {
189 SetFeedbackURL(std::forward<FeedbackURLT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::Vector<StackError>& GetStackErrors() const { return m_stackErrors; }
199 inline bool StackErrorsHasBeenSet() const { return m_stackErrorsHasBeenSet; }
200 template <typename StackErrorsT = Aws::Vector<StackError>>
201 void SetStackErrors(StackErrorsT&& value) {
202 m_stackErrorsHasBeenSet = true;
203 m_stackErrors = std::forward<StackErrorsT>(value);
204 }
205 template <typename StackErrorsT = Aws::Vector<StackError>>
206 Stack& WithStackErrors(StackErrorsT&& value) {
207 SetStackErrors(std::forward<StackErrorsT>(value));
208 return *this;
209 }
210 template <typename StackErrorsT = StackError>
211 Stack& AddStackErrors(StackErrorsT&& value) {
212 m_stackErrorsHasBeenSet = true;
213 m_stackErrors.emplace_back(std::forward<StackErrorsT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
224 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
225 template <typename UserSettingsT = Aws::Vector<UserSetting>>
226 void SetUserSettings(UserSettingsT&& value) {
227 m_userSettingsHasBeenSet = true;
228 m_userSettings = std::forward<UserSettingsT>(value);
229 }
230 template <typename UserSettingsT = Aws::Vector<UserSetting>>
231 Stack& WithUserSettings(UserSettingsT&& value) {
232 SetUserSettings(std::forward<UserSettingsT>(value));
233 return *this;
234 }
235 template <typename UserSettingsT = UserSetting>
236 Stack& AddUserSettings(UserSettingsT&& value) {
237 m_userSettingsHasBeenSet = true;
238 m_userSettings.emplace_back(std::forward<UserSettingsT>(value));
239 return *this;
240 }
242
244
247 inline const ApplicationSettingsResponse& GetApplicationSettings() const { return m_applicationSettings; }
248 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
249 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
250 void SetApplicationSettings(ApplicationSettingsT&& value) {
251 m_applicationSettingsHasBeenSet = true;
252 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
253 }
254 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
255 Stack& WithApplicationSettings(ApplicationSettingsT&& value) {
256 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
257 return *this;
258 }
260
262
267 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
268 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
269 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
270 void SetAccessEndpoints(AccessEndpointsT&& value) {
271 m_accessEndpointsHasBeenSet = true;
272 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
273 }
274 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
275 Stack& WithAccessEndpoints(AccessEndpointsT&& value) {
276 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
277 return *this;
278 }
279 template <typename AccessEndpointsT = AccessEndpoint>
280 Stack& AddAccessEndpoints(AccessEndpointsT&& value) {
281 m_accessEndpointsHasBeenSet = true;
282 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
283 return *this;
284 }
286
288
293 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
294 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
295 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
296 void SetEmbedHostDomains(EmbedHostDomainsT&& value) {
297 m_embedHostDomainsHasBeenSet = true;
298 m_embedHostDomains = std::forward<EmbedHostDomainsT>(value);
299 }
300 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
301 Stack& WithEmbedHostDomains(EmbedHostDomainsT&& value) {
302 SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value));
303 return *this;
304 }
305 template <typename EmbedHostDomainsT = Aws::String>
306 Stack& AddEmbedHostDomains(EmbedHostDomainsT&& value) {
307 m_embedHostDomainsHasBeenSet = true;
308 m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value));
309 return *this;
310 }
312
314
318 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
319 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
320 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
321 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
322 m_streamingExperienceSettingsHasBeenSet = true;
323 m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value);
324 }
325 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
326 Stack& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
327 SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value));
328 return *this;
329 }
331
333
338 inline const ContentRedirection& GetContentRedirection() const { return m_contentRedirection; }
339 inline bool ContentRedirectionHasBeenSet() const { return m_contentRedirectionHasBeenSet; }
340 template <typename ContentRedirectionT = ContentRedirection>
341 void SetContentRedirection(ContentRedirectionT&& value) {
342 m_contentRedirectionHasBeenSet = true;
343 m_contentRedirection = std::forward<ContentRedirectionT>(value);
344 }
345 template <typename ContentRedirectionT = ContentRedirection>
346 Stack& WithContentRedirection(ContentRedirectionT&& value) {
347 SetContentRedirection(std::forward<ContentRedirectionT>(value));
348 return *this;
349 }
351 private:
352 Aws::String m_arn;
353
354 Aws::String m_name;
355
356 Aws::String m_description;
357
358 Aws::String m_displayName;
359
360 Aws::Utils::DateTime m_createdTime{};
361
362 Aws::Vector<StorageConnector> m_storageConnectors;
363
364 Aws::String m_redirectURL;
365
366 Aws::String m_feedbackURL;
367
368 Aws::Vector<StackError> m_stackErrors;
369
370 Aws::Vector<UserSetting> m_userSettings;
371
372 ApplicationSettingsResponse m_applicationSettings;
373
374 Aws::Vector<AccessEndpoint> m_accessEndpoints;
375
376 Aws::Vector<Aws::String> m_embedHostDomains;
377
378 StreamingExperienceSettings m_streamingExperienceSettings;
379
380 ContentRedirection m_contentRedirection;
381 bool m_arnHasBeenSet = false;
382 bool m_nameHasBeenSet = false;
383 bool m_descriptionHasBeenSet = false;
384 bool m_displayNameHasBeenSet = false;
385 bool m_createdTimeHasBeenSet = false;
386 bool m_storageConnectorsHasBeenSet = false;
387 bool m_redirectURLHasBeenSet = false;
388 bool m_feedbackURLHasBeenSet = false;
389 bool m_stackErrorsHasBeenSet = false;
390 bool m_userSettingsHasBeenSet = false;
391 bool m_applicationSettingsHasBeenSet = false;
392 bool m_accessEndpointsHasBeenSet = false;
393 bool m_embedHostDomainsHasBeenSet = false;
394 bool m_streamingExperienceSettingsHasBeenSet = false;
395 bool m_contentRedirectionHasBeenSet = false;
396};
397
398} // namespace Model
399} // namespace AppStream
400} // namespace Aws
const Aws::String & GetName() const
Definition Stack.h:65
void SetStackErrors(StackErrorsT &&value)
Definition Stack.h:201
Stack & WithCreatedTime(CreatedTimeT &&value)
Definition Stack.h:127
const Aws::Vector< Aws::String > & GetEmbedHostDomains() const
Definition Stack.h:293
bool RedirectURLHasBeenSet() const
Definition Stack.h:162
void SetDescription(DescriptionT &&value)
Definition Stack.h:86
void SetStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:321
Stack & AddEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:306
AWS_APPSTREAM_API Stack & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< StorageConnector > & GetStorageConnectors() const
Definition Stack.h:137
void SetName(NameT &&value)
Definition Stack.h:68
Stack & AddAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:280
void SetFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:183
bool AccessEndpointsHasBeenSet() const
Definition Stack.h:268
void SetRedirectURL(RedirectURLT &&value)
Definition Stack.h:164
const ApplicationSettingsResponse & GetApplicationSettings() const
Definition Stack.h:247
Stack & WithAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:275
bool DisplayNameHasBeenSet() const
Definition Stack.h:102
void SetAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:270
Stack & WithStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:145
bool StackErrorsHasBeenSet() const
Definition Stack.h:199
const Aws::String & GetFeedbackURL() const
Definition Stack.h:180
void SetDisplayName(DisplayNameT &&value)
Definition Stack.h:104
const StreamingExperienceSettings & GetStreamingExperienceSettings() const
Definition Stack.h:318
Stack & WithStackErrors(StackErrorsT &&value)
Definition Stack.h:206
bool CreatedTimeHasBeenSet() const
Definition Stack.h:120
bool DescriptionHasBeenSet() const
Definition Stack.h:84
const Aws::Vector< StackError > & GetStackErrors() const
Definition Stack.h:198
AWS_APPSTREAM_API Stack()=default
Stack & WithArn(ArnT &&value)
Definition Stack.h:55
const Aws::String & GetRedirectURL() const
Definition Stack.h:161
Stack & WithContentRedirection(ContentRedirectionT &&value)
Definition Stack.h:346
void SetArn(ArnT &&value)
Definition Stack.h:50
bool StreamingExperienceSettingsHasBeenSet() const
Definition Stack.h:319
const Aws::String & GetDescription() const
Definition Stack.h:83
bool FeedbackURLHasBeenSet() const
Definition Stack.h:181
const Aws::String & GetArn() const
Definition Stack.h:47
const Aws::Vector< UserSetting > & GetUserSettings() const
Definition Stack.h:223
void SetContentRedirection(ContentRedirectionT &&value)
Definition Stack.h:341
void SetCreatedTime(CreatedTimeT &&value)
Definition Stack.h:122
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
Stack & AddUserSettings(UserSettingsT &&value)
Definition Stack.h:236
bool NameHasBeenSet() const
Definition Stack.h:66
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
Definition Stack.h:267
const ContentRedirection & GetContentRedirection() const
Definition Stack.h:338
Stack & WithApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:255
AWS_APPSTREAM_API Stack(Aws::Utils::Json::JsonView jsonValue)
Stack & AddStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:150
Stack & WithDisplayName(DisplayNameT &&value)
Definition Stack.h:109
void SetUserSettings(UserSettingsT &&value)
Definition Stack.h:226
const Aws::String & GetDisplayName() const
Definition Stack.h:101
Stack & WithEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:301
bool ContentRedirectionHasBeenSet() const
Definition Stack.h:339
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Stack.h:119
void SetApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:250
Stack & WithName(NameT &&value)
Definition Stack.h:73
Stack & WithStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:326
bool StorageConnectorsHasBeenSet() const
Definition Stack.h:138
Stack & WithRedirectURL(RedirectURLT &&value)
Definition Stack.h:169
Stack & WithFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:188
Stack & WithUserSettings(UserSettingsT &&value)
Definition Stack.h:231
bool ArnHasBeenSet() const
Definition Stack.h:48
Stack & WithDescription(DescriptionT &&value)
Definition Stack.h:91
Stack & AddStackErrors(StackErrorsT &&value)
Definition Stack.h:211
void SetStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:140
bool EmbedHostDomainsHasBeenSet() const
Definition Stack.h:294
bool ApplicationSettingsHasBeenSet() const
Definition Stack.h:248
bool UserSettingsHasBeenSet() const
Definition Stack.h:224
void SetEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:296
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue