AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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/StreamingExperienceSettings.h>
15#include <aws/appstream/model/UserSetting.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace AppStream {
30namespace Model {
31
37class Stack {
38 public:
39 AWS_APPSTREAM_API Stack() = default;
40 AWS_APPSTREAM_API Stack(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPSTREAM_API Stack& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template <typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) {
52 m_arnHasBeenSet = true;
53 m_arn = std::forward<ArnT>(value);
54 }
55 template <typename ArnT = Aws::String>
56 Stack& WithArn(ArnT&& value) {
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 Stack& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 Stack& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDisplayName() const { return m_displayName; }
103 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
104 template <typename DisplayNameT = Aws::String>
105 void SetDisplayName(DisplayNameT&& value) {
106 m_displayNameHasBeenSet = true;
107 m_displayName = std::forward<DisplayNameT>(value);
108 }
109 template <typename DisplayNameT = Aws::String>
110 Stack& WithDisplayName(DisplayNameT&& value) {
111 SetDisplayName(std::forward<DisplayNameT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
121 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
122 template <typename CreatedTimeT = Aws::Utils::DateTime>
123 void SetCreatedTime(CreatedTimeT&& value) {
124 m_createdTimeHasBeenSet = true;
125 m_createdTime = std::forward<CreatedTimeT>(value);
126 }
127 template <typename CreatedTimeT = Aws::Utils::DateTime>
128 Stack& WithCreatedTime(CreatedTimeT&& value) {
129 SetCreatedTime(std::forward<CreatedTimeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
139 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
140 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
141 void SetStorageConnectors(StorageConnectorsT&& value) {
142 m_storageConnectorsHasBeenSet = true;
143 m_storageConnectors = std::forward<StorageConnectorsT>(value);
144 }
145 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
146 Stack& WithStorageConnectors(StorageConnectorsT&& value) {
147 SetStorageConnectors(std::forward<StorageConnectorsT>(value));
148 return *this;
149 }
150 template <typename StorageConnectorsT = StorageConnector>
151 Stack& AddStorageConnectors(StorageConnectorsT&& value) {
152 m_storageConnectorsHasBeenSet = true;
153 m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
163 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
164 template <typename RedirectURLT = Aws::String>
165 void SetRedirectURL(RedirectURLT&& value) {
166 m_redirectURLHasBeenSet = true;
167 m_redirectURL = std::forward<RedirectURLT>(value);
168 }
169 template <typename RedirectURLT = Aws::String>
170 Stack& WithRedirectURL(RedirectURLT&& value) {
171 SetRedirectURL(std::forward<RedirectURLT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
182 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
183 template <typename FeedbackURLT = Aws::String>
184 void SetFeedbackURL(FeedbackURLT&& value) {
185 m_feedbackURLHasBeenSet = true;
186 m_feedbackURL = std::forward<FeedbackURLT>(value);
187 }
188 template <typename FeedbackURLT = Aws::String>
189 Stack& WithFeedbackURL(FeedbackURLT&& value) {
190 SetFeedbackURL(std::forward<FeedbackURLT>(value));
191 return *this;
192 }
194
196
199 inline const Aws::Vector<StackError>& GetStackErrors() const { return m_stackErrors; }
200 inline bool StackErrorsHasBeenSet() const { return m_stackErrorsHasBeenSet; }
201 template <typename StackErrorsT = Aws::Vector<StackError>>
202 void SetStackErrors(StackErrorsT&& value) {
203 m_stackErrorsHasBeenSet = true;
204 m_stackErrors = std::forward<StackErrorsT>(value);
205 }
206 template <typename StackErrorsT = Aws::Vector<StackError>>
207 Stack& WithStackErrors(StackErrorsT&& value) {
208 SetStackErrors(std::forward<StackErrorsT>(value));
209 return *this;
210 }
211 template <typename StackErrorsT = StackError>
212 Stack& AddStackErrors(StackErrorsT&& value) {
213 m_stackErrorsHasBeenSet = true;
214 m_stackErrors.emplace_back(std::forward<StackErrorsT>(value));
215 return *this;
216 }
218
220
224 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
225 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
226 template <typename UserSettingsT = Aws::Vector<UserSetting>>
227 void SetUserSettings(UserSettingsT&& value) {
228 m_userSettingsHasBeenSet = true;
229 m_userSettings = std::forward<UserSettingsT>(value);
230 }
231 template <typename UserSettingsT = Aws::Vector<UserSetting>>
232 Stack& WithUserSettings(UserSettingsT&& value) {
233 SetUserSettings(std::forward<UserSettingsT>(value));
234 return *this;
235 }
236 template <typename UserSettingsT = UserSetting>
237 Stack& AddUserSettings(UserSettingsT&& value) {
238 m_userSettingsHasBeenSet = true;
239 m_userSettings.emplace_back(std::forward<UserSettingsT>(value));
240 return *this;
241 }
243
245
248 inline const ApplicationSettingsResponse& GetApplicationSettings() const { return m_applicationSettings; }
249 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
250 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
251 void SetApplicationSettings(ApplicationSettingsT&& value) {
252 m_applicationSettingsHasBeenSet = true;
253 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
254 }
255 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
256 Stack& WithApplicationSettings(ApplicationSettingsT&& value) {
257 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
258 return *this;
259 }
261
263
268 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
269 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
270 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
271 void SetAccessEndpoints(AccessEndpointsT&& value) {
272 m_accessEndpointsHasBeenSet = true;
273 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
274 }
275 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
276 Stack& WithAccessEndpoints(AccessEndpointsT&& value) {
277 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
278 return *this;
279 }
280 template <typename AccessEndpointsT = AccessEndpoint>
281 Stack& AddAccessEndpoints(AccessEndpointsT&& value) {
282 m_accessEndpointsHasBeenSet = true;
283 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
284 return *this;
285 }
287
289
294 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
295 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
296 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
297 void SetEmbedHostDomains(EmbedHostDomainsT&& value) {
298 m_embedHostDomainsHasBeenSet = true;
299 m_embedHostDomains = std::forward<EmbedHostDomainsT>(value);
300 }
301 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
302 Stack& WithEmbedHostDomains(EmbedHostDomainsT&& value) {
303 SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value));
304 return *this;
305 }
306 template <typename EmbedHostDomainsT = Aws::String>
307 Stack& AddEmbedHostDomains(EmbedHostDomainsT&& value) {
308 m_embedHostDomainsHasBeenSet = true;
309 m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value));
310 return *this;
311 }
313
315
319 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
320 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
321 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
322 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
323 m_streamingExperienceSettingsHasBeenSet = true;
324 m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value);
325 }
326 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
327 Stack& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
328 SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value));
329 return *this;
330 }
332
334
339 inline const ContentRedirection& GetContentRedirection() const { return m_contentRedirection; }
340 inline bool ContentRedirectionHasBeenSet() const { return m_contentRedirectionHasBeenSet; }
341 template <typename ContentRedirectionT = ContentRedirection>
342 void SetContentRedirection(ContentRedirectionT&& value) {
343 m_contentRedirectionHasBeenSet = true;
344 m_contentRedirection = std::forward<ContentRedirectionT>(value);
345 }
346 template <typename ContentRedirectionT = ContentRedirection>
347 Stack& WithContentRedirection(ContentRedirectionT&& value) {
348 SetContentRedirection(std::forward<ContentRedirectionT>(value));
349 return *this;
350 }
352
354
357 inline const AgentAccessConfig& GetAgentAccessConfig() const { return m_agentAccessConfig; }
358 inline bool AgentAccessConfigHasBeenSet() const { return m_agentAccessConfigHasBeenSet; }
359 template <typename AgentAccessConfigT = AgentAccessConfig>
360 void SetAgentAccessConfig(AgentAccessConfigT&& value) {
361 m_agentAccessConfigHasBeenSet = true;
362 m_agentAccessConfig = std::forward<AgentAccessConfigT>(value);
363 }
364 template <typename AgentAccessConfigT = AgentAccessConfig>
365 Stack& WithAgentAccessConfig(AgentAccessConfigT&& value) {
366 SetAgentAccessConfig(std::forward<AgentAccessConfigT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_arn;
372
373 Aws::String m_name;
374
375 Aws::String m_description;
376
377 Aws::String m_displayName;
378
379 Aws::Utils::DateTime m_createdTime{};
380
381 Aws::Vector<StorageConnector> m_storageConnectors;
382
383 Aws::String m_redirectURL;
384
385 Aws::String m_feedbackURL;
386
387 Aws::Vector<StackError> m_stackErrors;
388
389 Aws::Vector<UserSetting> m_userSettings;
390
391 ApplicationSettingsResponse m_applicationSettings;
392
393 Aws::Vector<AccessEndpoint> m_accessEndpoints;
394
395 Aws::Vector<Aws::String> m_embedHostDomains;
396
397 StreamingExperienceSettings m_streamingExperienceSettings;
398
399 ContentRedirection m_contentRedirection;
400
401 AgentAccessConfig m_agentAccessConfig;
402 bool m_arnHasBeenSet = false;
403 bool m_nameHasBeenSet = false;
404 bool m_descriptionHasBeenSet = false;
405 bool m_displayNameHasBeenSet = false;
406 bool m_createdTimeHasBeenSet = false;
407 bool m_storageConnectorsHasBeenSet = false;
408 bool m_redirectURLHasBeenSet = false;
409 bool m_feedbackURLHasBeenSet = false;
410 bool m_stackErrorsHasBeenSet = false;
411 bool m_userSettingsHasBeenSet = false;
412 bool m_applicationSettingsHasBeenSet = false;
413 bool m_accessEndpointsHasBeenSet = false;
414 bool m_embedHostDomainsHasBeenSet = false;
415 bool m_streamingExperienceSettingsHasBeenSet = false;
416 bool m_contentRedirectionHasBeenSet = false;
417 bool m_agentAccessConfigHasBeenSet = false;
418};
419
420} // namespace Model
421} // namespace AppStream
422} // namespace Aws
const Aws::String & GetName() const
Definition Stack.h:66
void SetStackErrors(StackErrorsT &&value)
Definition Stack.h:202
Stack & WithCreatedTime(CreatedTimeT &&value)
Definition Stack.h:128
const Aws::Vector< Aws::String > & GetEmbedHostDomains() const
Definition Stack.h:294
bool RedirectURLHasBeenSet() const
Definition Stack.h:163
void SetDescription(DescriptionT &&value)
Definition Stack.h:87
void SetStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:322
Stack & AddEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:307
void SetAgentAccessConfig(AgentAccessConfigT &&value)
Definition Stack.h:360
AWS_APPSTREAM_API Stack & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< StorageConnector > & GetStorageConnectors() const
Definition Stack.h:138
void SetName(NameT &&value)
Definition Stack.h:69
Stack & AddAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:281
void SetFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:184
bool AccessEndpointsHasBeenSet() const
Definition Stack.h:269
void SetRedirectURL(RedirectURLT &&value)
Definition Stack.h:165
const ApplicationSettingsResponse & GetApplicationSettings() const
Definition Stack.h:248
Stack & WithAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:276
bool DisplayNameHasBeenSet() const
Definition Stack.h:103
void SetAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:271
Stack & WithStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:146
bool StackErrorsHasBeenSet() const
Definition Stack.h:200
const Aws::String & GetFeedbackURL() const
Definition Stack.h:181
Stack & WithAgentAccessConfig(AgentAccessConfigT &&value)
Definition Stack.h:365
void SetDisplayName(DisplayNameT &&value)
Definition Stack.h:105
const StreamingExperienceSettings & GetStreamingExperienceSettings() const
Definition Stack.h:319
Stack & WithStackErrors(StackErrorsT &&value)
Definition Stack.h:207
bool CreatedTimeHasBeenSet() const
Definition Stack.h:121
bool DescriptionHasBeenSet() const
Definition Stack.h:85
const Aws::Vector< StackError > & GetStackErrors() const
Definition Stack.h:199
AWS_APPSTREAM_API Stack()=default
Stack & WithArn(ArnT &&value)
Definition Stack.h:56
const Aws::String & GetRedirectURL() const
Definition Stack.h:162
Stack & WithContentRedirection(ContentRedirectionT &&value)
Definition Stack.h:347
void SetArn(ArnT &&value)
Definition Stack.h:51
bool StreamingExperienceSettingsHasBeenSet() const
Definition Stack.h:320
const Aws::String & GetDescription() const
Definition Stack.h:84
bool FeedbackURLHasBeenSet() const
Definition Stack.h:182
const Aws::String & GetArn() const
Definition Stack.h:48
const Aws::Vector< UserSetting > & GetUserSettings() const
Definition Stack.h:224
void SetContentRedirection(ContentRedirectionT &&value)
Definition Stack.h:342
void SetCreatedTime(CreatedTimeT &&value)
Definition Stack.h:123
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
Stack & AddUserSettings(UserSettingsT &&value)
Definition Stack.h:237
bool NameHasBeenSet() const
Definition Stack.h:67
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
Definition Stack.h:268
const ContentRedirection & GetContentRedirection() const
Definition Stack.h:339
Stack & WithApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:256
AWS_APPSTREAM_API Stack(Aws::Utils::Json::JsonView jsonValue)
Stack & AddStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:151
Stack & WithDisplayName(DisplayNameT &&value)
Definition Stack.h:110
void SetUserSettings(UserSettingsT &&value)
Definition Stack.h:227
const Aws::String & GetDisplayName() const
Definition Stack.h:102
Stack & WithEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:302
bool ContentRedirectionHasBeenSet() const
Definition Stack.h:340
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Stack.h:120
void SetApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:251
Stack & WithName(NameT &&value)
Definition Stack.h:74
Stack & WithStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:327
bool StorageConnectorsHasBeenSet() const
Definition Stack.h:139
Stack & WithRedirectURL(RedirectURLT &&value)
Definition Stack.h:170
Stack & WithFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:189
const AgentAccessConfig & GetAgentAccessConfig() const
Definition Stack.h:357
bool AgentAccessConfigHasBeenSet() const
Definition Stack.h:358
Stack & WithUserSettings(UserSettingsT &&value)
Definition Stack.h:232
bool ArnHasBeenSet() const
Definition Stack.h:49
Stack & WithDescription(DescriptionT &&value)
Definition Stack.h:92
Stack & AddStackErrors(StackErrorsT &&value)
Definition Stack.h:212
void SetStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:141
bool EmbedHostDomainsHasBeenSet() const
Definition Stack.h:295
bool ApplicationSettingsHasBeenSet() const
Definition Stack.h:249
bool UserSettingsHasBeenSet() const
Definition Stack.h:225
void SetEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:297
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue