AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
GetStreamUrlResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
13#include <aws/gameliftstreams/model/DisplayConfiguration.h>
14#include <aws/gameliftstreams/model/Protocol.h>
15#include <aws/gameliftstreams/model/StreamSessionSummary.h>
16#include <aws/gameliftstreams/model/StreamUrlStatus.h>
17#include <aws/gameliftstreams/model/StreamUrlStatusReason.h>
18
19#include <utility>
20
21namespace Aws {
22template <typename RESULT_TYPE>
23class AmazonWebServiceResult;
24
25namespace Utils {
26namespace Json {
27class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace GameLiftStreams {
31namespace Model {
33 public:
34 AWS_GAMELIFTSTREAMS_API GetStreamUrlResult() = default;
37
39
47 inline const Aws::String& GetArn() const { return m_arn; }
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 GetStreamUrlResult& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetStreamUrlId() const { return m_streamUrlId; }
66 template <typename StreamUrlIdT = Aws::String>
67 void SetStreamUrlId(StreamUrlIdT&& value) {
68 m_streamUrlIdHasBeenSet = true;
69 m_streamUrlId = std::forward<StreamUrlIdT>(value);
70 }
71 template <typename StreamUrlIdT = Aws::String>
72 GetStreamUrlResult& WithStreamUrlId(StreamUrlIdT&& value) {
73 SetStreamUrlId(std::forward<StreamUrlIdT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetStreamUrl() const { return m_streamUrl; }
86 template <typename StreamUrlT = Aws::String>
87 void SetStreamUrl(StreamUrlT&& value) {
88 m_streamUrlHasBeenSet = true;
89 m_streamUrl = std::forward<StreamUrlT>(value);
90 }
91 template <typename StreamUrlT = Aws::String>
92 GetStreamUrlResult& WithStreamUrl(StreamUrlT&& value) {
93 SetStreamUrl(std::forward<StreamUrlT>(value));
94 return *this;
95 }
97
99
109 inline StreamUrlStatus GetStatus() const { return m_status; }
110 inline void SetStatus(StreamUrlStatus value) {
111 m_statusHasBeenSet = true;
112 m_status = value;
113 }
115 SetStatus(value);
116 return *this;
117 }
119
121
134 inline StreamUrlStatusReason GetStatusReason() const { return m_statusReason; }
136 m_statusReasonHasBeenSet = true;
137 m_statusReason = value;
138 }
140 SetStatusReason(value);
141 return *this;
142 }
144
146
151 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
152 template <typename ExpiresAtT = Aws::Utils::DateTime>
153 void SetExpiresAt(ExpiresAtT&& value) {
154 m_expiresAtHasBeenSet = true;
155 m_expiresAt = std::forward<ExpiresAtT>(value);
156 }
157 template <typename ExpiresAtT = Aws::Utils::DateTime>
158 GetStreamUrlResult& WithExpiresAt(ExpiresAtT&& value) {
159 SetExpiresAt(std::forward<ExpiresAtT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
171 template <typename CreatedAtT = Aws::Utils::DateTime>
172 void SetCreatedAt(CreatedAtT&& value) {
173 m_createdAtHasBeenSet = true;
174 m_createdAt = std::forward<CreatedAtT>(value);
175 }
176 template <typename CreatedAtT = Aws::Utils::DateTime>
177 GetStreamUrlResult& WithCreatedAt(CreatedAtT&& value) {
178 SetCreatedAt(std::forward<CreatedAtT>(value));
179 return *this;
180 }
182
184
187 inline int GetUsageLimit() const { return m_usageLimit; }
188 inline void SetUsageLimit(int value) {
189 m_usageLimitHasBeenSet = true;
190 m_usageLimit = value;
191 }
193 SetUsageLimit(value);
194 return *this;
195 }
197
199
203 inline int GetRemainingUses() const { return m_remainingUses; }
204 inline void SetRemainingUses(int value) {
205 m_remainingUsesHasBeenSet = true;
206 m_remainingUses = value;
207 }
209 SetRemainingUses(value);
210 return *this;
211 }
213
215
223 inline const Aws::String& GetStreamGroupArn() const { return m_streamGroupArn; }
224 template <typename StreamGroupArnT = Aws::String>
225 void SetStreamGroupArn(StreamGroupArnT&& value) {
226 m_streamGroupArnHasBeenSet = true;
227 m_streamGroupArn = std::forward<StreamGroupArnT>(value);
228 }
229 template <typename StreamGroupArnT = Aws::String>
230 GetStreamUrlResult& WithStreamGroupArn(StreamGroupArnT&& value) {
231 SetStreamGroupArn(std::forward<StreamGroupArnT>(value));
232 return *this;
233 }
235
237
245 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
246 template <typename ApplicationArnT = Aws::String>
247 void SetApplicationArn(ApplicationArnT&& value) {
248 m_applicationArnHasBeenSet = true;
249 m_applicationArn = std::forward<ApplicationArnT>(value);
250 }
251 template <typename ApplicationArnT = Aws::String>
252 GetStreamUrlResult& WithApplicationArn(ApplicationArnT&& value) {
253 SetApplicationArn(std::forward<ApplicationArnT>(value));
254 return *this;
255 }
257
259
263 inline Protocol GetProtocol() const { return m_protocol; }
264 inline void SetProtocol(Protocol value) {
265 m_protocolHasBeenSet = true;
266 m_protocol = value;
267 }
269 SetProtocol(value);
270 return *this;
271 }
273
275
283 inline const Aws::Vector<Aws::String>& GetLocations() const { return m_locations; }
284 template <typename LocationsT = Aws::Vector<Aws::String>>
285 void SetLocations(LocationsT&& value) {
286 m_locationsHasBeenSet = true;
287 m_locations = std::forward<LocationsT>(value);
288 }
289 template <typename LocationsT = Aws::Vector<Aws::String>>
290 GetStreamUrlResult& WithLocations(LocationsT&& value) {
291 SetLocations(std::forward<LocationsT>(value));
292 return *this;
293 }
294 template <typename LocationsT = Aws::String>
295 GetStreamUrlResult& AddLocations(LocationsT&& value) {
296 m_locationsHasBeenSet = true;
297 m_locations.emplace_back(std::forward<LocationsT>(value));
298 return *this;
299 }
301
303
307 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
308 inline void SetSessionLengthSeconds(int value) {
309 m_sessionLengthSecondsHasBeenSet = true;
310 m_sessionLengthSeconds = value;
311 }
314 return *this;
315 }
317
319
322 inline const Aws::String& GetDescription() const { return m_description; }
323 template <typename DescriptionT = Aws::String>
324 void SetDescription(DescriptionT&& value) {
325 m_descriptionHasBeenSet = true;
326 m_description = std::forward<DescriptionT>(value);
327 }
328 template <typename DescriptionT = Aws::String>
329 GetStreamUrlResult& WithDescription(DescriptionT&& value) {
330 SetDescription(std::forward<DescriptionT>(value));
331 return *this;
332 }
334
336
340 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
341 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
342 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
343 m_additionalLaunchArgsHasBeenSet = true;
344 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
345 }
346 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
347 GetStreamUrlResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
348 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
349 return *this;
350 }
351 template <typename AdditionalLaunchArgsT = Aws::String>
352 GetStreamUrlResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
353 m_additionalLaunchArgsHasBeenSet = true;
354 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
355 return *this;
356 }
358
360
364 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
365 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
366 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
367 m_additionalEnvironmentVariablesHasBeenSet = true;
368 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
369 }
370 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
371 GetStreamUrlResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
372 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
373 return *this;
374 }
375 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
376 GetStreamUrlResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
377 AdditionalEnvironmentVariablesValueT&& value) {
378 m_additionalEnvironmentVariablesHasBeenSet = true;
379 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
380 std::forward<AdditionalEnvironmentVariablesValueT>(value));
381 return *this;
382 }
384
386
394 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
395 template <typename RoleArnT = Aws::String>
396 void SetRoleArn(RoleArnT&& value) {
397 m_roleArnHasBeenSet = true;
398 m_roleArn = std::forward<RoleArnT>(value);
399 }
400 template <typename RoleArnT = Aws::String>
401 GetStreamUrlResult& WithRoleArn(RoleArnT&& value) {
402 SetRoleArn(std::forward<RoleArnT>(value));
403 return *this;
404 }
406
408
412 inline const DisplayConfiguration& GetDisplayConfiguration() const { return m_displayConfiguration; }
413 template <typename DisplayConfigurationT = DisplayConfiguration>
414 void SetDisplayConfiguration(DisplayConfigurationT&& value) {
415 m_displayConfigurationHasBeenSet = true;
416 m_displayConfiguration = std::forward<DisplayConfigurationT>(value);
417 }
418 template <typename DisplayConfigurationT = DisplayConfiguration>
419 GetStreamUrlResult& WithDisplayConfiguration(DisplayConfigurationT&& value) {
420 SetDisplayConfiguration(std::forward<DisplayConfigurationT>(value));
421 return *this;
422 }
424
426
430 inline const Aws::Vector<StreamSessionSummary>& GetStreamSessions() const { return m_streamSessions; }
431 template <typename StreamSessionsT = Aws::Vector<StreamSessionSummary>>
432 void SetStreamSessions(StreamSessionsT&& value) {
433 m_streamSessionsHasBeenSet = true;
434 m_streamSessions = std::forward<StreamSessionsT>(value);
435 }
436 template <typename StreamSessionsT = Aws::Vector<StreamSessionSummary>>
437 GetStreamUrlResult& WithStreamSessions(StreamSessionsT&& value) {
438 SetStreamSessions(std::forward<StreamSessionsT>(value));
439 return *this;
440 }
441 template <typename StreamSessionsT = StreamSessionSummary>
442 GetStreamUrlResult& AddStreamSessions(StreamSessionsT&& value) {
443 m_streamSessionsHasBeenSet = true;
444 m_streamSessions.emplace_back(std::forward<StreamSessionsT>(value));
445 return *this;
446 }
448
450
451 inline const Aws::String& GetRequestId() const { return m_requestId; }
452 template <typename RequestIdT = Aws::String>
453 void SetRequestId(RequestIdT&& value) {
454 m_requestIdHasBeenSet = true;
455 m_requestId = std::forward<RequestIdT>(value);
456 }
457 template <typename RequestIdT = Aws::String>
458 GetStreamUrlResult& WithRequestId(RequestIdT&& value) {
459 SetRequestId(std::forward<RequestIdT>(value));
460 return *this;
461 }
463 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
464
465 private:
466 Aws::String m_arn;
467
468 Aws::String m_streamUrlId;
469
470 Aws::String m_streamUrl;
471
473
475
476 Aws::Utils::DateTime m_expiresAt{};
477
478 Aws::Utils::DateTime m_createdAt{};
479
480 int m_usageLimit{0};
481
482 int m_remainingUses{0};
483
484 Aws::String m_streamGroupArn;
485
486 Aws::String m_applicationArn;
487
488 Protocol m_protocol{Protocol::NOT_SET};
489
490 Aws::Vector<Aws::String> m_locations;
491
492 int m_sessionLengthSeconds{0};
493
494 Aws::String m_description;
495
496 Aws::Vector<Aws::String> m_additionalLaunchArgs;
497
498 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
499
500 Aws::String m_roleArn;
501
502 DisplayConfiguration m_displayConfiguration;
503
504 Aws::Vector<StreamSessionSummary> m_streamSessions;
505
506 Aws::String m_requestId;
507 Aws::Http::HttpResponseCode m_HttpResponseCode;
508 bool m_arnHasBeenSet = false;
509 bool m_streamUrlIdHasBeenSet = false;
510 bool m_streamUrlHasBeenSet = false;
511 bool m_statusHasBeenSet = false;
512 bool m_statusReasonHasBeenSet = false;
513 bool m_expiresAtHasBeenSet = false;
514 bool m_createdAtHasBeenSet = false;
515 bool m_usageLimitHasBeenSet = false;
516 bool m_remainingUsesHasBeenSet = false;
517 bool m_streamGroupArnHasBeenSet = false;
518 bool m_applicationArnHasBeenSet = false;
519 bool m_protocolHasBeenSet = false;
520 bool m_locationsHasBeenSet = false;
521 bool m_sessionLengthSecondsHasBeenSet = false;
522 bool m_descriptionHasBeenSet = false;
523 bool m_additionalLaunchArgsHasBeenSet = false;
524 bool m_additionalEnvironmentVariablesHasBeenSet = false;
525 bool m_roleArnHasBeenSet = false;
526 bool m_displayConfigurationHasBeenSet = false;
527 bool m_streamSessionsHasBeenSet = false;
528 bool m_requestIdHasBeenSet = false;
529};
530
531} // namespace Model
532} // namespace GameLiftStreams
533} // namespace Aws
GetStreamUrlResult & WithStreamUrl(StreamUrlT &&value)
GetStreamUrlResult & WithArn(ArnT &&value)
GetStreamUrlResult & AddStreamSessions(StreamSessionsT &&value)
GetStreamUrlResult & WithApplicationArn(ApplicationArnT &&value)
GetStreamUrlResult & WithStreamUrlId(StreamUrlIdT &&value)
void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
AWS_GAMELIFTSTREAMS_API GetStreamUrlResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetExpiresAt() const
GetStreamUrlResult & WithDisplayConfiguration(DisplayConfigurationT &&value)
void SetDisplayConfiguration(DisplayConfigurationT &&value)
GetStreamUrlResult & WithDescription(DescriptionT &&value)
GetStreamUrlResult & WithRoleArn(RoleArnT &&value)
GetStreamUrlResult & WithLocations(LocationsT &&value)
GetStreamUrlResult & WithRemainingUses(int value)
GetStreamUrlResult & WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
GetStreamUrlResult & AddLocations(LocationsT &&value)
GetStreamUrlResult & WithAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
GetStreamUrlResult & WithStatus(StreamUrlStatus value)
void SetAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
GetStreamUrlResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEnvironmentVariables() const
const Aws::Vector< StreamSessionSummary > & GetStreamSessions() const
GetStreamUrlResult & WithExpiresAt(ExpiresAtT &&value)
AWS_GAMELIFTSTREAMS_API GetStreamUrlResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamUrlResult & WithStatusReason(StreamUrlStatusReason value)
GetStreamUrlResult & WithProtocol(Protocol value)
GetStreamUrlResult & WithSessionLengthSeconds(int value)
const Aws::Vector< Aws::String > & GetLocations() const
void SetStatusReason(StreamUrlStatusReason value)
AWS_GAMELIFTSTREAMS_API GetStreamUrlResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamUrlResult & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
GetStreamUrlResult & AddAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
GetStreamUrlResult & WithStreamSessions(StreamSessionsT &&value)
const Aws::Vector< Aws::String > & GetAdditionalLaunchArgs() const
const Aws::Utils::DateTime & GetCreatedAt() const
const DisplayConfiguration & GetDisplayConfiguration() const
GetStreamUrlResult & WithCreatedAt(CreatedAtT &&value)
GetStreamUrlResult & WithStreamGroupArn(StreamGroupArnT &&value)
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
Aws::Utils::Json::JsonValue JsonValue