AWS SDK for C++  0.12.9
AWS SDK for C++
DescribePlayerSessionsRequest.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
19 
20 namespace Aws
21 {
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
42 
46  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
47 
51  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
52 
56  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
57 
61  inline DescribePlayerSessionsRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
62 
66  inline DescribePlayerSessionsRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(value); return *this;}
67 
71  inline DescribePlayerSessionsRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
72 
76  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
77 
81  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
82 
86  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
87 
91  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
92 
96  inline DescribePlayerSessionsRequest& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
97 
101  inline DescribePlayerSessionsRequest& WithPlayerId(Aws::String&& value) { SetPlayerId(value); return *this;}
102 
106  inline DescribePlayerSessionsRequest& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
107 
111  inline const Aws::String& GetPlayerSessionId() const{ return m_playerSessionId; }
112 
116  inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
117 
121  inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
122 
126  inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
127 
131  inline DescribePlayerSessionsRequest& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
132 
136  inline DescribePlayerSessionsRequest& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(value); return *this;}
137 
141  inline DescribePlayerSessionsRequest& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
142 
153  inline const Aws::String& GetPlayerSessionStatusFilter() const{ return m_playerSessionStatusFilter; }
154 
165  inline void SetPlayerSessionStatusFilter(const Aws::String& value) { m_playerSessionStatusFilterHasBeenSet = true; m_playerSessionStatusFilter = value; }
166 
177  inline void SetPlayerSessionStatusFilter(Aws::String&& value) { m_playerSessionStatusFilterHasBeenSet = true; m_playerSessionStatusFilter = value; }
178 
189  inline void SetPlayerSessionStatusFilter(const char* value) { m_playerSessionStatusFilterHasBeenSet = true; m_playerSessionStatusFilter.assign(value); }
190 
201  inline DescribePlayerSessionsRequest& WithPlayerSessionStatusFilter(const Aws::String& value) { SetPlayerSessionStatusFilter(value); return *this;}
202 
213  inline DescribePlayerSessionsRequest& WithPlayerSessionStatusFilter(Aws::String&& value) { SetPlayerSessionStatusFilter(value); return *this;}
214 
225  inline DescribePlayerSessionsRequest& WithPlayerSessionStatusFilter(const char* value) { SetPlayerSessionStatusFilter(value); return *this;}
226 
232  inline long GetLimit() const{ return m_limit; }
233 
239  inline void SetLimit(long value) { m_limitHasBeenSet = true; m_limit = value; }
240 
246  inline DescribePlayerSessionsRequest& WithLimit(long value) { SetLimit(value); return *this;}
247 
254  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
255 
262  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
263 
270  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
271 
278  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
279 
286  inline DescribePlayerSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
287 
294  inline DescribePlayerSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
295 
302  inline DescribePlayerSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
303 
304  private:
305  Aws::String m_gameSessionId;
306  bool m_gameSessionIdHasBeenSet;
307  Aws::String m_playerId;
308  bool m_playerIdHasBeenSet;
309  Aws::String m_playerSessionId;
310  bool m_playerSessionIdHasBeenSet;
311  Aws::String m_playerSessionStatusFilter;
312  bool m_playerSessionStatusFilterHasBeenSet;
313  long m_limit;
314  bool m_limitHasBeenSet;
315  Aws::String m_nextToken;
316  bool m_nextTokenHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace GameLift
321 } // namespace Aws
DescribePlayerSessionsRequest & WithPlayerSessionStatusFilter(const Aws::String &value)
#define AWS_GAMELIFT_API
DescribePlayerSessionsRequest & WithNextToken(Aws::String &&value)
DescribePlayerSessionsRequest & WithNextToken(const Aws::String &value)
DescribePlayerSessionsRequest & WithPlayerSessionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribePlayerSessionsRequest & WithPlayerId(Aws::String &&value)
DescribePlayerSessionsRequest & WithLimit(long value)
DescribePlayerSessionsRequest & WithGameSessionId(const Aws::String &value)
DescribePlayerSessionsRequest & WithPlayerId(const Aws::String &value)
DescribePlayerSessionsRequest & WithPlayerId(const char *value)
DescribePlayerSessionsRequest & WithPlayerSessionStatusFilter(const char *value)
DescribePlayerSessionsRequest & WithPlayerSessionId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribePlayerSessionsRequest & WithPlayerSessionStatusFilter(Aws::String &&value)
DescribePlayerSessionsRequest & WithGameSessionId(Aws::String &&value)
DescribePlayerSessionsRequest & WithNextToken(const char *value)
DescribePlayerSessionsRequest & WithPlayerSessionId(Aws::String &&value)
JSON (JavaScript Object Notation).
DescribePlayerSessionsRequest & WithGameSessionId(const char *value)