AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
StartStreamSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.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/GameLiftStreamsRequest.h>
12#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
13#include <aws/gameliftstreams/model/DisplayConfiguration.h>
14#include <aws/gameliftstreams/model/PerformanceStatsConfiguration.h>
15#include <aws/gameliftstreams/model/Protocol.h>
16
17#include <utility>
18
19namespace Aws {
20namespace GameLiftStreams {
21namespace Model {
22
26 public:
27 AWS_GAMELIFTSTREAMS_API StartStreamSessionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartStreamSession"; }
34
35 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template <typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) {
66 m_descriptionHasBeenSet = true;
67 m_description = std::forward<DescriptionT>(value);
68 }
69 template <typename DescriptionT = Aws::String>
71 SetDescription(std::forward<DescriptionT>(value));
72 return *this;
73 }
75
77
85 inline const Aws::String& GetIdentifier() const { return m_identifier; }
86 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
87 template <typename IdentifierT = Aws::String>
88 void SetIdentifier(IdentifierT&& value) {
89 m_identifierHasBeenSet = true;
90 m_identifier = std::forward<IdentifierT>(value);
91 }
92 template <typename IdentifierT = Aws::String>
94 SetIdentifier(std::forward<IdentifierT>(value));
95 return *this;
96 }
98
100
103 inline Protocol GetProtocol() const { return m_protocol; }
104 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
105 inline void SetProtocol(Protocol value) {
106 m_protocolHasBeenSet = true;
107 m_protocol = value;
108 }
110 SetProtocol(value);
111 return *this;
112 }
114
116
125 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
126 inline bool SignalRequestHasBeenSet() const { return m_signalRequestHasBeenSet; }
127 template <typename SignalRequestT = Aws::String>
128 void SetSignalRequest(SignalRequestT&& value) {
129 m_signalRequestHasBeenSet = true;
130 m_signalRequest = std::forward<SignalRequestT>(value);
131 }
132 template <typename SignalRequestT = Aws::String>
134 SetSignalRequest(std::forward<SignalRequestT>(value));
135 return *this;
136 }
138
140
148 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
149 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
150 template <typename ApplicationIdentifierT = Aws::String>
151 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
152 m_applicationIdentifierHasBeenSet = true;
153 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
154 }
155 template <typename ApplicationIdentifierT = Aws::String>
156 StartStreamSessionRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) {
157 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetUserId() const { return m_userId; }
167 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
168 template <typename UserIdT = Aws::String>
169 void SetUserId(UserIdT&& value) {
170 m_userIdHasBeenSet = true;
171 m_userId = std::forward<UserIdT>(value);
172 }
173 template <typename UserIdT = Aws::String>
175 SetUserId(std::forward<UserIdT>(value));
176 return *this;
177 }
179
181
192 inline const Aws::Vector<Aws::String>& GetLocations() const { return m_locations; }
193 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
194 template <typename LocationsT = Aws::Vector<Aws::String>>
195 void SetLocations(LocationsT&& value) {
196 m_locationsHasBeenSet = true;
197 m_locations = std::forward<LocationsT>(value);
198 }
199 template <typename LocationsT = Aws::Vector<Aws::String>>
201 SetLocations(std::forward<LocationsT>(value));
202 return *this;
203 }
204 template <typename LocationsT = Aws::String>
206 m_locationsHasBeenSet = true;
207 m_locations.emplace_back(std::forward<LocationsT>(value));
208 return *this;
209 }
211
213
220 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
221 inline bool ConnectionTimeoutSecondsHasBeenSet() const { return m_connectionTimeoutSecondsHasBeenSet; }
222 inline void SetConnectionTimeoutSeconds(int value) {
223 m_connectionTimeoutSecondsHasBeenSet = true;
224 m_connectionTimeoutSeconds = value;
225 }
228 return *this;
229 }
231
233
238 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
239 inline bool SessionLengthSecondsHasBeenSet() const { return m_sessionLengthSecondsHasBeenSet; }
240 inline void SetSessionLengthSeconds(int value) {
241 m_sessionLengthSecondsHasBeenSet = true;
242 m_sessionLengthSeconds = value;
243 }
246 return *this;
247 }
249
251
262 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
263 inline bool AdditionalLaunchArgsHasBeenSet() const { return m_additionalLaunchArgsHasBeenSet; }
264 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
265 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
266 m_additionalLaunchArgsHasBeenSet = true;
267 m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value);
268 }
269 template <typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
270 StartStreamSessionRequest& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
271 SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value));
272 return *this;
273 }
274 template <typename AdditionalLaunchArgsT = Aws::String>
275 StartStreamSessionRequest& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) {
276 m_additionalLaunchArgsHasBeenSet = true;
277 m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value));
278 return *this;
279 }
281
283
298 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
299 inline bool AdditionalEnvironmentVariablesHasBeenSet() const { return m_additionalEnvironmentVariablesHasBeenSet; }
300 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
301 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
302 m_additionalEnvironmentVariablesHasBeenSet = true;
303 m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value);
304 }
305 template <typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
306 StartStreamSessionRequest& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) {
307 SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value));
308 return *this;
309 }
310 template <typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
311 StartStreamSessionRequest& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key,
312 AdditionalEnvironmentVariablesValueT&& value) {
313 m_additionalEnvironmentVariablesHasBeenSet = true;
314 m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key),
315 std::forward<AdditionalEnvironmentVariablesValueT>(value));
316 return *this;
317 }
319
321
325 inline const PerformanceStatsConfiguration& GetPerformanceStatsConfiguration() const { return m_performanceStatsConfiguration; }
326 inline bool PerformanceStatsConfigurationHasBeenSet() const { return m_performanceStatsConfigurationHasBeenSet; }
327 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
328 void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
329 m_performanceStatsConfigurationHasBeenSet = true;
330 m_performanceStatsConfiguration = std::forward<PerformanceStatsConfigurationT>(value);
331 }
332 template <typename PerformanceStatsConfigurationT = PerformanceStatsConfiguration>
333 StartStreamSessionRequest& WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT&& value) {
334 SetPerformanceStatsConfiguration(std::forward<PerformanceStatsConfigurationT>(value));
335 return *this;
336 }
338
340
348 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
349 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
350 template <typename RoleArnT = Aws::String>
351 void SetRoleArn(RoleArnT&& value) {
352 m_roleArnHasBeenSet = true;
353 m_roleArn = std::forward<RoleArnT>(value);
354 }
355 template <typename RoleArnT = Aws::String>
357 SetRoleArn(std::forward<RoleArnT>(value));
358 return *this;
359 }
361
363
368 inline const DisplayConfiguration& GetDisplayConfiguration() const { return m_displayConfiguration; }
369 inline bool DisplayConfigurationHasBeenSet() const { return m_displayConfigurationHasBeenSet; }
370 template <typename DisplayConfigurationT = DisplayConfiguration>
371 void SetDisplayConfiguration(DisplayConfigurationT&& value) {
372 m_displayConfigurationHasBeenSet = true;
373 m_displayConfiguration = std::forward<DisplayConfigurationT>(value);
374 }
375 template <typename DisplayConfigurationT = DisplayConfiguration>
376 StartStreamSessionRequest& WithDisplayConfiguration(DisplayConfigurationT&& value) {
377 SetDisplayConfiguration(std::forward<DisplayConfigurationT>(value));
378 return *this;
379 }
381 private:
383
384 Aws::String m_description;
385
386 Aws::String m_identifier;
387
388 Protocol m_protocol{Protocol::NOT_SET};
389
390 Aws::String m_signalRequest;
391
392 Aws::String m_applicationIdentifier;
393
394 Aws::String m_userId;
395
396 Aws::Vector<Aws::String> m_locations;
397
398 int m_connectionTimeoutSeconds{0};
399
400 int m_sessionLengthSeconds{0};
401
402 Aws::Vector<Aws::String> m_additionalLaunchArgs;
403
404 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
405
406 PerformanceStatsConfiguration m_performanceStatsConfiguration;
407
408 Aws::String m_roleArn;
409
410 DisplayConfiguration m_displayConfiguration;
411 bool m_clientTokenHasBeenSet = true;
412 bool m_descriptionHasBeenSet = false;
413 bool m_identifierHasBeenSet = false;
414 bool m_protocolHasBeenSet = false;
415 bool m_signalRequestHasBeenSet = false;
416 bool m_applicationIdentifierHasBeenSet = false;
417 bool m_userIdHasBeenSet = false;
418 bool m_locationsHasBeenSet = false;
419 bool m_connectionTimeoutSecondsHasBeenSet = false;
420 bool m_sessionLengthSecondsHasBeenSet = false;
421 bool m_additionalLaunchArgsHasBeenSet = false;
422 bool m_additionalEnvironmentVariablesHasBeenSet = false;
423 bool m_performanceStatsConfigurationHasBeenSet = false;
424 bool m_roleArnHasBeenSet = false;
425 bool m_displayConfigurationHasBeenSet = false;
426};
427
428} // namespace Model
429} // namespace GameLiftStreams
430} // namespace Aws
StartStreamSessionRequest & WithProtocol(Protocol value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEnvironmentVariables() const
const Aws::Vector< Aws::String > & GetLocations() const
StartStreamSessionRequest & WithSignalRequest(SignalRequestT &&value)
const Aws::Vector< Aws::String > & GetAdditionalLaunchArgs() const
StartStreamSessionRequest & AddAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
StartStreamSessionRequest & WithRoleArn(RoleArnT &&value)
StartStreamSessionRequest & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
StartStreamSessionRequest & WithLocations(LocationsT &&value)
const PerformanceStatsConfiguration & GetPerformanceStatsConfiguration() const
void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
StartStreamSessionRequest & WithAdditionalLaunchArgs(AdditionalLaunchArgsT &&value)
StartStreamSessionRequest & WithDescription(DescriptionT &&value)
StartStreamSessionRequest & AddLocations(LocationsT &&value)
StartStreamSessionRequest & WithSessionLengthSeconds(int value)
StartStreamSessionRequest & WithIdentifier(IdentifierT &&value)
StartStreamSessionRequest & WithUserId(UserIdT &&value)
AWS_GAMELIFTSTREAMS_API StartStreamSessionRequest()=default
StartStreamSessionRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
StartStreamSessionRequest & WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT &&value)
StartStreamSessionRequest & WithConnectionTimeoutSeconds(int value)
StartStreamSessionRequest & WithDisplayConfiguration(DisplayConfigurationT &&value)
StartStreamSessionRequest & WithPerformanceStatsConfiguration(PerformanceStatsConfigurationT &&value)
void SetPerformanceStatsConfiguration(PerformanceStatsConfigurationT &&value)
StartStreamSessionRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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