AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
StartStreamSessionResult.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 StartStreamSessionResult() = 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>
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>
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
188 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
190 m_statusReasonHasBeenSet = true;
191 m_statusReason = value;
192 }
194 SetStatusReason(value);
195 return *this;
196 }
198
200
203 inline Protocol GetProtocol() const { return m_protocol; }
204 inline void SetProtocol(Protocol value) {
205 m_protocolHasBeenSet = true;
206 m_protocol = value;
207 }
209 SetProtocol(value);
210 return *this;
211 }
213
215
223 inline const Aws::String& GetLocation() const { return m_location; }
224 template <typename LocationT = Aws::String>
225 void SetLocation(LocationT&& value) {
226 m_locationHasBeenSet = true;
227 m_location = std::forward<LocationT>(value);
228 }
229 template <typename LocationT = Aws::String>
231 SetLocation(std::forward<LocationT>(value));
232 return *this;
233 }
235
237
241 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
242 template <typename SignalRequestT = Aws::String>
243 void SetSignalRequest(SignalRequestT&& value) {
244 m_signalRequestHasBeenSet = true;
245 m_signalRequest = std::forward<SignalRequestT>(value);
246 }
247 template <typename SignalRequestT = Aws::String>
249 SetSignalRequest(std::forward<SignalRequestT>(value));
250 return *this;
251 }
253
255
259 inline const Aws::String& GetSignalResponse() const { return m_signalResponse; }
260 template <typename SignalResponseT = Aws::String>
261 void SetSignalResponse(SignalResponseT&& value) {
262 m_signalResponseHasBeenSet = true;
263 m_signalResponse = std::forward<SignalResponseT>(value);
264 }
265 template <typename SignalResponseT = Aws::String>
267 SetSignalResponse(std::forward<SignalResponseT>(value));
268 return *this;
269 }
271
273
281 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
282 inline void SetConnectionTimeoutSeconds(int value) {
283 m_connectionTimeoutSecondsHasBeenSet = true;
284 m_connectionTimeoutSeconds = value;
285 }
288 return *this;
289 }
291
293
298 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
299 inline void SetSessionLengthSeconds(int value) {
300 m_sessionLengthSecondsHasBeenSet = true;
301 m_sessionLengthSeconds = value;
302 }
305 return *this;
306 }
308
310
321 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
322 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
323 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
324 m_additionalLaunchArgsHasBeenSet = true;
325 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
326 }
327 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
328 StartStreamSessionResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
329 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
330 return *this;
331 }
332 template <typename AdditionalLaunchArgsT = Aws::String>
333 StartStreamSessionResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
334 m_additionalLaunchArgsHasBeenSet = true;
335 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
336 return *this;
337 }
339
341
356 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
357 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
358 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
359 m_additionalEnvironmentVariablesHasBeenSet = true;
360 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
361 }
362 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
363 StartStreamSessionResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
364 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
365 return *this;
366 }
367 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
368 StartStreamSessionResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
369 AdditionalEnvironmentVariablesValueT&& value) {
370 m_additionalEnvironmentVariablesHasBeenSet = true;
371 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
372 std::forward<AdditionalEnvironmentVariablesValueT>(value));
373 return *this;
374 }
376
378
381 inline const PerformanceStatsConfiguration& GetPerformanceStatsConfiguration() const { return m_performanceStatsConfiguration; }
382 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
383 void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
384 m_performanceStatsConfigurationHasBeenSet = true;
385 m_performanceStatsConfiguration = std::forward<PerformanceStatsConfigurationT>(value);
386 }
387 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
388 StartStreamSessionResult& WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
389 SetPerformanceStatsConfiguration(std::forward<PerformanceStatsConfigurationT>(value));
390 return *this;
391 }
393
395
401 inline const Aws::String& GetLogFileLocationUri() const { return m_logFileLocationUri; }
402 template <typename LogFileLocationUriT = Aws::String>
403 void SetLogFileLocationUri(LogFileLocationUriT&& value) {
404 m_logFileLocationUriHasBeenSet = true;
405 m_logFileLocationUri = std::forward<LogFileLocationUriT>(value);
406 }
407 template <typename LogFileLocationUriT = Aws::String>
408 StartStreamSessionResult& WithLogFileLocationUri(LogFileLocationUriT&& value) {
409 SetLogFileLocationUri(std::forward<LogFileLocationUriT>(value));
410 return *this;
411 }
413
415
419 inline const Aws::String& GetWebSdkProtocolUrl() const { return m_webSdkProtocolUrl; }
420 template <typename WebSdkProtocolUrlT = Aws::String>
421 void SetWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) {
422 m_webSdkProtocolUrlHasBeenSet = true;
423 m_webSdkProtocolUrl = std::forward<WebSdkProtocolUrlT>(value);
424 }
425 template <typename WebSdkProtocolUrlT = Aws::String>
426 StartStreamSessionResult& WithWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) {
427 SetWebSdkProtocolUrl(std::forward<WebSdkProtocolUrlT>(value));
428 return *this;
429 }
431
433
438 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
439 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
440 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
441 m_lastUpdatedAtHasBeenSet = true;
442 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
443 }
444 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
446 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
447 return *this;
448 }
450
452
457 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
458 template <typename CreatedAtT = Aws::Utils::DateTime>
459 void SetCreatedAt(CreatedAtT&& value) {
460 m_createdAtHasBeenSet = true;
461 m_createdAt = std::forward<CreatedAtT>(value);
462 }
463 template <typename CreatedAtT = Aws::Utils::DateTime>
465 SetCreatedAt(std::forward<CreatedAtT>(value));
466 return *this;
467 }
469
471
479 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
480 template <typename ApplicationArnT = Aws::String>
481 void SetApplicationArn(ApplicationArnT&& value) {
482 m_applicationArnHasBeenSet = true;
483 m_applicationArn = std::forward<ApplicationArnT>(value);
484 }
485 template <typename ApplicationArnT = Aws::String>
487 SetApplicationArn(std::forward<ApplicationArnT>(value));
488 return *this;
489 }
491
493
496 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
497 template <typename ExportFilesMetadataT = ExportFilesMetadata>
498 void SetExportFilesMetadata(ExportFilesMetadataT&& value) {
499 m_exportFilesMetadataHasBeenSet = true;
500 m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value);
501 }
502 template <typename ExportFilesMetadataT = ExportFilesMetadata>
503 StartStreamSessionResult& WithExportFilesMetadata(ExportFilesMetadataT&& value) {
504 SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value));
505 return *this;
506 }
508
510
511 inline const Aws::String& GetRequestId() const { return m_requestId; }
512 template <typename RequestIdT = Aws::String>
513 void SetRequestId(RequestIdT&& value) {
514 m_requestIdHasBeenSet = true;
515 m_requestId = std::forward<RequestIdT>(value);
516 }
517 template <typename RequestIdT = Aws::String>
519 SetRequestId(std::forward<RequestIdT>(value));
520 return *this;
521 }
523 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
524
525 private:
526 Aws::String m_arn;
527
528 Aws::String m_description;
529
530 Aws::String m_streamGroupId;
531
532 Aws::String m_userId;
533
535
537
538 Protocol m_protocol{Protocol::NOT_SET};
539
540 Aws::String m_location;
541
542 Aws::String m_signalRequest;
543
544 Aws::String m_signalResponse;
545
546 int m_connectionTimeoutSeconds{0};
547
548 int m_sessionLengthSeconds{0};
549
550 Aws::Vector<Aws::String> m_additionalLaunchArgs;
551
552 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
553
554 PerformanceStatsConfiguration m_performanceStatsConfiguration;
555
556 Aws::String m_logFileLocationUri;
557
558 Aws::String m_webSdkProtocolUrl;
559
560 Aws::Utils::DateTime m_lastUpdatedAt{};
561
562 Aws::Utils::DateTime m_createdAt{};
563
564 Aws::String m_applicationArn;
565
566 ExportFilesMetadata m_exportFilesMetadata;
567
568 Aws::String m_requestId;
569 Aws::Http::HttpResponseCode m_HttpResponseCode;
570 bool m_arnHasBeenSet = false;
571 bool m_descriptionHasBeenSet = false;
572 bool m_streamGroupIdHasBeenSet = false;
573 bool m_userIdHasBeenSet = false;
574 bool m_statusHasBeenSet = false;
575 bool m_statusReasonHasBeenSet = false;
576 bool m_protocolHasBeenSet = false;
577 bool m_locationHasBeenSet = false;
578 bool m_signalRequestHasBeenSet = false;
579 bool m_signalResponseHasBeenSet = false;
580 bool m_connectionTimeoutSecondsHasBeenSet = false;
581 bool m_sessionLengthSecondsHasBeenSet = false;
582 bool m_additionalLaunchArgsHasBeenSet = false;
583 bool m_additionalEnvironmentVariablesHasBeenSet = false;
584 bool m_performanceStatsConfigurationHasBeenSet = false;
585 bool m_logFileLocationUriHasBeenSet = false;
586 bool m_webSdkProtocolUrlHasBeenSet = false;
587 bool m_lastUpdatedAtHasBeenSet = false;
588 bool m_createdAtHasBeenSet = false;
589 bool m_applicationArnHasBeenSet = false;
590 bool m_exportFilesMetadataHasBeenSet = false;
591 bool m_requestIdHasBeenSet = false;
592};
593
594} // namespace Model
595} // namespace GameLiftStreams
596} // namespace Aws
AWS_GAMELIFTSTREAMS_API StartStreamSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartStreamSessionResult & WithStatus(StreamSessionStatus value)
StartStreamSessionResult & WithCreatedAt(CreatedAtT &&value)
StartStreamSessionResult & WithUserId(UserIdT &&value)
StartStreamSessionResult & WithWebSdkProtocolUrl(WebSdkProtocolUrlT &&value)
AWS_GAMELIFTSTREAMS_API StartStreamSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartStreamSessionResult & WithSignalResponse(SignalResponseT &&value)
void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
StartStreamSessionResult & WithLogFileLocationUri(LogFileLocationUriT &&value)
void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT &&value)
StartStreamSessionResult & WithRequestId(RequestIdT &&value)
StartStreamSessionResult & WithExportFilesMetadata(ExportFilesMetadataT &&value)
StartStreamSessionResult & WithConnectionTimeoutSeconds(int value)
StartStreamSessionResult & WithStreamGroupId(StreamGroupIdT &&value)
StartStreamSessionResult & WithSignalRequest(SignalRequestT &&value)
StartStreamSessionResult & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
StartStreamSessionResult & WithSessionLengthSeconds(int value)
StartStreamSessionResult & WithApplicationArn(ApplicationArnT &&value)
StartStreamSessionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
StartStreamSessionResult & WithStatusReason(StreamSessionStatusReason value)
StartStreamSessionResult & WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
AWS_GAMELIFTSTREAMS_API StartStreamSessionResult()=default
StartStreamSessionResult & AddAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
StartStreamSessionResult & WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT &&value)
const PerformanceStatsConfiguration & GetPerformanceStatsConfiguration() const
StartStreamSessionResult & WithAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
StartStreamSessionResult & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetAdditionalLaunchArgs() const
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEnvironmentVariables() const
StartStreamSessionResult & WithLocation(LocationT &&value)
StartStreamSessionResult & 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