AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateGameSessionRequest.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& GetGameSessionId() const{ return m_gameSessionId; }
45 
50  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
51 
56  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
57 
62  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
63 
68  inline UpdateGameSessionRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
69 
74  inline UpdateGameSessionRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(value); return *this;}
75 
80  inline UpdateGameSessionRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
81 
86  inline int GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
87 
92  inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
93 
98  inline UpdateGameSessionRequest& WithMaximumPlayerSessionCount(int value) { SetMaximumPlayerSessionCount(value); return *this;}
99 
104  inline const Aws::String& GetName() const{ return m_name; }
105 
110  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
111 
116  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
117 
122  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
123 
128  inline UpdateGameSessionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
129 
134  inline UpdateGameSessionRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
135 
140  inline UpdateGameSessionRequest& WithName(const char* value) { SetName(value); return *this;}
141 
145  inline const PlayerSessionCreationPolicy& GetPlayerSessionCreationPolicy() const{ return m_playerSessionCreationPolicy; }
146 
150  inline void SetPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy& value) { m_playerSessionCreationPolicyHasBeenSet = true; m_playerSessionCreationPolicy = value; }
151 
155  inline void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy&& value) { m_playerSessionCreationPolicyHasBeenSet = true; m_playerSessionCreationPolicy = value; }
156 
160  inline UpdateGameSessionRequest& WithPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy& value) { SetPlayerSessionCreationPolicy(value); return *this;}
161 
165  inline UpdateGameSessionRequest& WithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy&& value) { SetPlayerSessionCreationPolicy(value); return *this;}
166 
174  inline const ProtectionPolicy& GetProtectionPolicy() const{ return m_protectionPolicy; }
175 
183  inline void SetProtectionPolicy(const ProtectionPolicy& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
184 
192  inline void SetProtectionPolicy(ProtectionPolicy&& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
193 
201  inline UpdateGameSessionRequest& WithProtectionPolicy(const ProtectionPolicy& value) { SetProtectionPolicy(value); return *this;}
202 
210  inline UpdateGameSessionRequest& WithProtectionPolicy(ProtectionPolicy&& value) { SetProtectionPolicy(value); return *this;}
211 
212  private:
213  Aws::String m_gameSessionId;
214  bool m_gameSessionIdHasBeenSet;
215  int m_maximumPlayerSessionCount;
216  bool m_maximumPlayerSessionCountHasBeenSet;
217  Aws::String m_name;
218  bool m_nameHasBeenSet;
219  PlayerSessionCreationPolicy m_playerSessionCreationPolicy;
220  bool m_playerSessionCreationPolicyHasBeenSet;
221  ProtectionPolicy m_protectionPolicy;
222  bool m_protectionPolicyHasBeenSet;
223  };
224 
225 } // namespace Model
226 } // namespace GameLift
227 } // namespace Aws
void SetProtectionPolicy(const ProtectionPolicy &value)
UpdateGameSessionRequest & WithName(const char *value)
UpdateGameSessionRequest & WithGameSessionId(const char *value)
UpdateGameSessionRequest & WithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy &&value)
void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy &&value)
UpdateGameSessionRequest & WithName(const Aws::String &value)
#define AWS_GAMELIFT_API
UpdateGameSessionRequest & WithGameSessionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
const ProtectionPolicy & GetProtectionPolicy() const
UpdateGameSessionRequest & WithProtectionPolicy(ProtectionPolicy &&value)
UpdateGameSessionRequest & WithProtectionPolicy(const ProtectionPolicy &value)
UpdateGameSessionRequest & WithPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateGameSessionRequest & WithMaximumPlayerSessionCount(int value)
void SetPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy &value)
const PlayerSessionCreationPolicy & GetPlayerSessionCreationPolicy() const
UpdateGameSessionRequest & WithName(Aws::String &&value)
JSON (JavaScript Object Notation).
UpdateGameSessionRequest & WithGameSessionId(Aws::String &&value)