AWS SDK for C++  0.12.9
AWS SDK for C++
CreateGameSessionRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace GameLift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 
50  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
51 
56  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
57 
62  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
63 
68  inline CreateGameSessionRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
69 
74  inline CreateGameSessionRequest& WithFleetId(Aws::String&& value) { SetFleetId(value); return *this;}
75 
80  inline CreateGameSessionRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
81 
86  inline const Aws::String& GetAliasId() const{ return m_aliasId; }
87 
92  inline void SetAliasId(const Aws::String& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
93 
98  inline void SetAliasId(Aws::String&& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
99 
104  inline void SetAliasId(const char* value) { m_aliasIdHasBeenSet = true; m_aliasId.assign(value); }
105 
110  inline CreateGameSessionRequest& WithAliasId(const Aws::String& value) { SetAliasId(value); return *this;}
111 
116  inline CreateGameSessionRequest& WithAliasId(Aws::String&& value) { SetAliasId(value); return *this;}
117 
122  inline CreateGameSessionRequest& WithAliasId(const char* value) { SetAliasId(value); return *this;}
123 
128  inline long GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
129 
134  inline void SetMaximumPlayerSessionCount(long value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
135 
140  inline CreateGameSessionRequest& WithMaximumPlayerSessionCount(long value) { SetMaximumPlayerSessionCount(value); return *this;}
141 
146  inline const Aws::String& GetName() const{ return m_name; }
147 
152  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
153 
158  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
159 
164  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
165 
170  inline CreateGameSessionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
171 
176  inline CreateGameSessionRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
177 
182  inline CreateGameSessionRequest& WithName(const char* value) { SetName(value); return *this;}
183 
188  inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
189 
194  inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
195 
200  inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
201 
206  inline CreateGameSessionRequest& WithGameProperties(const Aws::Vector<GameProperty>& value) { SetGameProperties(value); return *this;}
207 
212  inline CreateGameSessionRequest& WithGameProperties(Aws::Vector<GameProperty>&& value) { SetGameProperties(value); return *this;}
213 
218  inline CreateGameSessionRequest& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
219 
224  inline CreateGameSessionRequest& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
225 
226  private:
227  Aws::String m_fleetId;
228  bool m_fleetIdHasBeenSet;
229  Aws::String m_aliasId;
230  bool m_aliasIdHasBeenSet;
231  long m_maximumPlayerSessionCount;
232  bool m_maximumPlayerSessionCountHasBeenSet;
233  Aws::String m_name;
234  bool m_nameHasBeenSet;
235  Aws::Vector<GameProperty> m_gameProperties;
236  bool m_gamePropertiesHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace GameLift
241 } // namespace Aws
CreateGameSessionRequest & WithAliasId(const Aws::String &value)
CreateGameSessionRequest & WithName(const Aws::String &value)
void SetGameProperties(Aws::Vector< GameProperty > &&value)
CreateGameSessionRequest & WithAliasId(Aws::String &&value)
#define AWS_GAMELIFT_API
CreateGameSessionRequest & WithGameProperties(Aws::Vector< GameProperty > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const Aws::Vector< GameProperty > & GetGameProperties() const
CreateGameSessionRequest & WithFleetId(const Aws::String &value)
CreateGameSessionRequest & WithAliasId(const char *value)
CreateGameSessionRequest & WithMaximumPlayerSessionCount(long value)
CreateGameSessionRequest & WithFleetId(Aws::String &&value)
CreateGameSessionRequest & AddGameProperties(const GameProperty &value)
CreateGameSessionRequest & WithFleetId(const char *value)
CreateGameSessionRequest & AddGameProperties(GameProperty &&value)
CreateGameSessionRequest & WithName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetGameProperties(const Aws::Vector< GameProperty > &value)
CreateGameSessionRequest & WithName(const char *value)
JSON (JavaScript Object Notation).
CreateGameSessionRequest & WithGameProperties(const Aws::Vector< GameProperty > &value)