AWS SDK for C++  1.9.71
AWS SDK for C++
UpdateGameSessionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "UpdateGameSession"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
45  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
46 
50  inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
51 
55  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
56 
60  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
61 
65  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
66 
70  inline UpdateGameSessionRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
71 
75  inline UpdateGameSessionRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
76 
80  inline UpdateGameSessionRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
81 
82 
87  inline int GetMaximumPlayerSessionCount() const{ return m_maximumPlayerSessionCount; }
88 
93  inline bool MaximumPlayerSessionCountHasBeenSet() const { return m_maximumPlayerSessionCountHasBeenSet; }
94 
99  inline void SetMaximumPlayerSessionCount(int value) { m_maximumPlayerSessionCountHasBeenSet = true; m_maximumPlayerSessionCount = value; }
100 
105  inline UpdateGameSessionRequest& WithMaximumPlayerSessionCount(int value) { SetMaximumPlayerSessionCount(value); return *this;}
106 
107 
112  inline const Aws::String& GetName() const{ return m_name; }
113 
118  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 
124  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
125 
130  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
131 
136  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
137 
142  inline UpdateGameSessionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
143 
148  inline UpdateGameSessionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
149 
154  inline UpdateGameSessionRequest& WithName(const char* value) { SetName(value); return *this;}
155 
156 
161  inline const PlayerSessionCreationPolicy& GetPlayerSessionCreationPolicy() const{ return m_playerSessionCreationPolicy; }
162 
167  inline bool PlayerSessionCreationPolicyHasBeenSet() const { return m_playerSessionCreationPolicyHasBeenSet; }
168 
173  inline void SetPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy& value) { m_playerSessionCreationPolicyHasBeenSet = true; m_playerSessionCreationPolicy = value; }
174 
179  inline void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy&& value) { m_playerSessionCreationPolicyHasBeenSet = true; m_playerSessionCreationPolicy = std::move(value); }
180 
185  inline UpdateGameSessionRequest& WithPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy& value) { SetPlayerSessionCreationPolicy(value); return *this;}
186 
191  inline UpdateGameSessionRequest& WithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy&& value) { SetPlayerSessionCreationPolicy(std::move(value)); return *this;}
192 
193 
201  inline const ProtectionPolicy& GetProtectionPolicy() const{ return m_protectionPolicy; }
202 
210  inline bool ProtectionPolicyHasBeenSet() const { return m_protectionPolicyHasBeenSet; }
211 
219  inline void SetProtectionPolicy(const ProtectionPolicy& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = value; }
220 
228  inline void SetProtectionPolicy(ProtectionPolicy&& value) { m_protectionPolicyHasBeenSet = true; m_protectionPolicy = std::move(value); }
229 
237  inline UpdateGameSessionRequest& WithProtectionPolicy(const ProtectionPolicy& value) { SetProtectionPolicy(value); return *this;}
238 
246  inline UpdateGameSessionRequest& WithProtectionPolicy(ProtectionPolicy&& value) { SetProtectionPolicy(std::move(value)); return *this;}
247 
248  private:
249 
250  Aws::String m_gameSessionId;
251  bool m_gameSessionIdHasBeenSet;
252 
253  int m_maximumPlayerSessionCount;
254  bool m_maximumPlayerSessionCountHasBeenSet;
255 
256  Aws::String m_name;
257  bool m_nameHasBeenSet;
258 
259  PlayerSessionCreationPolicy m_playerSessionCreationPolicy;
260  bool m_playerSessionCreationPolicyHasBeenSet;
261 
262  ProtectionPolicy m_protectionPolicy;
263  bool m_protectionPolicyHasBeenSet;
264  };
265 
266 } // namespace Model
267 } // namespace GameLift
268 } // namespace Aws
Aws::GameLift::Model::UpdateGameSessionRequest::WithName
UpdateGameSessionRequest & WithName(Aws::String &&value)
Definition: UpdateGameSessionRequest.h:148
Aws::GameLift::Model::UpdateGameSessionRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateGameSessionRequest.h:130
Aws::GameLift::Model::PlayerSessionCreationPolicy
PlayerSessionCreationPolicy
Definition: PlayerSessionCreationPolicy.h:17
Aws::GameLift::Model::UpdateGameSessionRequest::GameSessionIdHasBeenSet
bool GameSessionIdHasBeenSet() const
Definition: UpdateGameSessionRequest.h:50
Aws::GameLift::Model::UpdateGameSessionRequest::SetGameSessionId
void SetGameSessionId(const char *value)
Definition: UpdateGameSessionRequest.h:65
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::UpdateGameSessionRequest::WithGameSessionId
UpdateGameSessionRequest & WithGameSessionId(const Aws::String &value)
Definition: UpdateGameSessionRequest.h:70
Aws::GameLift::Model::UpdateGameSessionRequest::SetPlayerSessionCreationPolicy
void SetPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy &value)
Definition: UpdateGameSessionRequest.h:173
Aws::GameLift::Model::UpdateGameSessionRequest::WithProtectionPolicy
UpdateGameSessionRequest & WithProtectionPolicy(const ProtectionPolicy &value)
Definition: UpdateGameSessionRequest.h:237
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::UpdateGameSessionRequest::WithName
UpdateGameSessionRequest & WithName(const char *value)
Definition: UpdateGameSessionRequest.h:154
Aws::GameLift::Model::ProtectionPolicy
ProtectionPolicy
Definition: ProtectionPolicy.h:17
Aws::GameLift::Model::UpdateGameSessionRequest::WithGameSessionId
UpdateGameSessionRequest & WithGameSessionId(Aws::String &&value)
Definition: UpdateGameSessionRequest.h:75
Aws::GameLift::Model::UpdateGameSessionRequest::WithPlayerSessionCreationPolicy
UpdateGameSessionRequest & WithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy &&value)
Definition: UpdateGameSessionRequest.h:191
Aws::GameLift::Model::UpdateGameSessionRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateGameSessionRequest.h:124
Aws::GameLift::Model::UpdateGameSessionRequest::ProtectionPolicyHasBeenSet
bool ProtectionPolicyHasBeenSet() const
Definition: UpdateGameSessionRequest.h:210
Aws::GameLift::Model::UpdateGameSessionRequest::SetGameSessionId
void SetGameSessionId(Aws::String &&value)
Definition: UpdateGameSessionRequest.h:60
Aws::GameLift::Model::UpdateGameSessionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::UpdateGameSessionRequest::GetName
const Aws::String & GetName() const
Definition: UpdateGameSessionRequest.h:112
Aws::GameLift::Model::UpdateGameSessionRequest::SetMaximumPlayerSessionCount
void SetMaximumPlayerSessionCount(int value)
Definition: UpdateGameSessionRequest.h:99
Aws::GameLift::Model::UpdateGameSessionRequest::SetGameSessionId
void SetGameSessionId(const Aws::String &value)
Definition: UpdateGameSessionRequest.h:55
Aws::GameLift::Model::UpdateGameSessionRequest::MaximumPlayerSessionCountHasBeenSet
bool MaximumPlayerSessionCountHasBeenSet() const
Definition: UpdateGameSessionRequest.h:93
Aws::GameLift::Model::UpdateGameSessionRequest::SetProtectionPolicy
void SetProtectionPolicy(ProtectionPolicy &&value)
Definition: UpdateGameSessionRequest.h:228
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::UpdateGameSessionRequest::GetMaximumPlayerSessionCount
int GetMaximumPlayerSessionCount() const
Definition: UpdateGameSessionRequest.h:87
Aws::GameLift::Model::UpdateGameSessionRequest
Definition: UpdateGameSessionRequest.h:27
Aws::GameLift::Model::UpdateGameSessionRequest::WithProtectionPolicy
UpdateGameSessionRequest & WithProtectionPolicy(ProtectionPolicy &&value)
Definition: UpdateGameSessionRequest.h:246
Aws::GameLift::Model::UpdateGameSessionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateGameSessionRequest.h:35
Aws::GameLift::Model::UpdateGameSessionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::UpdateGameSessionRequest::SetPlayerSessionCreationPolicy
void SetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy &&value)
Definition: UpdateGameSessionRequest.h:179
AWSString.h
ProtectionPolicy.h
Aws::GameLift::Model::UpdateGameSessionRequest::GetGameSessionId
const Aws::String & GetGameSessionId() const
Definition: UpdateGameSessionRequest.h:45
Aws::GameLift::Model::UpdateGameSessionRequest::WithGameSessionId
UpdateGameSessionRequest & WithGameSessionId(const char *value)
Definition: UpdateGameSessionRequest.h:80
Aws::GameLift::Model::UpdateGameSessionRequest::WithName
UpdateGameSessionRequest & WithName(const Aws::String &value)
Definition: UpdateGameSessionRequest.h:142
Aws::GameLift::Model::UpdateGameSessionRequest::SetName
void SetName(const char *value)
Definition: UpdateGameSessionRequest.h:136
Aws::GameLift::Model::UpdateGameSessionRequest::WithMaximumPlayerSessionCount
UpdateGameSessionRequest & WithMaximumPlayerSessionCount(int value)
Definition: UpdateGameSessionRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::UpdateGameSessionRequest::UpdateGameSessionRequest
UpdateGameSessionRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::UpdateGameSessionRequest::GetProtectionPolicy
const ProtectionPolicy & GetProtectionPolicy() const
Definition: UpdateGameSessionRequest.h:201
PlayerSessionCreationPolicy.h
Aws::GameLift::Model::UpdateGameSessionRequest::PlayerSessionCreationPolicyHasBeenSet
bool PlayerSessionCreationPolicyHasBeenSet() const
Definition: UpdateGameSessionRequest.h:167
Aws::GameLift::Model::UpdateGameSessionRequest::WithPlayerSessionCreationPolicy
UpdateGameSessionRequest & WithPlayerSessionCreationPolicy(const PlayerSessionCreationPolicy &value)
Definition: UpdateGameSessionRequest.h:185
Aws::GameLift::Model::UpdateGameSessionRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateGameSessionRequest.h:118
Aws::GameLift::Model::UpdateGameSessionRequest::SetProtectionPolicy
void SetProtectionPolicy(const ProtectionPolicy &value)
Definition: UpdateGameSessionRequest.h:219
Aws::GameLift::Model::UpdateGameSessionRequest::GetPlayerSessionCreationPolicy
const PlayerSessionCreationPolicy & GetPlayerSessionCreationPolicy() const
Definition: UpdateGameSessionRequest.h:161