AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
StartStreamSessionRequest.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/gameliftstreams/GameLiftStreamsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gameliftstreams/model/Protocol.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace GameLiftStreams
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFTSTREAMS_API StartStreamSessionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartStreamSession"; }
35
36 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 StartStreamSessionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 StartStreamSessionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
75 inline const Aws::String& GetIdentifier() const { return m_identifier; }
76 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
77 template<typename IdentifierT = Aws::String>
78 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
79 template<typename IdentifierT = Aws::String>
80 StartStreamSessionRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
82
84
87 inline Protocol GetProtocol() const { return m_protocol; }
88 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
89 inline void SetProtocol(Protocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
90 inline StartStreamSessionRequest& WithProtocol(Protocol value) { SetProtocol(value); return *this;}
92
94
103 inline const Aws::String& GetSignalRequest() const { return m_signalRequest; }
104 inline bool SignalRequestHasBeenSet() const { return m_signalRequestHasBeenSet; }
105 template<typename SignalRequestT = Aws::String>
106 void SetSignalRequest(SignalRequestT&& value) { m_signalRequestHasBeenSet = true; m_signalRequest = std::forward<SignalRequestT>(value); }
107 template<typename SignalRequestT = Aws::String>
108 StartStreamSessionRequest& WithSignalRequest(SignalRequestT&& value) { SetSignalRequest(std::forward<SignalRequestT>(value)); return *this;}
110
112
120 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
121 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
122 template<typename ApplicationIdentifierT = Aws::String>
123 void SetApplicationIdentifier(ApplicationIdentifierT&& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value); }
124 template<typename ApplicationIdentifierT = Aws::String>
125 StartStreamSessionRequest& WithApplicationIdentifier(ApplicationIdentifierT&& value) { SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value)); return *this;}
127
129
132 inline const Aws::String& GetUserId() const { return m_userId; }
133 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
134 template<typename UserIdT = Aws::String>
135 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
136 template<typename UserIdT = Aws::String>
137 StartStreamSessionRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
139
141
152 inline const Aws::Vector<Aws::String>& GetLocations() const { return m_locations; }
153 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
154 template<typename LocationsT = Aws::Vector<Aws::String>>
155 void SetLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations = std::forward<LocationsT>(value); }
156 template<typename LocationsT = Aws::Vector<Aws::String>>
157 StartStreamSessionRequest& WithLocations(LocationsT&& value) { SetLocations(std::forward<LocationsT>(value)); return *this;}
158 template<typename LocationsT = Aws::String>
159 StartStreamSessionRequest& AddLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations.emplace_back(std::forward<LocationsT>(value)); return *this; }
161
163
170 inline int GetConnectionTimeoutSeconds() const { return m_connectionTimeoutSeconds; }
171 inline bool ConnectionTimeoutSecondsHasBeenSet() const { return m_connectionTimeoutSecondsHasBeenSet; }
172 inline void SetConnectionTimeoutSeconds(int value) { m_connectionTimeoutSecondsHasBeenSet = true; m_connectionTimeoutSeconds = value; }
175
177
182 inline int GetSessionLengthSeconds() const { return m_sessionLengthSeconds; }
183 inline bool SessionLengthSecondsHasBeenSet() const { return m_sessionLengthSecondsHasBeenSet; }
184 inline void SetSessionLengthSeconds(int value) { m_sessionLengthSecondsHasBeenSet = true; m_sessionLengthSeconds = value; }
187
189
200 inline const Aws::Vector<Aws::String>& GetAdditionalLaunchArgs() const { return m_additionalLaunchArgs; }
201 inline bool AdditionalLaunchArgsHasBeenSet() const { return m_additionalLaunchArgsHasBeenSet; }
202 template<typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
203 void SetAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { m_additionalLaunchArgsHasBeenSet = true; m_additionalLaunchArgs = std::forward<AdditionalLaunchArgsT>(value); }
204 template<typename AdditionalLaunchArgsT = Aws::Vector<Aws::String>>
205 StartStreamSessionRequest& WithAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { SetAdditionalLaunchArgs(std::forward<AdditionalLaunchArgsT>(value)); return *this;}
206 template<typename AdditionalLaunchArgsT = Aws::String>
207 StartStreamSessionRequest& AddAdditionalLaunchArgs(AdditionalLaunchArgsT&& value) { m_additionalLaunchArgsHasBeenSet = true; m_additionalLaunchArgs.emplace_back(std::forward<AdditionalLaunchArgsT>(value)); return *this; }
209
211
226 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEnvironmentVariables() const { return m_additionalEnvironmentVariables; }
227 inline bool AdditionalEnvironmentVariablesHasBeenSet() const { return m_additionalEnvironmentVariablesHasBeenSet; }
228 template<typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
229 void SetAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) { m_additionalEnvironmentVariablesHasBeenSet = true; m_additionalEnvironmentVariables = std::forward<AdditionalEnvironmentVariablesT>(value); }
230 template<typename AdditionalEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
231 StartStreamSessionRequest& WithAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesT&& value) { SetAdditionalEnvironmentVariables(std::forward<AdditionalEnvironmentVariablesT>(value)); return *this;}
232 template<typename AdditionalEnvironmentVariablesKeyT = Aws::String, typename AdditionalEnvironmentVariablesValueT = Aws::String>
233 StartStreamSessionRequest& AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT&& key, AdditionalEnvironmentVariablesValueT&& value) {
234 m_additionalEnvironmentVariablesHasBeenSet = true; m_additionalEnvironmentVariables.emplace(std::forward<AdditionalEnvironmentVariablesKeyT>(key), std::forward<AdditionalEnvironmentVariablesValueT>(value)); return *this;
235 }
237 private:
238
240 bool m_clientTokenHasBeenSet = true;
241
242 Aws::String m_description;
243 bool m_descriptionHasBeenSet = false;
244
245 Aws::String m_identifier;
246 bool m_identifierHasBeenSet = false;
247
248 Protocol m_protocol{Protocol::NOT_SET};
249 bool m_protocolHasBeenSet = false;
250
251 Aws::String m_signalRequest;
252 bool m_signalRequestHasBeenSet = false;
253
254 Aws::String m_applicationIdentifier;
255 bool m_applicationIdentifierHasBeenSet = false;
256
257 Aws::String m_userId;
258 bool m_userIdHasBeenSet = false;
259
260 Aws::Vector<Aws::String> m_locations;
261 bool m_locationsHasBeenSet = false;
262
263 int m_connectionTimeoutSeconds{0};
264 bool m_connectionTimeoutSecondsHasBeenSet = false;
265
266 int m_sessionLengthSeconds{0};
267 bool m_sessionLengthSecondsHasBeenSet = false;
268
269 Aws::Vector<Aws::String> m_additionalLaunchArgs;
270 bool m_additionalLaunchArgsHasBeenSet = false;
271
272 Aws::Map<Aws::String, Aws::String> m_additionalEnvironmentVariables;
273 bool m_additionalEnvironmentVariablesHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace GameLiftStreams
278} // 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 & AddAdditionalEnvironmentVariables(AdditionalEnvironmentVariablesKeyT &&key, AdditionalEnvironmentVariablesValueT &&value)
StartStreamSessionRequest & WithLocations(LocationsT &&value)
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 & 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