AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateGameSessionRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/GameProperty.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API CreateGameSessionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateGameSession"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetFleetId() const { return m_fleetId; }
46 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
47 template<typename FleetIdT = Aws::String>
48 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
49 template<typename FleetIdT = Aws::String>
50 CreateGameSessionRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
52
54
59 inline const Aws::String& GetAliasId() const { return m_aliasId; }
60 inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
61 template<typename AliasIdT = Aws::String>
62 void SetAliasId(AliasIdT&& value) { m_aliasIdHasBeenSet = true; m_aliasId = std::forward<AliasIdT>(value); }
63 template<typename AliasIdT = Aws::String>
64 CreateGameSessionRequest& WithAliasId(AliasIdT&& value) { SetAliasId(std::forward<AliasIdT>(value)); return *this;}
66
68
72 inline int GetMaximumPlayerSessionCount() const { return m_maximumPlayerSessionCount; }
73 inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
74 inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
77
79
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template<typename NameT = Aws::String>
86 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
87 template<typename NameT = Aws::String>
88 CreateGameSessionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
90
92
99 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
100 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
101 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
102 void SetGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::forward<GamePropertiesT>(value); }
103 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
104 CreateGameSessionRequest& WithGameProperties(GamePropertiesT&& value) { SetGameProperties(std::forward<GamePropertiesT>(value)); return *this;}
105 template<typename GamePropertiesT = GameProperty>
106 CreateGameSessionRequest& AddGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value)); return *this; }
108
110
123 inline const Aws::String& GetCreatorId() const { return m_creatorId; }
124 inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
125 template<typename CreatorIdT = Aws::String>
126 void SetCreatorId(CreatorIdT&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::forward<CreatorIdT>(value); }
127 template<typename CreatorIdT = Aws::String>
128 CreateGameSessionRequest& WithCreatorId(CreatorIdT&& value) { SetCreatorId(std::forward<CreatorIdT>(value)); return *this;}
130
132
138 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
139 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
140 template<typename GameSessionIdT = Aws::String>
141 void SetGameSessionId(GameSessionIdT&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::forward<GameSessionIdT>(value); }
142 template<typename GameSessionIdT = Aws::String>
143 CreateGameSessionRequest& WithGameSessionId(GameSessionIdT&& value) { SetGameSessionId(std::forward<GameSessionIdT>(value)); return *this;}
145
147
159 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
160 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
161 template<typename IdempotencyTokenT = Aws::String>
162 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
163 template<typename IdempotencyTokenT = Aws::String>
164 CreateGameSessionRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
166
168
175 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
176 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
177 template<typename GameSessionDataT = Aws::String>
178 void SetGameSessionData(GameSessionDataT&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::forward<GameSessionDataT>(value); }
179 template<typename GameSessionDataT = Aws::String>
180 CreateGameSessionRequest& WithGameSessionData(GameSessionDataT&& value) { SetGameSessionData(std::forward<GameSessionDataT>(value)); return *this;}
182
184
191 inline const Aws::String& GetLocation() const { return m_location; }
192 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
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 CreateGameSessionRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
198 private:
199
200 Aws::String m_fleetId;
201 bool m_fleetIdHasBeenSet = false;
202
203 Aws::String m_aliasId;
204 bool m_aliasIdHasBeenSet = false;
205
206 int m_maximumPlayerSessionCount{0};
207 bool m_maximumPlayerSessionCountHasBeenSet = false;
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 Aws::Vector<GameProperty> m_gameProperties;
213 bool m_gamePropertiesHasBeenSet = false;
214
215 Aws::String m_creatorId;
216 bool m_creatorIdHasBeenSet = false;
217
218 Aws::String m_gameSessionId;
219 bool m_gameSessionIdHasBeenSet = false;
220
221 Aws::String m_idempotencyToken;
222 bool m_idempotencyTokenHasBeenSet = false;
223
224 Aws::String m_gameSessionData;
225 bool m_gameSessionDataHasBeenSet = false;
226
227 Aws::String m_location;
228 bool m_locationHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace GameLift
233} // namespace Aws
CreateGameSessionRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_GAMELIFT_API CreateGameSessionRequest()=default
const Aws::Vector< GameProperty > & GetGameProperties() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGameSessionRequest & WithLocation(LocationT &&value)
CreateGameSessionRequest & WithGameSessionId(GameSessionIdT &&value)
CreateGameSessionRequest & WithGameSessionData(GameSessionDataT &&value)
CreateGameSessionRequest & WithGameProperties(GamePropertiesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateGameSessionRequest & WithName(NameT &&value)
CreateGameSessionRequest & WithFleetId(FleetIdT &&value)
CreateGameSessionRequest & WithAliasId(AliasIdT &&value)
CreateGameSessionRequest & AddGameProperties(GamePropertiesT &&value)
CreateGameSessionRequest & WithMaximumPlayerSessionCount(int value)
CreateGameSessionRequest & WithCreatorId(CreatorIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector