AWS SDK for C++

AWS SDK for C++ Version 1.11.939

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/AgentAccessConfig.h>
10#include <aws/appstream/model/ApplicationSettingsResponse.h>
11#include <aws/appstream/model/ContentRedirection.h>
12#include <aws/appstream/model/StackError.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/DateTime.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21#include <aws/crt/cbor/Cbor.h>
22
23#include <utility>
24
25namespace Aws {
26namespace Utils {
27namespace Cbor {
28class CborValue;
29} // namespace Cbor
30} // namespace Utils
31namespace AppStream {
32namespace Model {
33
39class Stack {
40 public:
41 AWS_APPSTREAM_API Stack() = default;
42 AWS_APPSTREAM_API Stack(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
43 AWS_APPSTREAM_API Stack& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template <typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) {
54 m_arnHasBeenSet = true;
55 m_arn = std::forward<ArnT>(value);
56 }
57 template <typename ArnT = Aws::String>
58 Stack& WithArn(ArnT&& value) {
59 SetArn(std::forward<ArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template <typename NameT = Aws::String>
71 void SetName(NameT&& value) {
72 m_nameHasBeenSet = true;
73 m_name = std::forward<NameT>(value);
74 }
75 template <typename NameT = Aws::String>
76 Stack& WithName(NameT&& value) {
77 SetName(std::forward<NameT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetDescription() const { return m_description; }
87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
94 Stack& WithDescription(DescriptionT&& value) {
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDisplayName() const { return m_displayName; }
105 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
106 template <typename DisplayNameT = Aws::String>
107 void SetDisplayName(DisplayNameT&& value) {
108 m_displayNameHasBeenSet = true;
109 m_displayName = std::forward<DisplayNameT>(value);
110 }
111 template <typename DisplayNameT = Aws::String>
112 Stack& WithDisplayName(DisplayNameT&& value) {
113 SetDisplayName(std::forward<DisplayNameT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
123 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
124 template <typename CreatedTimeT = Aws::Utils::DateTime>
125 void SetCreatedTime(CreatedTimeT&& value) {
126 m_createdTimeHasBeenSet = true;
127 m_createdTime = std::forward<CreatedTimeT>(value);
128 }
129 template <typename CreatedTimeT = Aws::Utils::DateTime>
130 Stack& WithCreatedTime(CreatedTimeT&& value) {
131 SetCreatedTime(std::forward<CreatedTimeT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
141 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
142 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
143 void SetStorageConnectors(StorageConnectorsT&& value) {
144 m_storageConnectorsHasBeenSet = true;
145 m_storageConnectors = std::forward<StorageConnectorsT>(value);
146 }
147 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
148 Stack& WithStorageConnectors(StorageConnectorsT&& value) {
149 SetStorageConnectors(std::forward<StorageConnectorsT>(value));
150 return *this;
151 }
152 template <typename StorageConnectorsT = StorageConnector>
153 Stack& AddStorageConnectors(StorageConnectorsT&& value) {
154 m_storageConnectorsHasBeenSet = true;
155 m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
165 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
166 template <typename RedirectURLT = Aws::String>
167 void SetRedirectURL(RedirectURLT&& value) {
168 m_redirectURLHasBeenSet = true;
169 m_redirectURL = std::forward<RedirectURLT>(value);
170 }
171 template <typename RedirectURLT = Aws::String>
172 Stack& WithRedirectURL(RedirectURLT&& value) {
173 SetRedirectURL(std::forward<RedirectURLT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
184 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
185 template <typename FeedbackURLT = Aws::String>
186 void SetFeedbackURL(FeedbackURLT&& value) {
187 m_feedbackURLHasBeenSet = true;
188 m_feedbackURL = std::forward<FeedbackURLT>(value);
189 }
190 template <typename FeedbackURLT = Aws::String>
191 Stack& WithFeedbackURL(FeedbackURLT&& value) {
192 SetFeedbackURL(std::forward<FeedbackURLT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::Vector<StackError>& GetStackErrors() const { return m_stackErrors; }
202 inline bool StackErrorsHasBeenSet() const { return m_stackErrorsHasBeenSet; }
203 template <typename StackErrorsT = Aws::Vector<StackError>>
204 void SetStackErrors(StackErrorsT&& value) {
205 m_stackErrorsHasBeenSet = true;
206 m_stackErrors = std::forward<StackErrorsT>(value);
207 }
208 template <typename StackErrorsT = Aws::Vector<StackError>>
209 Stack& WithStackErrors(StackErrorsT&& value) {
210 SetStackErrors(std::forward<StackErrorsT>(value));
211 return *this;
212 }
213 template <typename StackErrorsT = StackError>
214 Stack& AddStackErrors(StackErrorsT&& value) {
215 m_stackErrorsHasBeenSet = true;
216 m_stackErrors.emplace_back(std::forward<StackErrorsT>(value));
217 return *this;
218 }
220
222
226 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
227 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
228 template <typename UserSettingsT = Aws::Vector<UserSetting>>
229 void SetUserSettings(UserSettingsT&& value) {
230 m_userSettingsHasBeenSet = true;
231 m_userSettings = std::forward<UserSettingsT>(value);
232 }
233 template <typename UserSettingsT = Aws::Vector<UserSetting>>
234 Stack& WithUserSettings(UserSettingsT&& value) {
235 SetUserSettings(std::forward<UserSettingsT>(value));
236 return *this;
237 }
238 template <typename UserSettingsT = UserSetting>
239 Stack& AddUserSettings(UserSettingsT&& value) {
240 m_userSettingsHasBeenSet = true;
241 m_userSettings.emplace_back(std::forward<UserSettingsT>(value));
242 return *this;
243 }
245
247
250 inline const ApplicationSettingsResponse& GetApplicationSettings() const { return m_applicationSettings; }
251 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
252 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
253 void SetApplicationSettings(ApplicationSettingsT&& value) {
254 m_applicationSettingsHasBeenSet = true;
255 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
256 }
257 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
258 Stack& WithApplicationSettings(ApplicationSettingsT&& value) {
259 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
260 return *this;
261 }
263
265
270 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
271 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
272 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
273 void SetAccessEndpoints(AccessEndpointsT&& value) {
274 m_accessEndpointsHasBeenSet = true;
275 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
276 }
277 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
278 Stack& WithAccessEndpoints(AccessEndpointsT&& value) {
279 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
280 return *this;
281 }
282 template <typename AccessEndpointsT = AccessEndpoint>
283 Stack& AddAccessEndpoints(AccessEndpointsT&& value) {
284 m_accessEndpointsHasBeenSet = true;
285 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
286 return *this;
287 }
289
291
296 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
297 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
298 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
299 void SetEmbedHostDomains(EmbedHostDomainsT&& value) {
300 m_embedHostDomainsHasBeenSet = true;
301 m_embedHostDomains = std::forward<EmbedHostDomainsT>(value);
302 }
303 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
304 Stack& WithEmbedHostDomains(EmbedHostDomainsT&& value) {
305 SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value));
306 return *this;
307 }
308 template <typename EmbedHostDomainsT = Aws::String>
309 Stack& AddEmbedHostDomains(EmbedHostDomainsT&& value) {
310 m_embedHostDomainsHasBeenSet = true;
311 m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value));
312 return *this;
313 }
315
317
321 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
322 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
323 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
324 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
325 m_streamingExperienceSettingsHasBeenSet = true;
326 m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value);
327 }
328 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
329 Stack& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
330 SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value));
331 return *this;
332 }
334
336
341 inline const ContentRedirection& GetContentRedirection() const { return m_contentRedirection; }
342 inline bool ContentRedirectionHasBeenSet() const { return m_contentRedirectionHasBeenSet; }
343 template <typename ContentRedirectionT = ContentRedirection>
344 void SetContentRedirection(ContentRedirectionT&& value) {
345 m_contentRedirectionHasBeenSet = true;
346 m_contentRedirection = std::forward<ContentRedirectionT>(value);
347 }
348 template <typename ContentRedirectionT = ContentRedirection>
349 Stack& WithContentRedirection(ContentRedirectionT&& value) {
350 SetContentRedirection(std::forward<ContentRedirectionT>(value));
351 return *this;
352 }
354
356
361 inline const WebAuthnRedirection& GetWebAuthnRedirection() const { return m_webAuthnRedirection; }
362 inline bool WebAuthnRedirectionHasBeenSet() const { return m_webAuthnRedirectionHasBeenSet; }
363 template <typename WebAuthnRedirectionT = WebAuthnRedirection>
364 void SetWebAuthnRedirection(WebAuthnRedirectionT&& value) {
365 m_webAuthnRedirectionHasBeenSet = true;
366 m_webAuthnRedirection = std::forward<WebAuthnRedirectionT>(value);
367 }
368 template <typename WebAuthnRedirectionT = WebAuthnRedirection>
369 Stack& WithWebAuthnRedirection(WebAuthnRedirectionT&& value) {
370 SetWebAuthnRedirection(std::forward<WebAuthnRedirectionT>(value));
371 return *this;
372 }
374
376
379 inline const AgentAccessConfig& GetAgentAccessConfig() const { return m_agentAccessConfig; }
380 inline bool AgentAccessConfigHasBeenSet() const { return m_agentAccessConfigHasBeenSet; }
381 template <typename AgentAccessConfigT = AgentAccessConfig>
382 void SetAgentAccessConfig(AgentAccessConfigT&& value) {
383 m_agentAccessConfigHasBeenSet = true;
384 m_agentAccessConfig = std::forward<AgentAccessConfigT>(value);
385 }
386 template <typename AgentAccessConfigT = AgentAccessConfig>
387 Stack& WithAgentAccessConfig(AgentAccessConfigT&& value) {
388 SetAgentAccessConfig(std::forward<AgentAccessConfigT>(value));
389 return *this;
390 }
392
394
401 inline StorageConnectorAuthentication GetStorageConnectorAuthentication() const { return m_storageConnectorAuthentication; }
402 inline bool StorageConnectorAuthenticationHasBeenSet() const { return m_storageConnectorAuthenticationHasBeenSet; }
404 m_storageConnectorAuthenticationHasBeenSet = true;
405 m_storageConnectorAuthentication = value;
406 }
412 private:
413 Aws::String m_arn;
414
415 Aws::String m_name;
416
417 Aws::String m_description;
418
419 Aws::String m_displayName;
420
421 Aws::Utils::DateTime m_createdTime{};
422
423 Aws::Vector<StorageConnector> m_storageConnectors;
424
425 Aws::String m_redirectURL;
426
427 Aws::String m_feedbackURL;
428
429 Aws::Vector<StackError> m_stackErrors;
430
431 Aws::Vector<UserSetting> m_userSettings;
432
433 ApplicationSettingsResponse m_applicationSettings;
434
435 Aws::Vector<AccessEndpoint> m_accessEndpoints;
436
437 Aws::Vector<Aws::String> m_embedHostDomains;
438
439 StreamingExperienceSettings m_streamingExperienceSettings;
440
441 ContentRedirection m_contentRedirection;
442
443 WebAuthnRedirection m_webAuthnRedirection;
444
445 AgentAccessConfig m_agentAccessConfig;
446
448 bool m_arnHasBeenSet = false;
449 bool m_nameHasBeenSet = false;
450 bool m_descriptionHasBeenSet = false;
451 bool m_displayNameHasBeenSet = false;
452 bool m_createdTimeHasBeenSet = false;
453 bool m_storageConnectorsHasBeenSet = false;
454 bool m_redirectURLHasBeenSet = false;
455 bool m_feedbackURLHasBeenSet = false;
456 bool m_stackErrorsHasBeenSet = false;
457 bool m_userSettingsHasBeenSet = false;
458 bool m_applicationSettingsHasBeenSet = false;
459 bool m_accessEndpointsHasBeenSet = false;
460 bool m_embedHostDomainsHasBeenSet = false;
461 bool m_streamingExperienceSettingsHasBeenSet = false;
462 bool m_contentRedirectionHasBeenSet = false;
463 bool m_webAuthnRedirectionHasBeenSet = false;
464 bool m_agentAccessConfigHasBeenSet = false;
465 bool m_storageConnectorAuthenticationHasBeenSet = false;
466};
467
468} // namespace Model
469} // namespace AppStream
470} // namespace Aws
const Aws::String & GetName() const
Definition Stack.h:68
void SetStackErrors(StackErrorsT &&value)
Definition Stack.h:204
Stack & WithCreatedTime(CreatedTimeT &&value)
Definition Stack.h:130
const Aws::Vector< Aws::String > & GetEmbedHostDomains() const
Definition Stack.h:296
bool RedirectURLHasBeenSet() const
Definition Stack.h:165
void SetDescription(DescriptionT &&value)
Definition Stack.h:89
void SetStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:324
Stack & AddEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:309
bool WebAuthnRedirectionHasBeenSet() const
Definition Stack.h:362
void SetAgentAccessConfig(AgentAccessConfigT &&value)
Definition Stack.h:382
AWS_APPSTREAM_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::Vector< StorageConnector > & GetStorageConnectors() const
Definition Stack.h:140
AWS_APPSTREAM_API Stack & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetName(NameT &&value)
Definition Stack.h:71
Stack & AddAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:283
void SetFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:186
bool AccessEndpointsHasBeenSet() const
Definition Stack.h:271
void SetRedirectURL(RedirectURLT &&value)
Definition Stack.h:167
const WebAuthnRedirection & GetWebAuthnRedirection() const
Definition Stack.h:361
const ApplicationSettingsResponse & GetApplicationSettings() const
Definition Stack.h:250
Stack & WithAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:278
bool DisplayNameHasBeenSet() const
Definition Stack.h:105
void SetAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:273
Stack & WithStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:148
bool StackErrorsHasBeenSet() const
Definition Stack.h:202
const Aws::String & GetFeedbackURL() const
Definition Stack.h:183
Stack & WithAgentAccessConfig(AgentAccessConfigT &&value)
Definition Stack.h:387
void SetDisplayName(DisplayNameT &&value)
Definition Stack.h:107
const StreamingExperienceSettings & GetStreamingExperienceSettings() const
Definition Stack.h:321
Stack & WithStackErrors(StackErrorsT &&value)
Definition Stack.h:209
bool CreatedTimeHasBeenSet() const
Definition Stack.h:123
bool DescriptionHasBeenSet() const
Definition Stack.h:87
const Aws::Vector< StackError > & GetStackErrors() const
Definition Stack.h:201
AWS_APPSTREAM_API Stack()=default
Stack & WithArn(ArnT &&value)
Definition Stack.h:58
const Aws::String & GetRedirectURL() const
Definition Stack.h:164
Stack & WithContentRedirection(ContentRedirectionT &&value)
Definition Stack.h:349
void SetArn(ArnT &&value)
Definition Stack.h:53
bool StreamingExperienceSettingsHasBeenSet() const
Definition Stack.h:322
const Aws::String & GetDescription() const
Definition Stack.h:86
bool FeedbackURLHasBeenSet() const
Definition Stack.h:184
const Aws::String & GetArn() const
Definition Stack.h:50
const Aws::Vector< UserSetting > & GetUserSettings() const
Definition Stack.h:226
void SetContentRedirection(ContentRedirectionT &&value)
Definition Stack.h:344
void SetCreatedTime(CreatedTimeT &&value)
Definition Stack.h:125
Stack & AddUserSettings(UserSettingsT &&value)
Definition Stack.h:239
bool NameHasBeenSet() const
Definition Stack.h:69
Stack & WithStorageConnectorAuthentication(StorageConnectorAuthentication value)
Definition Stack.h:407
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
Definition Stack.h:270
const ContentRedirection & GetContentRedirection() const
Definition Stack.h:341
Stack & WithApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:258
Stack & AddStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:153
Stack & WithDisplayName(DisplayNameT &&value)
Definition Stack.h:112
void SetUserSettings(UserSettingsT &&value)
Definition Stack.h:229
StorageConnectorAuthentication GetStorageConnectorAuthentication() const
Definition Stack.h:401
const Aws::String & GetDisplayName() const
Definition Stack.h:104
Stack & WithEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:304
bool ContentRedirectionHasBeenSet() const
Definition Stack.h:342
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Stack.h:122
void SetStorageConnectorAuthentication(StorageConnectorAuthentication value)
Definition Stack.h:403
void SetApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:253
Stack & WithName(NameT &&value)
Definition Stack.h:76
Stack & WithStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:329
bool StorageConnectorsHasBeenSet() const
Definition Stack.h:141
Stack & WithRedirectURL(RedirectURLT &&value)
Definition Stack.h:172
Stack & WithFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:191
AWS_APPSTREAM_API Stack(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const AgentAccessConfig & GetAgentAccessConfig() const
Definition Stack.h:379
Stack & WithWebAuthnRedirection(WebAuthnRedirectionT &&value)
Definition Stack.h:369
bool AgentAccessConfigHasBeenSet() const
Definition Stack.h:380
Stack & WithUserSettings(UserSettingsT &&value)
Definition Stack.h:234
bool StorageConnectorAuthenticationHasBeenSet() const
Definition Stack.h:402
bool ArnHasBeenSet() const
Definition Stack.h:51
void SetWebAuthnRedirection(WebAuthnRedirectionT &&value)
Definition Stack.h:364
Stack & WithDescription(DescriptionT &&value)
Definition Stack.h:94
Stack & AddStackErrors(StackErrorsT &&value)
Definition Stack.h:214
void SetStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:143
bool EmbedHostDomainsHasBeenSet() const
Definition Stack.h:297
bool ApplicationSettingsHasBeenSet() const
Definition Stack.h:251
bool UserSettingsHasBeenSet() const
Definition Stack.h:227
void SetEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:299
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector