AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
StartStreamSessionResult.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gameliftstreams/model/StreamSessionStatus.h>
10#include <aws/gameliftstreams/model/StreamSessionStatusReason.h>
11#include <aws/gameliftstreams/model/Protocol.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/gameliftstreams/model/ExportFilesMetadata.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace GameLiftStreams
31{
32namespace Model
33{
35 {
36 public:
37 AWS_GAMELIFTSTREAMS_API StartStreamSessionResult() = default;
40
41
43
52 inline const Aws::String& GetArn() const { return m_arn; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 StartStreamSessionResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
64 inline const Aws::String& GetDescription() const { return m_description; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 StartStreamSessionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
76 inline const Aws::String& GetStreamGroupId() const { return m_streamGroupId; }
77 template<typename StreamGroupIdT = Aws::String>
78 void SetStreamGroupId(StreamGroupIdT&& value) { m_streamGroupIdHasBeenSet = true; m_streamGroupId = std::forward<StreamGroupIdT>(value); }
79 template<typename StreamGroupIdT = Aws::String>
80 StartStreamSessionResult& WithStreamGroupId(StreamGroupIdT&& value) { SetStreamGroupId(std::forward<StreamGroupIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetUserId() const { return m_userId; }
88 template<typename UserIdT = Aws::String>
89 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
90 template<typename UserIdT = Aws::String>
91 StartStreamSessionResult& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
93
95
122 inline StreamSessionStatus GetStatus() const { return m_status; }
123 inline void SetStatus(StreamSessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
124 inline StartStreamSessionResult& WithStatus(StreamSessionStatus value) { SetStatus(value); return *this;}
126
128
132 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
133 inline void SetStatusReason(StreamSessionStatusReason value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
136
138
141 inline Protocol GetProtocol() const { return m_protocol; }
142 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
143 inline StartStreamSessionResult& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
145
147
155 inline const Aws::String& GetLocation() const { return m_location; }
156 template<typename LocationT = Aws::String>
157 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
158 template<typename LocationT = Aws::String>
159 StartStreamSessionResult& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
161
163
167 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
168 template<typename SignalRequestT = Aws::String>
169 void SetSignalRequest(SignalRequestT&& value) { m_signalRequestHasBeenSet = true; m_signalRequest = std::forward<SignalRequestT>(value); }
170 template<typename SignalRequestT = Aws::String>
171 StartStreamSessionResult& WithSignalRequest(SignalRequestT&& value) { SetSignalRequest(std::forward<SignalRequestT>(value)); return *this;}
173
175
179 inline const Aws::String& GetSignalResponse() const { return m_signalResponse; }
180 template<typename SignalResponseT = Aws::String>
181 void SetSignalResponse(SignalResponseT&& value) { m_signalResponseHasBeenSet = true; m_signalResponse = std::forward<SignalResponseT>(value); }
182 template<typename SignalResponseT = Aws::String>
183 StartStreamSessionResult& WithSignalResponse(SignalResponseT&& value) { SetSignalResponse(std::forward<SignalResponseT>(value)); return *this;}
185
187
195 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
196 inline void SetConnectionTimeoutSeconds(int value) { m_connectionTimeoutSecondsHasBeenSet = true; m_connectionTimeoutSeconds = value; }
199
201
206 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
207 inline void SetSessionLengthSeconds(int value) { m_sessionLengthSecondsHasBeenSet = true; m_sessionLengthSeconds = value; }
210
212
223 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
224 template<typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
225 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { m_additionalLaunchArgsHasBeenSet = true; m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value); }
226 template<typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
227 StartStreamSessionResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value)); return *this;}
228 template<typename AdditionalLaunchArgsT = Aws::String>
229 StartStreamSessionResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { m_additionalLaunchArgsHasBeenSet = true; m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value)); return *this; }
231
233
248 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
249 template<typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
250 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) { m_additionalEnvironmentVariablesHasBeenSet = true; m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value); }
251 template<typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
252 StartStreamSessionResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) { SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value)); return *this;}
253 template<typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
254 StartStreamSessionResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key, AdditionalEnvironmentVariablesValueT&& value) {
255 m_additionalEnvironmentVariablesHasBeenSet = true; m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key), std::forward<AdditionalEnvironmentVariablesValueT>(value)); return *this;
256 }
258
260
266 inline const Aws::String& GetLogFileLocationUri() const { return m_logFileLocationUri; }
267 template<typename LogFileLocationUriT = Aws::String>
268 void SetLogFileLocationUri(LogFileLocationUriT&& value) { m_logFileLocationUriHasBeenSet = true; m_logFileLocationUri = std::forward<LogFileLocationUriT>(value); }
269 template<typename LogFileLocationUriT = Aws::String>
270 StartStreamSessionResult& WithLogFileLocationUri(LogFileLocationUriT&& value) { SetLogFileLocationUri(std::forward<LogFileLocationUriT>(value)); return *this;}
272
274
278 inline const Aws::String& GetWebSdkProtocolUrl() const { return m_webSdkProtocolUrl; }
279 template<typename WebSdkProtocolUrlT = Aws::String>
280 void SetWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) { m_webSdkProtocolUrlHasBeenSet = true; m_webSdkProtocolUrl = std::forward<WebSdkProtocolUrlT>(value); }
281 template<typename WebSdkProtocolUrlT = Aws::String>
282 StartStreamSessionResult& WithWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) { SetWebSdkProtocolUrl(std::forward<WebSdkProtocolUrlT>(value)); return *this;}
284
286
291 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
292 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
293 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
294 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
295 StartStreamSessionResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
297
299
304 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
305 template<typename CreatedAtT = Aws::Utils::DateTime>
306 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
307 template<typename CreatedAtT = Aws::Utils::DateTime>
308 StartStreamSessionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
310
312
320 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
321 template<typename ApplicationArnT = Aws::String>
322 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
323 template<typename ApplicationArnT = Aws::String>
324 StartStreamSessionResult& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
326
328
331 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
332 template<typename ExportFilesMetadataT = ExportFilesMetadata>
333 void SetExportFilesMetadata(ExportFilesMetadataT&& value) { m_exportFilesMetadataHasBeenSet = true; m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value); }
334 template<typename ExportFilesMetadataT = ExportFilesMetadata>
335 StartStreamSessionResult& WithExportFilesMetadata(ExportFilesMetadataT&& value) { SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value)); return *this;}
337
339
340 inline const Aws::String& GetRequestId() const { return m_requestId; }
341 template<typename RequestIdT = Aws::String>
342 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
343 template<typename RequestIdT = Aws::String>
344 StartStreamSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
346 private:
347
348 Aws::String m_arn;
349 bool m_arnHasBeenSet = false;
350
351 Aws::String m_description;
352 bool m_descriptionHasBeenSet = false;
353
354 Aws::String m_streamGroupId;
355 bool m_streamGroupIdHasBeenSet = false;
356
357 Aws::String m_userId;
358 bool m_userIdHasBeenSet = false;
359
361 bool m_statusHasBeenSet = false;
362
364 bool m_statusReasonHasBeenSet = false;
365
366 Protocol m_protocol{Protocol::NOT_SET};
367 bool m_protocolHasBeenSet = false;
368
369 Aws::String m_location;
370 bool m_locationHasBeenSet = false;
371
372 Aws::String m_signalRequest;
373 bool m_signalRequestHasBeenSet = false;
374
375 Aws::String m_signalResponse;
376 bool m_signalResponseHasBeenSet = false;
377
378 int m_connectionTimeoutSeconds{0};
379 bool m_connectionTimeoutSecondsHasBeenSet = false;
380
381 int m_sessionLengthSeconds{0};
382 bool m_sessionLengthSecondsHasBeenSet = false;
383
384 Aws::Vector<Aws::String> m_additionalLaunchArgs;
385 bool m_additionalLaunchArgsHasBeenSet = false;
386
387 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
388 bool m_additionalEnvironmentVariablesHasBeenSet = false;
389
390 Aws::String m_logFileLocationUri;
391 bool m_logFileLocationUriHasBeenSet = false;
392
393 Aws::String m_webSdkProtocolUrl;
394 bool m_webSdkProtocolUrlHasBeenSet = false;
395
396 Aws::Utils::DateTime m_lastUpdatedAt{};
397 bool m_lastUpdatedAtHasBeenSet = false;
398
399 Aws::Utils::DateTime m_createdAt{};
400 bool m_createdAtHasBeenSet = false;
401
402 Aws::String m_applicationArn;
403 bool m_applicationArnHasBeenSet = false;
404
405 ExportFilesMetadata m_exportFilesMetadata;
406 bool m_exportFilesMetadataHasBeenSet = false;
407
408 Aws::String m_requestId;
409 bool m_requestIdHasBeenSet = false;
410 };
411
412} // namespace Model
413} // namespace GameLiftStreams
414} // 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)
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 & 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