AWS SDK for C++  1.8.7
AWS SDK for C++
DescribePlayerSessionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DescribePlayerSessions"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
44 
48  inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
49 
53  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
54 
58  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
59 
63  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
64 
68  inline DescribePlayerSessionsRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
69 
73  inline DescribePlayerSessionsRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
74 
78  inline DescribePlayerSessionsRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
79 
80 
84  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
85 
89  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
90 
94  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
95 
99  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
100 
104  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
105 
109  inline DescribePlayerSessionsRequest& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
110 
114  inline DescribePlayerSessionsRequest& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
115 
119  inline DescribePlayerSessionsRequest& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
120 
121 
125  inline const Aws::String& GetPlayerSessionId() const{ return m_playerSessionId; }
126 
130  inline bool PlayerSessionIdHasBeenSet() const { return m_playerSessionIdHasBeenSet; }
131 
135  inline void SetPlayerSessionId(const Aws::String& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = value; }
136 
140  inline void SetPlayerSessionId(Aws::String&& value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId = std::move(value); }
141 
145  inline void SetPlayerSessionId(const char* value) { m_playerSessionIdHasBeenSet = true; m_playerSessionId.assign(value); }
146 
150  inline DescribePlayerSessionsRequest& WithPlayerSessionId(const Aws::String& value) { SetPlayerSessionId(value); return *this;}
151 
155  inline DescribePlayerSessionsRequest& WithPlayerSessionId(Aws::String&& value) { SetPlayerSessionId(std::move(value)); return *this;}
156 
160  inline DescribePlayerSessionsRequest& WithPlayerSessionId(const char* value) { SetPlayerSessionId(value); return *this;}
161 
162 
174  inline const Aws::String& GetPlayerSessionStatusFilter() const{ return m_playerSessionStatusFilter; }
175 
187  inline bool PlayerSessionStatusFilterHasBeenSet() const { return m_playerSessionStatusFilterHasBeenSet; }
188 
200  inline void SetPlayerSessionStatusFilter(const Aws::String& value) { m_playerSessionStatusFilterHasBeenSet = true; m_playerSessionStatusFilter = value; }
201 
213  inline void SetPlayerSessionStatusFilter(Aws::String&& value) { m_playerSessionStatusFilterHasBeenSet = true; m_playerSessionStatusFilter = std::move(value); }
214 
226  inline void SetPlayerSessionStatusFilter(const char* value) { m_playerSessionStatusFilterHasBeenSet = true; m_playerSessionStatusFilter.assign(value); }
227 
239  inline DescribePlayerSessionsRequest& WithPlayerSessionStatusFilter(const Aws::String& value) { SetPlayerSessionStatusFilter(value); return *this;}
240 
252  inline DescribePlayerSessionsRequest& WithPlayerSessionStatusFilter(Aws::String&& value) { SetPlayerSessionStatusFilter(std::move(value)); return *this;}
253 
265  inline DescribePlayerSessionsRequest& WithPlayerSessionStatusFilter(const char* value) { SetPlayerSessionStatusFilter(value); return *this;}
266 
267 
273  inline int GetLimit() const{ return m_limit; }
274 
280  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
281 
287  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
288 
294  inline DescribePlayerSessionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
295 
296 
303  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
304 
311  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
312 
319  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
320 
327  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
328 
335  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
336 
343  inline DescribePlayerSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
344 
351  inline DescribePlayerSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
352 
359  inline DescribePlayerSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
360 
361  private:
362 
363  Aws::String m_gameSessionId;
364  bool m_gameSessionIdHasBeenSet;
365 
366  Aws::String m_playerId;
367  bool m_playerIdHasBeenSet;
368 
369  Aws::String m_playerSessionId;
370  bool m_playerSessionIdHasBeenSet;
371 
372  Aws::String m_playerSessionStatusFilter;
373  bool m_playerSessionStatusFilterHasBeenSet;
374 
375  int m_limit;
376  bool m_limitHasBeenSet;
377 
378  Aws::String m_nextToken;
379  bool m_nextTokenHasBeenSet;
380  };
381 
382 } // namespace Model
383 } // namespace GameLift
384 } // 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:53
DescribePlayerSessionsRequest & WithPlayerId(Aws::String &&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)
DescribePlayerSessionsRequest & WithGameSessionId(const char *value)