AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/StackError.h>
11#include <aws/appstream/model/StorageConnector.h>
12#include <aws/appstream/model/StreamingExperienceSettings.h>
13#include <aws/appstream/model/UserSetting.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AppStream {
28namespace Model {
29
35class Stack {
36 public:
37 AWS_APPSTREAM_API Stack() = default;
38 AWS_APPSTREAM_API Stack(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSTREAM_API Stack& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 Stack& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 Stack& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template <typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) {
86 m_descriptionHasBeenSet = true;
87 m_description = std::forward<DescriptionT>(value);
88 }
89 template <typename DescriptionT = Aws::String>
90 Stack& WithDescription(DescriptionT&& value) {
91 SetDescription(std::forward<DescriptionT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDisplayName() const { return m_displayName; }
101 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
102 template <typename DisplayNameT = Aws::String>
103 void SetDisplayName(DisplayNameT&& value) {
104 m_displayNameHasBeenSet = true;
105 m_displayName = std::forward<DisplayNameT>(value);
106 }
107 template <typename DisplayNameT = Aws::String>
108 Stack& WithDisplayName(DisplayNameT&& value) {
109 SetDisplayName(std::forward<DisplayNameT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
119 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
120 template <typename CreatedTimeT = Aws::Utils::DateTime>
121 void SetCreatedTime(CreatedTimeT&& value) {
122 m_createdTimeHasBeenSet = true;
123 m_createdTime = std::forward<CreatedTimeT>(value);
124 }
125 template <typename CreatedTimeT = Aws::Utils::DateTime>
126 Stack& WithCreatedTime(CreatedTimeT&& value) {
127 SetCreatedTime(std::forward<CreatedTimeT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<StorageConnector>& GetStorageConnectors() const { return m_storageConnectors; }
137 inline bool StorageConnectorsHasBeenSet() const { return m_storageConnectorsHasBeenSet; }
138 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
139 void SetStorageConnectors(StorageConnectorsT&& value) {
140 m_storageConnectorsHasBeenSet = true;
141 m_storageConnectors = std::forward<StorageConnectorsT>(value);
142 }
143 template <typename StorageConnectorsT = Aws::Vector<StorageConnector>>
144 Stack& WithStorageConnectors(StorageConnectorsT&& value) {
145 SetStorageConnectors(std::forward<StorageConnectorsT>(value));
146 return *this;
147 }
148 template <typename StorageConnectorsT = StorageConnector>
149 Stack& AddStorageConnectors(StorageConnectorsT&& value) {
150 m_storageConnectorsHasBeenSet = true;
151 m_storageConnectors.emplace_back(std::forward<StorageConnectorsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetRedirectURL() const { return m_redirectURL; }
161 inline bool RedirectURLHasBeenSet() const { return m_redirectURLHasBeenSet; }
162 template <typename RedirectURLT = Aws::String>
163 void SetRedirectURL(RedirectURLT&& value) {
164 m_redirectURLHasBeenSet = true;
165 m_redirectURL = std::forward<RedirectURLT>(value);
166 }
167 template <typename RedirectURLT = Aws::String>
168 Stack& WithRedirectURL(RedirectURLT&& value) {
169 SetRedirectURL(std::forward<RedirectURLT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetFeedbackURL() const { return m_feedbackURL; }
180 inline bool FeedbackURLHasBeenSet() const { return m_feedbackURLHasBeenSet; }
181 template <typename FeedbackURLT = Aws::String>
182 void SetFeedbackURL(FeedbackURLT&& value) {
183 m_feedbackURLHasBeenSet = true;
184 m_feedbackURL = std::forward<FeedbackURLT>(value);
185 }
186 template <typename FeedbackURLT = Aws::String>
187 Stack& WithFeedbackURL(FeedbackURLT&& value) {
188 SetFeedbackURL(std::forward<FeedbackURLT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::Vector<StackError>& GetStackErrors() const { return m_stackErrors; }
198 inline bool StackErrorsHasBeenSet() const { return m_stackErrorsHasBeenSet; }
199 template <typename StackErrorsT = Aws::Vector<StackError>>
200 void SetStackErrors(StackErrorsT&& value) {
201 m_stackErrorsHasBeenSet = true;
202 m_stackErrors = std::forward<StackErrorsT>(value);
203 }
204 template <typename StackErrorsT = Aws::Vector<StackError>>
205 Stack& WithStackErrors(StackErrorsT&& value) {
206 SetStackErrors(std::forward<StackErrorsT>(value));
207 return *this;
208 }
209 template <typename StackErrorsT = StackError>
210 Stack& AddStackErrors(StackErrorsT&& value) {
211 m_stackErrorsHasBeenSet = true;
212 m_stackErrors.emplace_back(std::forward<StackErrorsT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::Vector<UserSetting>& GetUserSettings() const { return m_userSettings; }
223 inline bool UserSettingsHasBeenSet() const { return m_userSettingsHasBeenSet; }
224 template <typename UserSettingsT = Aws::Vector<UserSetting>>
225 void SetUserSettings(UserSettingsT&& value) {
226 m_userSettingsHasBeenSet = true;
227 m_userSettings = std::forward<UserSettingsT>(value);
228 }
229 template <typename UserSettingsT = Aws::Vector<UserSetting>>
230 Stack& WithUserSettings(UserSettingsT&& value) {
231 SetUserSettings(std::forward<UserSettingsT>(value));
232 return *this;
233 }
234 template <typename UserSettingsT = UserSetting>
235 Stack& AddUserSettings(UserSettingsT&& value) {
236 m_userSettingsHasBeenSet = true;
237 m_userSettings.emplace_back(std::forward<UserSettingsT>(value));
238 return *this;
239 }
241
243
246 inline const ApplicationSettingsResponse& GetApplicationSettings() const { return m_applicationSettings; }
247 inline bool ApplicationSettingsHasBeenSet() const { return m_applicationSettingsHasBeenSet; }
248 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
249 void SetApplicationSettings(ApplicationSettingsT&& value) {
250 m_applicationSettingsHasBeenSet = true;
251 m_applicationSettings = std::forward<ApplicationSettingsT>(value);
252 }
253 template <typename ApplicationSettingsT = ApplicationSettingsResponse>
254 Stack& WithApplicationSettings(ApplicationSettingsT&& value) {
255 SetApplicationSettings(std::forward<ApplicationSettingsT>(value));
256 return *this;
257 }
259
261
266 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
267 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
268 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
269 void SetAccessEndpoints(AccessEndpointsT&& value) {
270 m_accessEndpointsHasBeenSet = true;
271 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
272 }
273 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
274 Stack& WithAccessEndpoints(AccessEndpointsT&& value) {
275 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
276 return *this;
277 }
278 template <typename AccessEndpointsT = AccessEndpoint>
279 Stack& AddAccessEndpoints(AccessEndpointsT&& value) {
280 m_accessEndpointsHasBeenSet = true;
281 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
282 return *this;
283 }
285
287
292 inline const Aws::Vector<Aws::String>& GetEmbedHostDomains() const { return m_embedHostDomains; }
293 inline bool EmbedHostDomainsHasBeenSet() const { return m_embedHostDomainsHasBeenSet; }
294 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
295 void SetEmbedHostDomains(EmbedHostDomainsT&& value) {
296 m_embedHostDomainsHasBeenSet = true;
297 m_embedHostDomains = std::forward<EmbedHostDomainsT>(value);
298 }
299 template <typename EmbedHostDomainsT = Aws::Vector<Aws::String>>
300 Stack& WithEmbedHostDomains(EmbedHostDomainsT&& value) {
301 SetEmbedHostDomains(std::forward<EmbedHostDomainsT>(value));
302 return *this;
303 }
304 template <typename EmbedHostDomainsT = Aws::String>
305 Stack& AddEmbedHostDomains(EmbedHostDomainsT&& value) {
306 m_embedHostDomainsHasBeenSet = true;
307 m_embedHostDomains.emplace_back(std::forward<EmbedHostDomainsT>(value));
308 return *this;
309 }
311
313
317 inline const StreamingExperienceSettings& GetStreamingExperienceSettings() const { return m_streamingExperienceSettings; }
318 inline bool StreamingExperienceSettingsHasBeenSet() const { return m_streamingExperienceSettingsHasBeenSet; }
319 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
320 void SetStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
321 m_streamingExperienceSettingsHasBeenSet = true;
322 m_streamingExperienceSettings = std::forward<StreamingExperienceSettingsT>(value);
323 }
324 template <typename StreamingExperienceSettingsT = StreamingExperienceSettings>
325 Stack& WithStreamingExperienceSettings(StreamingExperienceSettingsT&& value) {
326 SetStreamingExperienceSettings(std::forward<StreamingExperienceSettingsT>(value));
327 return *this;
328 }
330 private:
331 Aws::String m_arn;
332
333 Aws::String m_name;
334
335 Aws::String m_description;
336
337 Aws::String m_displayName;
338
339 Aws::Utils::DateTime m_createdTime{};
340
341 Aws::Vector<StorageConnector> m_storageConnectors;
342
343 Aws::String m_redirectURL;
344
345 Aws::String m_feedbackURL;
346
347 Aws::Vector<StackError> m_stackErrors;
348
349 Aws::Vector<UserSetting> m_userSettings;
350
351 ApplicationSettingsResponse m_applicationSettings;
352
353 Aws::Vector<AccessEndpoint> m_accessEndpoints;
354
355 Aws::Vector<Aws::String> m_embedHostDomains;
356
357 StreamingExperienceSettings m_streamingExperienceSettings;
358 bool m_arnHasBeenSet = false;
359 bool m_nameHasBeenSet = false;
360 bool m_descriptionHasBeenSet = false;
361 bool m_displayNameHasBeenSet = false;
362 bool m_createdTimeHasBeenSet = false;
363 bool m_storageConnectorsHasBeenSet = false;
364 bool m_redirectURLHasBeenSet = false;
365 bool m_feedbackURLHasBeenSet = false;
366 bool m_stackErrorsHasBeenSet = false;
367 bool m_userSettingsHasBeenSet = false;
368 bool m_applicationSettingsHasBeenSet = false;
369 bool m_accessEndpointsHasBeenSet = false;
370 bool m_embedHostDomainsHasBeenSet = false;
371 bool m_streamingExperienceSettingsHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace AppStream
376} // namespace Aws
const Aws::String & GetName() const
Definition Stack.h:64
void SetStackErrors(StackErrorsT &&value)
Definition Stack.h:200
Stack & WithCreatedTime(CreatedTimeT &&value)
Definition Stack.h:126
const Aws::Vector< Aws::String > & GetEmbedHostDomains() const
Definition Stack.h:292
bool RedirectURLHasBeenSet() const
Definition Stack.h:161
void SetDescription(DescriptionT &&value)
Definition Stack.h:85
void SetStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:320
Stack & AddEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:305
AWS_APPSTREAM_API Stack & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< StorageConnector > & GetStorageConnectors() const
Definition Stack.h:136
void SetName(NameT &&value)
Definition Stack.h:67
Stack & AddAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:279
void SetFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:182
bool AccessEndpointsHasBeenSet() const
Definition Stack.h:267
void SetRedirectURL(RedirectURLT &&value)
Definition Stack.h:163
const ApplicationSettingsResponse & GetApplicationSettings() const
Definition Stack.h:246
Stack & WithAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:274
bool DisplayNameHasBeenSet() const
Definition Stack.h:101
void SetAccessEndpoints(AccessEndpointsT &&value)
Definition Stack.h:269
Stack & WithStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:144
bool StackErrorsHasBeenSet() const
Definition Stack.h:198
const Aws::String & GetFeedbackURL() const
Definition Stack.h:179
void SetDisplayName(DisplayNameT &&value)
Definition Stack.h:103
const StreamingExperienceSettings & GetStreamingExperienceSettings() const
Definition Stack.h:317
Stack & WithStackErrors(StackErrorsT &&value)
Definition Stack.h:205
bool CreatedTimeHasBeenSet() const
Definition Stack.h:119
bool DescriptionHasBeenSet() const
Definition Stack.h:83
const Aws::Vector< StackError > & GetStackErrors() const
Definition Stack.h:197
AWS_APPSTREAM_API Stack()=default
Stack & WithArn(ArnT &&value)
Definition Stack.h:54
const Aws::String & GetRedirectURL() const
Definition Stack.h:160
void SetArn(ArnT &&value)
Definition Stack.h:49
bool StreamingExperienceSettingsHasBeenSet() const
Definition Stack.h:318
const Aws::String & GetDescription() const
Definition Stack.h:82
bool FeedbackURLHasBeenSet() const
Definition Stack.h:180
const Aws::String & GetArn() const
Definition Stack.h:46
const Aws::Vector< UserSetting > & GetUserSettings() const
Definition Stack.h:222
void SetCreatedTime(CreatedTimeT &&value)
Definition Stack.h:121
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
Stack & AddUserSettings(UserSettingsT &&value)
Definition Stack.h:235
bool NameHasBeenSet() const
Definition Stack.h:65
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
Definition Stack.h:266
Stack & WithApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:254
AWS_APPSTREAM_API Stack(Aws::Utils::Json::JsonView jsonValue)
Stack & AddStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:149
Stack & WithDisplayName(DisplayNameT &&value)
Definition Stack.h:108
void SetUserSettings(UserSettingsT &&value)
Definition Stack.h:225
const Aws::String & GetDisplayName() const
Definition Stack.h:100
Stack & WithEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:300
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Stack.h:118
void SetApplicationSettings(ApplicationSettingsT &&value)
Definition Stack.h:249
Stack & WithName(NameT &&value)
Definition Stack.h:72
Stack & WithStreamingExperienceSettings(StreamingExperienceSettingsT &&value)
Definition Stack.h:325
bool StorageConnectorsHasBeenSet() const
Definition Stack.h:137
Stack & WithRedirectURL(RedirectURLT &&value)
Definition Stack.h:168
Stack & WithFeedbackURL(FeedbackURLT &&value)
Definition Stack.h:187
Stack & WithUserSettings(UserSettingsT &&value)
Definition Stack.h:230
bool ArnHasBeenSet() const
Definition Stack.h:47
Stack & WithDescription(DescriptionT &&value)
Definition Stack.h:90
Stack & AddStackErrors(StackErrorsT &&value)
Definition Stack.h:210
void SetStorageConnectors(StorageConnectorsT &&value)
Definition Stack.h:139
bool EmbedHostDomainsHasBeenSet() const
Definition Stack.h:293
bool ApplicationSettingsHasBeenSet() const
Definition Stack.h:247
bool UserSettingsHasBeenSet() const
Definition Stack.h:223
void SetEmbedHostDomains(EmbedHostDomainsT &&value)
Definition Stack.h:295
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue