AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetStreamSessionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
12#include <aws/gameliftstreams/model/ExportFilesMetadata.h>
13#include <aws/gameliftstreams/model/PerformanceStatsConfiguration.h>
14#include <aws/gameliftstreams/model/Protocol.h>
15#include <aws/gameliftstreams/model/StreamSessionStatus.h>
16#include <aws/gameliftstreams/model/StreamSessionStatusReason.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace GameLiftStreams {
30namespace Model {
32 public:
33 AWS_GAMELIFTSTREAMS_API GetStreamSessionResult() = default;
36
38
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>
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetDescription() const { return m_description; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 GetStreamSessionResult& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetStreamGroupId() const { return m_streamGroupId; }
84 template <typename StreamGroupIdT = Aws::String>
85 void SetStreamGroupId(StreamGroupIdT&& value) {
86 m_streamGroupIdHasBeenSet = true;
87 m_streamGroupId = std::forward<StreamGroupIdT>(value);
88 }
89 template <typename StreamGroupIdT = Aws::String>
90 GetStreamSessionResult& WithStreamGroupId(StreamGroupIdT&& value) {
91 SetStreamGroupId(std::forward<StreamGroupIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetUserId() const { return m_userId; }
101 template <typename UserIdT = Aws::String>
102 void SetUserId(UserIdT&& value) {
103 m_userIdHasBeenSet = true;
104 m_userId = std::forward<UserIdT>(value);
105 }
106 template <typename UserIdT = Aws::String>
108 SetUserId(std::forward<UserIdT>(value));
109 return *this;
110 }
112
114
143 inline StreamSessionStatus GetStatus() const { return m_status; }
144 inline void SetStatus(StreamSessionStatus value) {
145 m_statusHasBeenSet = true;
146 m_status = value;
147 }
149 SetStatus(value);
150 return *this;
151 }
153
155
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
510 inline const Aws::String& GetRequestId() const { return m_requestId; }
511 template <typename RequestIdT = Aws::String>
512 void SetRequestId(RequestIdT&& value) {
513 m_requestIdHasBeenSet = true;
514 m_requestId = std::forward<RequestIdT>(value);
515 }
516 template <typename RequestIdT = Aws::String>
518 SetRequestId(std::forward<RequestIdT>(value));
519 return *this;
520 }
522 private:
523 Aws::String m_arn;
524
525 Aws::String m_description;
526
527 Aws::String m_streamGroupId;
528
529 Aws::String m_userId;
530
532
534
535 Protocol m_protocol{Protocol::NOT_SET};
536
537 Aws::String m_location;
538
539 Aws::String m_signalRequest;
540
541 Aws::String m_signalResponse;
542
543 int m_connectionTimeoutSeconds{0};
544
545 int m_sessionLengthSeconds{0};
546
547 Aws::Vector<Aws::String> m_additionalLaunchArgs;
548
549 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
550
551 PerformanceStatsConfiguration m_performanceStatsConfiguration;
552
553 Aws::String m_logFileLocationUri;
554
555 Aws::String m_webSdkProtocolUrl;
556
557 Aws::Utils::DateTime m_lastUpdatedAt{};
558
559 Aws::Utils::DateTime m_createdAt{};
560
561 Aws::String m_applicationArn;
562
563 ExportFilesMetadata m_exportFilesMetadata;
564
565 Aws::String m_requestId;
566 bool m_arnHasBeenSet = false;
567 bool m_descriptionHasBeenSet = false;
568 bool m_streamGroupIdHasBeenSet = false;
569 bool m_userIdHasBeenSet = false;
570 bool m_statusHasBeenSet = false;
571 bool m_statusReasonHasBeenSet = false;
572 bool m_protocolHasBeenSet = false;
573 bool m_locationHasBeenSet = false;
574 bool m_signalRequestHasBeenSet = false;
575 bool m_signalResponseHasBeenSet = false;
576 bool m_connectionTimeoutSecondsHasBeenSet = false;
577 bool m_sessionLengthSecondsHasBeenSet = false;
578 bool m_additionalLaunchArgsHasBeenSet = false;
579 bool m_additionalEnvironmentVariablesHasBeenSet = false;
580 bool m_performanceStatsConfigurationHasBeenSet = false;
581 bool m_logFileLocationUriHasBeenSet = false;
582 bool m_webSdkProtocolUrlHasBeenSet = false;
583 bool m_lastUpdatedAtHasBeenSet = false;
584 bool m_createdAtHasBeenSet = false;
585 bool m_applicationArnHasBeenSet = false;
586 bool m_exportFilesMetadataHasBeenSet = false;
587 bool m_requestIdHasBeenSet = false;
588};
589
590} // namespace Model
591} // namespace GameLiftStreams
592} // 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