AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartStreamSessionResult.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/gameliftstreams/model/ExportFilesMetadata.h>
13#include <aws/gameliftstreams/model/Protocol.h>
14#include <aws/gameliftstreams/model/StreamSessionStatus.h>
15#include <aws/gameliftstreams/model/StreamSessionStatusReason.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
58 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
59 template<typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
60 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) { m_additionalEnvironmentVariablesHasBeenSet = true; m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value); }
61 template<typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
62 StartStreamSessionResult& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) { SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value)); return *this;}
63 template<typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
64 StartStreamSessionResult& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key, AdditionalEnvironmentVariablesValueT&& value) {
65 m_additionalEnvironmentVariablesHasBeenSet = true; m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key), std::forward<AdditionalEnvironmentVariablesValueT>(value)); return *this;
66 }
68
70
81 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
82 template<typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
83 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { m_additionalLaunchArgsHasBeenSet = true; m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value); }
84 template<typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
85 StartStreamSessionResult& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value)); return *this;}
86 template<typename AdditionalLaunchArgsT = Aws::String>
87 StartStreamSessionResult& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { m_additionalLaunchArgsHasBeenSet = true; m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value)); return *this; }
89
91
99 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
100 template<typename ApplicationArnT = Aws::String>
101 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
102 template<typename ApplicationArnT = Aws::String>
103 StartStreamSessionResult& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
105
107
116 inline const Aws::String& GetArn() const { return m_arn; }
117 template<typename ArnT = Aws::String>
118 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
119 template<typename ArnT = Aws::String>
120 StartStreamSessionResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
122
124
129 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
130 inline void SetConnectionTimeoutSeconds(int value) { m_connectionTimeoutSecondsHasBeenSet = true; m_connectionTimeoutSeconds = value; }
133
135
140 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
141 template<typename CreatedAtT = Aws::Utils::DateTime>
142 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
143 template<typename CreatedAtT = Aws::Utils::DateTime>
144 StartStreamSessionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
146
148
152 inline const Aws::String& GetDescription() const { return m_description; }
153 template<typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
155 template<typename DescriptionT = Aws::String>
156 StartStreamSessionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
158
160
163 inline const ExportFilesMetadata& GetExportFilesMetadata() const { return m_exportFilesMetadata; }
164 template<typename ExportFilesMetadataT = ExportFilesMetadata>
165 void SetExportFilesMetadata(ExportFilesMetadataT&& value) { m_exportFilesMetadataHasBeenSet = true; m_exportFilesMetadata = std::forward<ExportFilesMetadataT>(value); }
166 template<typename ExportFilesMetadataT = ExportFilesMetadata>
167 StartStreamSessionResult& WithExportFilesMetadata(ExportFilesMetadataT&& value) { SetExportFilesMetadata(std::forward<ExportFilesMetadataT>(value)); return *this;}
169
171
176 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
177 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
178 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
179 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
180 StartStreamSessionResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
182
184
192 inline const Aws::String& GetLocation() const { return m_location; }
193 template<typename LocationT = Aws::String>
194 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
195 template<typename LocationT = Aws::String>
196 StartStreamSessionResult& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
198
200
206 inline const Aws::String& GetLogFileLocationUri() const { return m_logFileLocationUri; }
207 template<typename LogFileLocationUriT = Aws::String>
208 void SetLogFileLocationUri(LogFileLocationUriT&& value) { m_logFileLocationUriHasBeenSet = true; m_logFileLocationUri = std::forward<LogFileLocationUriT>(value); }
209 template<typename LogFileLocationUriT = Aws::String>
210 StartStreamSessionResult& WithLogFileLocationUri(LogFileLocationUriT&& value) { SetLogFileLocationUri(std::forward<LogFileLocationUriT>(value)); return *this;}
212
214
217 inline Protocol GetProtocol() const { return m_protocol; }
218 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
219 inline StartStreamSessionResult& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
221
223
227 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
228 inline void SetSessionLengthSeconds(int value) { m_sessionLengthSecondsHasBeenSet = true; m_sessionLengthSeconds = value; }
231
233
237 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
238 template<typename SignalRequestT = Aws::String>
239 void SetSignalRequest(SignalRequestT&& value) { m_signalRequestHasBeenSet = true; m_signalRequest = std::forward<SignalRequestT>(value); }
240 template<typename SignalRequestT = Aws::String>
241 StartStreamSessionResult& WithSignalRequest(SignalRequestT&& value) { SetSignalRequest(std::forward<SignalRequestT>(value)); return *this;}
243
245
249 inline const Aws::String& GetSignalResponse() const { return m_signalResponse; }
250 template<typename SignalResponseT = Aws::String>
251 void SetSignalResponse(SignalResponseT&& value) { m_signalResponseHasBeenSet = true; m_signalResponse = std::forward<SignalResponseT>(value); }
252 template<typename SignalResponseT = Aws::String>
253 StartStreamSessionResult& WithSignalResponse(SignalResponseT&& value) { SetSignalResponse(std::forward<SignalResponseT>(value)); return *this;}
255
257
261 inline StreamSessionStatus GetStatus() const { return m_status; }
262 inline void SetStatus(StreamSessionStatus value) { m_statusHasBeenSet = true; m_status = value; }
263 inline StartStreamSessionResult& WithStatus(StreamSessionStatus value) { SetStatus(value); return *this;}
265
267
271 inline StreamSessionStatusReason GetStatusReason() const { return m_statusReason; }
272 inline void SetStatusReason(StreamSessionStatusReason value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
275
277
281 inline const Aws::String& GetStreamGroupId() const { return m_streamGroupId; }
282 template<typename StreamGroupIdT = Aws::String>
283 void SetStreamGroupId(StreamGroupIdT&& value) { m_streamGroupIdHasBeenSet = true; m_streamGroupId = std::forward<StreamGroupIdT>(value); }
284 template<typename StreamGroupIdT = Aws::String>
285 StartStreamSessionResult& WithStreamGroupId(StreamGroupIdT&& value) { SetStreamGroupId(std::forward<StreamGroupIdT>(value)); return *this;}
287
289
292 inline const Aws::String& GetUserId() const { return m_userId; }
293 template<typename UserIdT = Aws::String>
294 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
295 template<typename UserIdT = Aws::String>
296 StartStreamSessionResult& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
298
300
304 inline const Aws::String& GetWebSdkProtocolUrl() const { return m_webSdkProtocolUrl; }
305 template<typename WebSdkProtocolUrlT = Aws::String>
306 void SetWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) { m_webSdkProtocolUrlHasBeenSet = true; m_webSdkProtocolUrl = std::forward<WebSdkProtocolUrlT>(value); }
307 template<typename WebSdkProtocolUrlT = Aws::String>
308 StartStreamSessionResult& WithWebSdkProtocolUrl(WebSdkProtocolUrlT&& value) { SetWebSdkProtocolUrl(std::forward<WebSdkProtocolUrlT>(value)); return *this;}
310
312
313 inline const Aws::String& GetRequestId() const { return m_requestId; }
314 template<typename RequestIdT = Aws::String>
315 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
316 template<typename RequestIdT = Aws::String>
317 StartStreamSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
319 private:
320
321 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
322 bool m_additionalEnvironmentVariablesHasBeenSet = false;
323
324 Aws::Vector<Aws::String> m_additionalLaunchArgs;
325 bool m_additionalLaunchArgsHasBeenSet = false;
326
327 Aws::String m_applicationArn;
328 bool m_applicationArnHasBeenSet = false;
329
330 Aws::String m_arn;
331 bool m_arnHasBeenSet = false;
332
333 int m_connectionTimeoutSeconds{0};
334 bool m_connectionTimeoutSecondsHasBeenSet = false;
335
336 Aws::Utils::DateTime m_createdAt{};
337 bool m_createdAtHasBeenSet = false;
338
339 Aws::String m_description;
340 bool m_descriptionHasBeenSet = false;
341
342 ExportFilesMetadata m_exportFilesMetadata;
343 bool m_exportFilesMetadataHasBeenSet = false;
344
345 Aws::Utils::DateTime m_lastUpdatedAt{};
346 bool m_lastUpdatedAtHasBeenSet = false;
347
348 Aws::String m_location;
349 bool m_locationHasBeenSet = false;
350
351 Aws::String m_logFileLocationUri;
352 bool m_logFileLocationUriHasBeenSet = false;
353
354 Protocol m_protocol{Protocol::NOT_SET};
355 bool m_protocolHasBeenSet = false;
356
357 int m_sessionLengthSeconds{0};
358 bool m_sessionLengthSecondsHasBeenSet = false;
359
360 Aws::String m_signalRequest;
361 bool m_signalRequestHasBeenSet = false;
362
363 Aws::String m_signalResponse;
364 bool m_signalResponseHasBeenSet = false;
365
367 bool m_statusHasBeenSet = false;
368
370 bool m_statusReasonHasBeenSet = false;
371
372 Aws::String m_streamGroupId;
373 bool m_streamGroupIdHasBeenSet = false;
374
375 Aws::String m_userId;
376 bool m_userIdHasBeenSet = false;
377
378 Aws::String m_webSdkProtocolUrl;
379 bool m_webSdkProtocolUrlHasBeenSet = false;
380
381 Aws::String m_requestId;
382 bool m_requestIdHasBeenSet = false;
383 };
384
385} // namespace Model
386} // namespace GameLiftStreams
387} // 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