AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
GetStreamSessionResult.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/ExportFilesMetadata.h>
15#include <aws/gameliftstreams/model/PerformanceStatsConfiguration.h>
16#include <aws/gameliftstreams/model/Protocol.h>
17#include <aws/gameliftstreams/model/StreamSessionStatus.h>
18#include <aws/gameliftstreams/model/StreamSessionStatusReason.h>
19
20#include <utility>
21
22namespace Aws {
23template <typename RESULT_TYPE>
24class AmazonWebServiceResult;
25
26namespace Utils {
27namespace Json {
28class JsonValue;
29} // namespace Json
30} // namespace Utils
31namespace GameLiftStreams {
32namespace Model {
34 public:
35 AWS_GAMELIFTSTREAMS_API GetStreamSessionResult() = default;
38
40
49 inline const Aws::String& GetArn() const { return m_arn; }
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>
57 SetArn(std::forward<ArnT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetDescription() const { return m_description; }
68 template <typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) {
70 m_descriptionHasBeenSet = true;
71 m_description = std::forward<DescriptionT>(value);
72 }
73 template <typename DescriptionT = Aws::String>
74 GetStreamSessionResult& WithDescription(DescriptionT&& value) {
75 SetDescription(std::forward<DescriptionT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetStreamGroupId() const { return m_streamGroupId; }
86 template <typename StreamGroupIdT = Aws::String>
87 void SetStreamGroupId(StreamGroupIdT&& value) {
88 m_streamGroupIdHasBeenSet = true;
89 m_streamGroupId = std::forward<StreamGroupIdT>(value);
90 }
91 template <typename StreamGroupIdT = Aws::String>
92 GetStreamSessionResult& WithStreamGroupId(StreamGroupIdT&& value) {
93 SetStreamGroupId(std::forward<StreamGroupIdT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetUserId() const { return m_userId; }
103 template <typename UserIdT = Aws::String>
104 void SetUserId(UserIdT&& value) {
105 m_userIdHasBeenSet = true;
106 m_userId = std::forward<UserIdT>(value);
107 }
108 template <typename UserIdT = Aws::String>
110 SetUserId(std::forward<UserIdT>(value));
111 return *this;
112 }
114
116
145 inline StreamSessionStatus GetStatus() const { return m_status; }
146 inline void SetStatus(StreamSessionStatus value) {
147 m_statusHasBeenSet = true;
148 m_status = value;
149 }
151 SetStatus(value);
152 return *this;
153 }
155
157
187 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
189 m_statusReasonHasBeenSet = true;
190 m_statusReason = value;
191 }
193 SetStatusReason(value);
194 return *this;
195 }
197
199
202 inline Protocol GetProtocol() const { return m_protocol; }
203 inline void SetProtocol(Protocol value) {
204 m_protocolHasBeenSet = true;
205 m_protocol = value;
206 }
208 SetProtocol(value);
209 return *this;
210 }
212
214
222 inline const Aws::String& GetLocation() const { return m_location; }
223 template <typename LocationT = Aws::String>
224 void SetLocation(LocationT&& value) {
225 m_locationHasBeenSet = true;
226 m_location = std::forward<LocationT>(value);
227 }
228 template <typename LocationT = Aws::String>
230 SetLocation(std::forward<LocationT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
241 template <typename SignalRequestT = Aws::String>
242 void SetSignalRequest(SignalRequestT&& value) {
243 m_signalRequestHasBeenSet = true;
244 m_signalRequest = std::forward<SignalRequestT>(value);
245 }
246 template <typename SignalRequestT = Aws::String>
247 GetStreamSessionResult& WithSignalRequest(SignalRequestT&& value) {
248 SetSignalRequest(std::forward<SignalRequestT>(value));
249 return *this;
250 }
252
254
258 inline const Aws::String& GetSignalResponse() const { return m_signalResponse; }
259 template <typename SignalResponseT = Aws::String>
260 void SetSignalResponse(SignalResponseT&& value) {
261 m_signalResponseHasBeenSet = true;
262 m_signalResponse = std::forward<SignalResponseT>(value);
263 }
264 template <typename SignalResponseT = Aws::String>
265 GetStreamSessionResult& WithSignalResponse(SignalResponseT&& value) {
266 SetSignalResponse(std::forward<SignalResponseT>(value));
267 return *this;
268 }
270
272
280 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
281 inline void SetConnectionTimeoutSeconds(int value) {
282 m_connectionTimeoutSecondsHasBeenSet = true;
283 m_connectionTimeoutSeconds = value;
284 }
287 return *this;
288 }
290
292
297 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
298 inline void SetSessionLengthSeconds(int value) {
299 m_sessionLengthSecondsHasBeenSet = true;
300 m_sessionLengthSeconds = value;
301 }
304 return *this;
305 }
307
309
320 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
321 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
322 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
323 m_additionalLaunchArgsHasBeenSet = true;
324 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
325 }
326 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
327 GetStreamSessionResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
328 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
329 return *this;
330 }
331 template <typename AdditionalLaunchArgsT = Aws::String>
332 GetStreamSessionResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
333 m_additionalLaunchArgsHasBeenSet = true;
334 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
335 return *this;
336 }
338
340
355 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
356 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
357 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
358 m_additionalEnvironmentVariablesHasBeenSet = true;
359 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
360 }
361 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
362 GetStreamSessionResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
363 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
364 return *this;
365 }
366 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
367 GetStreamSessionResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
368 AdditionalEnvironmentVariablesValueT&& value) {
369 m_additionalEnvironmentVariablesHasBeenSet = true;
370 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
371 std::forward<AdditionalEnvironmentVariablesValueT>(value));
372 return *this;
373 }
375
377
380 inline const PerformanceStatsConfiguration& GetPerformanceStatsConfiguration() const { return m_performanceStatsConfiguration; }
381 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
382 void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
383 m_performanceStatsConfigurationHasBeenSet = true;
384 m_performanceStatsConfiguration = std::forward<PerformanceStatsConfigurationT>(value);
385 }
386 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
387 GetStreamSessionResult& WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
388 SetPerformanceStatsConfiguration(std::forward<PerformanceStatsConfigurationT>(value));
389 return *this;
390 }
392
394
400 inline const Aws::String& GetLogFileLocationUri() const { return m_logFileLocationUri; }
401 template <typename LogFileLocationUriT = Aws::String>
402 void SetLogFileLocationUri(LogFileLocationUriT&& value) {
403 m_logFileLocationUriHasBeenSet = true;
404 m_logFileLocationUri = std::forward<LogFileLocationUriT>(value);
405 }
406 template <typename LogFileLocationUriT = Aws::String>
407 GetStreamSessionResult& WithLogFileLocationUri(LogFileLocationUriT&& value) {
408 SetLogFileLocationUri(std::forward<LogFileLocationUriT>(value));
409 return *this;
410 }
412
414
418 inline const Aws::String& GetWebSdkProtocolUrl() const { return m_webSdkProtocolUrl; }
419 template <typename WebSdkProtocolUrlT = Aws::String>
420 void SetWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) {
421 m_webSdkProtocolUrlHasBeenSet = true;
422 m_webSdkProtocolUrl = std::forward<WebSdkProtocolUrlT>(value);
423 }
424 template <typename WebSdkProtocolUrlT = Aws::String>
425 GetStreamSessionResult& WithWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) {
426 SetWebSdkProtocolUrl(std::forward<WebSdkProtocolUrlT>(value));
427 return *this;
428 }
430
432
437 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
438 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
439 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
440 m_lastUpdatedAtHasBeenSet = true;
441 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
442 }
443 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
444 GetStreamSessionResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
445 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
446 return *this;
447 }
449
451
456 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
457 template <typename CreatedAtT = Aws::Utils::DateTime>
458 void SetCreatedAt(CreatedAtT&& value) {
459 m_createdAtHasBeenSet = true;
460 m_createdAt = std::forward<CreatedAtT>(value);
461 }
462 template <typename CreatedAtT = Aws::Utils::DateTime>
464 SetCreatedAt(std::forward<CreatedAtT>(value));
465 return *this;
466 }
468
470
478 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
479 template <typename ApplicationArnT = Aws::String>
480 void SetApplicationArn(ApplicationArnT&& value) {
481 m_applicationArnHasBeenSet = true;
482 m_applicationArn = std::forward<ApplicationArnT>(value);
483 }
484 template <typename ApplicationArnT = Aws::String>
485 GetStreamSessionResult& WithApplicationArn(ApplicationArnT&& value) {
486 SetApplicationArn(std::forward<ApplicationArnT>(value));
487 return *this;
488 }
490
492
495 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
496 template <typename ExportFilesMetadataT = ExportFilesMetadata>
497 void SetExportFilesMetadata(ExportFilesMetadataT&& value) {
498 m_exportFilesMetadataHasBeenSet = true;
499 m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value);
500 }
501 template <typename ExportFilesMetadataT = ExportFilesMetadata>
502 GetStreamSessionResult& WithExportFilesMetadata(ExportFilesMetadataT&& value) {
503 SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value));
504 return *this;
505 }
507
509
514 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
515 template <typename RoleArnT = Aws::String>
516 void SetRoleArn(RoleArnT&& value) {
517 m_roleArnHasBeenSet = true;
518 m_roleArn = std::forward<RoleArnT>(value);
519 }
520 template <typename RoleArnT = Aws::String>
522 SetRoleArn(std::forward<RoleArnT>(value));
523 return *this;
524 }
526
528
531 inline const DisplayConfiguration& GetDisplayConfiguration() const { return m_displayConfiguration; }
532 template <typename DisplayConfigurationT = DisplayConfiguration>
533 void SetDisplayConfiguration(DisplayConfigurationT&& value) {
534 m_displayConfigurationHasBeenSet = true;
535 m_displayConfiguration = std::forward<DisplayConfigurationT>(value);
536 }
537 template <typename DisplayConfigurationT = DisplayConfiguration>
538 GetStreamSessionResult& WithDisplayConfiguration(DisplayConfigurationT&& value) {
539 SetDisplayConfiguration(std::forward<DisplayConfigurationT>(value));
540 return *this;
541 }
543
545
546 inline const Aws::String& GetRequestId() const { return m_requestId; }
547 template <typename RequestIdT = Aws::String>
548 void SetRequestId(RequestIdT&& value) {
549 m_requestIdHasBeenSet = true;
550 m_requestId = std::forward<RequestIdT>(value);
551 }
552 template <typename RequestIdT = Aws::String>
554 SetRequestId(std::forward<RequestIdT>(value));
555 return *this;
556 }
558 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
559
560 private:
561 Aws::String m_arn;
562
563 Aws::String m_description;
564
565 Aws::String m_streamGroupId;
566
567 Aws::String m_userId;
568
570
572
573 Protocol m_protocol{Protocol::NOT_SET};
574
575 Aws::String m_location;
576
577 Aws::String m_signalRequest;
578
579 Aws::String m_signalResponse;
580
581 int m_connectionTimeoutSeconds{0};
582
583 int m_sessionLengthSeconds{0};
584
585 Aws::Vector<Aws::String> m_additionalLaunchArgs;
586
587 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
588
589 PerformanceStatsConfiguration m_performanceStatsConfiguration;
590
591 Aws::String m_logFileLocationUri;
592
593 Aws::String m_webSdkProtocolUrl;
594
595 Aws::Utils::DateTime m_lastUpdatedAt{};
596
597 Aws::Utils::DateTime m_createdAt{};
598
599 Aws::String m_applicationArn;
600
601 ExportFilesMetadata m_exportFilesMetadata;
602
603 Aws::String m_roleArn;
604
605 DisplayConfiguration m_displayConfiguration;
606
607 Aws::String m_requestId;
608 Aws::Http::HttpResponseCode m_HttpResponseCode;
609 bool m_arnHasBeenSet = false;
610 bool m_descriptionHasBeenSet = false;
611 bool m_streamGroupIdHasBeenSet = false;
612 bool m_userIdHasBeenSet = false;
613 bool m_statusHasBeenSet = false;
614 bool m_statusReasonHasBeenSet = false;
615 bool m_protocolHasBeenSet = false;
616 bool m_locationHasBeenSet = false;
617 bool m_signalRequestHasBeenSet = false;
618 bool m_signalResponseHasBeenSet = false;
619 bool m_connectionTimeoutSecondsHasBeenSet = false;
620 bool m_sessionLengthSecondsHasBeenSet = false;
621 bool m_additionalLaunchArgsHasBeenSet = false;
622 bool m_additionalEnvironmentVariablesHasBeenSet = false;
623 bool m_performanceStatsConfigurationHasBeenSet = false;
624 bool m_logFileLocationUriHasBeenSet = false;
625 bool m_webSdkProtocolUrlHasBeenSet = false;
626 bool m_lastUpdatedAtHasBeenSet = false;
627 bool m_createdAtHasBeenSet = false;
628 bool m_applicationArnHasBeenSet = false;
629 bool m_exportFilesMetadataHasBeenSet = false;
630 bool m_roleArnHasBeenSet = false;
631 bool m_displayConfigurationHasBeenSet = false;
632 bool m_requestIdHasBeenSet = false;
633};
634
635} // namespace Model
636} // namespace GameLiftStreams
637} // namespace Aws
GetStreamSessionResult & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
GetStreamSessionResult & WithSignalRequest(SignalRequestT &&value)
const ExportFilesMetadata & GetExportFilesMetadata() const
AWS_GAMELIFTSTREAMS_API GetStreamSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamSessionResult & WithAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
GetStreamSessionResult & WithSessionLengthSeconds(int value)
GetStreamSessionResult & WithConnectionTimeoutSeconds(int value)
GetStreamSessionResult & WithWebSdkProtocolUrl(WebSdkProtocolUrlT &&value)
GetStreamSessionResult & WithExportFilesMetadata(ExportFilesMetadataT &&value)
GetStreamSessionResult & WithStreamGroupId(StreamGroupIdT &&value)
GetStreamSessionResult & WithApplicationArn(ApplicationArnT &&value)
void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT &&value)
const Aws::Vector< Aws::String > & GetAdditionalLaunchArgs() const
void SetDisplayConfiguration(DisplayConfigurationT &&value)
AWS_GAMELIFTSTREAMS_API GetStreamSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStreamSessionResult & WithLocation(LocationT &&value)
AWS_GAMELIFTSTREAMS_API GetStreamSessionResult()=default
const PerformanceStatsConfiguration & GetPerformanceStatsConfiguration() const
GetStreamSessionResult & WithUserId(UserIdT &&value)
GetStreamSessionResult & WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT &&value)
const DisplayConfiguration & GetDisplayConfiguration() const
GetStreamSessionResult & WithSignalResponse(SignalResponseT &&value)
GetStreamSessionResult & WithDisplayConfiguration(DisplayConfigurationT &&value)
void SetAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
GetStreamSessionResult & WithCreatedAt(CreatedAtT &&value)
GetStreamSessionResult & WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
GetStreamSessionResult & AddAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEnvironmentVariables() const
void SetStatusReason(StreamSessionStatusReason value)
GetStreamSessionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
GetStreamSessionResult & WithRequestId(RequestIdT &&value)
GetStreamSessionResult & WithLogFileLocationUri(LogFileLocationUriT &&value)
GetStreamSessionResult & WithStatusReason(StreamSessionStatusReason value)
GetStreamSessionResult & WithDescription(DescriptionT &&value)
GetStreamSessionResult & WithStatus(StreamSessionStatus value)
GetStreamSessionResult & WithRoleArn(RoleArnT &&value)
GetStreamSessionResult & WithProtocol(Protocol 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