AWS SDK for C++

AWS SDK for C++ Version 1.11.849

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
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>
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>
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 StartStreamSessionResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
327 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
328 return *this;
329 }
330 template <typename AdditionalLaunchArgsT = Aws::String>
331 StartStreamSessionResult& 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 StartStreamSessionResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
362 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
363 return *this;
364 }
365 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
366 StartStreamSessionResult& 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 StartStreamSessionResult& 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 StartStreamSessionResult& 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 StartStreamSessionResult& 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>
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>
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 StartStreamSessionResult& WithExportFilesMetadata(ExportFilesMetadataT&& value) {
502 SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value));
503 return *this;
504 }
506
508
513 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
514 template <typename RoleArnT = Aws::String>
515 void SetRoleArn(RoleArnT&& value) {
516 m_roleArnHasBeenSet = true;
517 m_roleArn = std::forward<RoleArnT>(value);
518 }
519 template <typename RoleArnT = Aws::String>
521 SetRoleArn(std::forward<RoleArnT>(value));
522 return *this;
523 }
525
527
528 inline const Aws::String& GetRequestId() const { return m_requestId; }
529 template <typename RequestIdT = Aws::String>
530 void SetRequestId(RequestIdT&& value) {
531 m_requestIdHasBeenSet = true;
532 m_requestId = std::forward<RequestIdT>(value);
533 }
534 template <typename RequestIdT = Aws::String>
536 SetRequestId(std::forward<RequestIdT>(value));
537 return *this;
538 }
540 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
541
542 private:
543 Aws::String m_arn;
544
545 Aws::String m_description;
546
547 Aws::String m_streamGroupId;
548
549 Aws::String m_userId;
550
552
554
555 Protocol m_protocol{Protocol::NOT_SET};
556
557 Aws::String m_location;
558
559 Aws::String m_signalRequest;
560
561 Aws::String m_signalResponse;
562
563 int m_connectionTimeoutSeconds{0};
564
565 int m_sessionLengthSeconds{0};
566
567 Aws::Vector<Aws::String> m_additionalLaunchArgs;
568
569 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
570
571 PerformanceStatsConfiguration m_performanceStatsConfiguration;
572
573 Aws::String m_logFileLocationUri;
574
575 Aws::String m_webSdkProtocolUrl;
576
577 Aws::Utils::DateTime m_lastUpdatedAt{};
578
579 Aws::Utils::DateTime m_createdAt{};
580
581 Aws::String m_applicationArn;
582
583 ExportFilesMetadata m_exportFilesMetadata;
584
585 Aws::String m_roleArn;
586
587 Aws::String m_requestId;
588 Aws::Http::HttpResponseCode m_HttpResponseCode;
589 bool m_arnHasBeenSet = false;
590 bool m_descriptionHasBeenSet = false;
591 bool m_streamGroupIdHasBeenSet = false;
592 bool m_userIdHasBeenSet = false;
593 bool m_statusHasBeenSet = false;
594 bool m_statusReasonHasBeenSet = false;
595 bool m_protocolHasBeenSet = false;
596 bool m_locationHasBeenSet = false;
597 bool m_signalRequestHasBeenSet = false;
598 bool m_signalResponseHasBeenSet = false;
599 bool m_connectionTimeoutSecondsHasBeenSet = false;
600 bool m_sessionLengthSecondsHasBeenSet = false;
601 bool m_additionalLaunchArgsHasBeenSet = false;
602 bool m_additionalEnvironmentVariablesHasBeenSet = false;
603 bool m_performanceStatsConfigurationHasBeenSet = false;
604 bool m_logFileLocationUriHasBeenSet = false;
605 bool m_webSdkProtocolUrlHasBeenSet = false;
606 bool m_lastUpdatedAtHasBeenSet = false;
607 bool m_createdAtHasBeenSet = false;
608 bool m_applicationArnHasBeenSet = false;
609 bool m_exportFilesMetadataHasBeenSet = false;
610 bool m_roleArnHasBeenSet = false;
611 bool m_requestIdHasBeenSet = false;
612};
613
614} // namespace Model
615} // namespace GameLiftStreams
616} // 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)
StartStreamSessionResult & WithRoleArn(RoleArnT &&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