AWS SDK for C++

AWS SDK for C++ Version 1.11.830

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/ExportFilesMetadata.h>
14#include <aws/gameliftstreams/model/PerformanceStatsConfiguration.h>
15#include <aws/gameliftstreams/model/Protocol.h>
16#include <aws/gameliftstreams/model/StreamSessionStatus.h>
17#include <aws/gameliftstreams/model/StreamSessionStatusReason.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 GetStreamSessionResult() = default;
37
39
48 inline const Aws::String& GetArn() const { return m_arn; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetDescription() const { return m_description; }
67 template <typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) {
69 m_descriptionHasBeenSet = true;
70 m_description = std::forward<DescriptionT>(value);
71 }
72 template <typename DescriptionT = Aws::String>
73 GetStreamSessionResult& WithDescription(DescriptionT&& value) {
74 SetDescription(std::forward<DescriptionT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetStreamGroupId() const { return m_streamGroupId; }
85 template <typename StreamGroupIdT = Aws::String>
86 void SetStreamGroupId(StreamGroupIdT&& value) {
87 m_streamGroupIdHasBeenSet = true;
88 m_streamGroupId = std::forward<StreamGroupIdT>(value);
89 }
90 template <typename StreamGroupIdT = Aws::String>
91 GetStreamSessionResult& WithStreamGroupId(StreamGroupIdT&& value) {
92 SetStreamGroupId(std::forward<StreamGroupIdT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetUserId() const { return m_userId; }
102 template <typename UserIdT = Aws::String>
103 void SetUserId(UserIdT&& value) {
104 m_userIdHasBeenSet = true;
105 m_userId = std::forward<UserIdT>(value);
106 }
107 template <typename UserIdT = Aws::String>
109 SetUserId(std::forward<UserIdT>(value));
110 return *this;
111 }
113
115
144 inline StreamSessionStatus GetStatus() const { return m_status; }
145 inline void SetStatus(StreamSessionStatus value) {
146 m_statusHasBeenSet = true;
147 m_status = value;
148 }
150 SetStatus(value);
151 return *this;
152 }
154
156
186 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
188 m_statusReasonHasBeenSet = true;
189 m_statusReason = value;
190 }
192 SetStatusReason(value);
193 return *this;
194 }
196
198
201 inline Protocol GetProtocol() const { return m_protocol; }
202 inline void SetProtocol(Protocol value) {
203 m_protocolHasBeenSet = true;
204 m_protocol = value;
205 }
207 SetProtocol(value);
208 return *this;
209 }
211
213
221 inline const Aws::String& GetLocation() const { return m_location; }
222 template <typename LocationT = Aws::String>
223 void SetLocation(LocationT&& value) {
224 m_locationHasBeenSet = true;
225 m_location = std::forward<LocationT>(value);
226 }
227 template <typename LocationT = Aws::String>
229 SetLocation(std::forward<LocationT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
240 template <typename SignalRequestT = Aws::String>
241 void SetSignalRequest(SignalRequestT&& value) {
242 m_signalRequestHasBeenSet = true;
243 m_signalRequest = std::forward<SignalRequestT>(value);
244 }
245 template <typename SignalRequestT = Aws::String>
246 GetStreamSessionResult& WithSignalRequest(SignalRequestT&& value) {
247 SetSignalRequest(std::forward<SignalRequestT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::String& GetSignalResponse() const { return m_signalResponse; }
258 template <typename SignalResponseT = Aws::String>
259 void SetSignalResponse(SignalResponseT&& value) {
260 m_signalResponseHasBeenSet = true;
261 m_signalResponse = std::forward<SignalResponseT>(value);
262 }
263 template <typename SignalResponseT = Aws::String>
264 GetStreamSessionResult& WithSignalResponse(SignalResponseT&& value) {
265 SetSignalResponse(std::forward<SignalResponseT>(value));
266 return *this;
267 }
269
271
279 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
280 inline void SetConnectionTimeoutSeconds(int value) {
281 m_connectionTimeoutSecondsHasBeenSet = true;
282 m_connectionTimeoutSeconds = value;
283 }
286 return *this;
287 }
289
291
296 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
297 inline void SetSessionLengthSeconds(int value) {
298 m_sessionLengthSecondsHasBeenSet = true;
299 m_sessionLengthSeconds = value;
300 }
303 return *this;
304 }
306
308
319 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
320 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
321 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
322 m_additionalLaunchArgsHasBeenSet = true;
323 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
324 }
325 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
326 GetStreamSessionResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
327 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
328 return *this;
329 }
330 template <typename AdditionalLaunchArgsT = Aws::String>
331 GetStreamSessionResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
332 m_additionalLaunchArgsHasBeenSet = true;
333 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
334 return *this;
335 }
337
339
354 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
355 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
356 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
357 m_additionalEnvironmentVariablesHasBeenSet = true;
358 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
359 }
360 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
361 GetStreamSessionResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
362 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
363 return *this;
364 }
365 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
366 GetStreamSessionResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
367 AdditionalEnvironmentVariablesValueT&& value) {
368 m_additionalEnvironmentVariablesHasBeenSet = true;
369 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
370 std::forward<AdditionalEnvironmentVariablesValueT>(value));
371 return *this;
372 }
374
376
379 inline const PerformanceStatsConfiguration& GetPerformanceStatsConfiguration() const { return m_performanceStatsConfiguration; }
380 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
381 void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
382 m_performanceStatsConfigurationHasBeenSet = true;
383 m_performanceStatsConfiguration = std::forward<PerformanceStatsConfigurationT>(value);
384 }
385 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
386 GetStreamSessionResult& WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
387 SetPerformanceStatsConfiguration(std::forward<PerformanceStatsConfigurationT>(value));
388 return *this;
389 }
391
393
399 inline const Aws::String& GetLogFileLocationUri() const { return m_logFileLocationUri; }
400 template <typename LogFileLocationUriT = Aws::String>
401 void SetLogFileLocationUri(LogFileLocationUriT&& value) {
402 m_logFileLocationUriHasBeenSet = true;
403 m_logFileLocationUri = std::forward<LogFileLocationUriT>(value);
404 }
405 template <typename LogFileLocationUriT = Aws::String>
406 GetStreamSessionResult& WithLogFileLocationUri(LogFileLocationUriT&& value) {
407 SetLogFileLocationUri(std::forward<LogFileLocationUriT>(value));
408 return *this;
409 }
411
413
417 inline const Aws::String& GetWebSdkProtocolUrl() const { return m_webSdkProtocolUrl; }
418 template <typename WebSdkProtocolUrlT = Aws::String>
419 void SetWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) {
420 m_webSdkProtocolUrlHasBeenSet = true;
421 m_webSdkProtocolUrl = std::forward<WebSdkProtocolUrlT>(value);
422 }
423 template <typename WebSdkProtocolUrlT = Aws::String>
424 GetStreamSessionResult& WithWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) {
425 SetWebSdkProtocolUrl(std::forward<WebSdkProtocolUrlT>(value));
426 return *this;
427 }
429
431
436 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
437 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
438 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
439 m_lastUpdatedAtHasBeenSet = true;
440 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
441 }
442 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
443 GetStreamSessionResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
444 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
445 return *this;
446 }
448
450
455 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
456 template <typename CreatedAtT = Aws::Utils::DateTime>
457 void SetCreatedAt(CreatedAtT&& value) {
458 m_createdAtHasBeenSet = true;
459 m_createdAt = std::forward<CreatedAtT>(value);
460 }
461 template <typename CreatedAtT = Aws::Utils::DateTime>
463 SetCreatedAt(std::forward<CreatedAtT>(value));
464 return *this;
465 }
467
469
477 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
478 template <typename ApplicationArnT = Aws::String>
479 void SetApplicationArn(ApplicationArnT&& value) {
480 m_applicationArnHasBeenSet = true;
481 m_applicationArn = std::forward<ApplicationArnT>(value);
482 }
483 template <typename ApplicationArnT = Aws::String>
484 GetStreamSessionResult& WithApplicationArn(ApplicationArnT&& value) {
485 SetApplicationArn(std::forward<ApplicationArnT>(value));
486 return *this;
487 }
489
491
494 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
495 template <typename ExportFilesMetadataT = ExportFilesMetadata>
496 void SetExportFilesMetadata(ExportFilesMetadataT&& value) {
497 m_exportFilesMetadataHasBeenSet = true;
498 m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value);
499 }
500 template <typename ExportFilesMetadataT = ExportFilesMetadata>
501 GetStreamSessionResult& WithExportFilesMetadata(ExportFilesMetadataT&& value) {
502 SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value));
503 return *this;
504 }
506
508
509 inline const Aws::String& GetRequestId() const { return m_requestId; }
510 template <typename RequestIdT = Aws::String>
511 void SetRequestId(RequestIdT&& value) {
512 m_requestIdHasBeenSet = true;
513 m_requestId = std::forward<RequestIdT>(value);
514 }
515 template <typename RequestIdT = Aws::String>
517 SetRequestId(std::forward<RequestIdT>(value));
518 return *this;
519 }
521 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
522
523 private:
524 Aws::String m_arn;
525
526 Aws::String m_description;
527
528 Aws::String m_streamGroupId;
529
530 Aws::String m_userId;
531
533
535
536 Protocol m_protocol{Protocol::NOT_SET};
537
538 Aws::String m_location;
539
540 Aws::String m_signalRequest;
541
542 Aws::String m_signalResponse;
543
544 int m_connectionTimeoutSeconds{0};
545
546 int m_sessionLengthSeconds{0};
547
548 Aws::Vector<Aws::String> m_additionalLaunchArgs;
549
550 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
551
552 PerformanceStatsConfiguration m_performanceStatsConfiguration;
553
554 Aws::String m_logFileLocationUri;
555
556 Aws::String m_webSdkProtocolUrl;
557
558 Aws::Utils::DateTime m_lastUpdatedAt{};
559
560 Aws::Utils::DateTime m_createdAt{};
561
562 Aws::String m_applicationArn;
563
564 ExportFilesMetadata m_exportFilesMetadata;
565
566 Aws::String m_requestId;
567 Aws::Http::HttpResponseCode m_HttpResponseCode;
568 bool m_arnHasBeenSet = false;
569 bool m_descriptionHasBeenSet = false;
570 bool m_streamGroupIdHasBeenSet = false;
571 bool m_userIdHasBeenSet = false;
572 bool m_statusHasBeenSet = false;
573 bool m_statusReasonHasBeenSet = false;
574 bool m_protocolHasBeenSet = false;
575 bool m_locationHasBeenSet = false;
576 bool m_signalRequestHasBeenSet = false;
577 bool m_signalResponseHasBeenSet = false;
578 bool m_connectionTimeoutSecondsHasBeenSet = false;
579 bool m_sessionLengthSecondsHasBeenSet = false;
580 bool m_additionalLaunchArgsHasBeenSet = false;
581 bool m_additionalEnvironmentVariablesHasBeenSet = false;
582 bool m_performanceStatsConfigurationHasBeenSet = false;
583 bool m_logFileLocationUriHasBeenSet = false;
584 bool m_webSdkProtocolUrlHasBeenSet = false;
585 bool m_lastUpdatedAtHasBeenSet = false;
586 bool m_createdAtHasBeenSet = false;
587 bool m_applicationArnHasBeenSet = false;
588 bool m_exportFilesMetadataHasBeenSet = false;
589 bool m_requestIdHasBeenSet = false;
590};
591
592} // namespace Model
593} // namespace GameLiftStreams
594} // 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
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)
GetStreamSessionResult & WithSignalResponse(SignalResponseT &&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 & 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