AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeGameSessionsRequest.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 
42  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
43 
48  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
49 
54  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
55 
60  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
61 
66  inline DescribeGameSessionsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
67 
72  inline DescribeGameSessionsRequest& WithFleetId(Aws::String&& value) { SetFleetId(value); return *this;}
73 
78  inline DescribeGameSessionsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
79 
84  inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
85 
90  inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
91 
96  inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
97 
102  inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
103 
108  inline DescribeGameSessionsRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
109 
114  inline DescribeGameSessionsRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(value); return *this;}
115 
120  inline DescribeGameSessionsRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
121 
126  inline const Aws::String& GetAliasId() const{ return m_aliasId; }
127 
132  inline void SetAliasId(const Aws::String& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
133 
138  inline void SetAliasId(Aws::String&& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
139 
144  inline void SetAliasId(const char* value) { m_aliasIdHasBeenSet = true; m_aliasId.assign(value); }
145 
150  inline DescribeGameSessionsRequest& WithAliasId(const Aws::String& value) { SetAliasId(value); return *this;}
151 
156  inline DescribeGameSessionsRequest& WithAliasId(Aws::String&& value) { SetAliasId(value); return *this;}
157 
162  inline DescribeGameSessionsRequest& WithAliasId(const char* value) { SetAliasId(value); return *this;}
163 
169  inline const Aws::String& GetStatusFilter() const{ return m_statusFilter; }
170 
176  inline void SetStatusFilter(const Aws::String& value) { m_statusFilterHasBeenSet = true; m_statusFilter = value; }
177 
183  inline void SetStatusFilter(Aws::String&& value) { m_statusFilterHasBeenSet = true; m_statusFilter = value; }
184 
190  inline void SetStatusFilter(const char* value) { m_statusFilterHasBeenSet = true; m_statusFilter.assign(value); }
191 
197  inline DescribeGameSessionsRequest& WithStatusFilter(const Aws::String& value) { SetStatusFilter(value); return *this;}
198 
204  inline DescribeGameSessionsRequest& WithStatusFilter(Aws::String&& value) { SetStatusFilter(value); return *this;}
205 
211  inline DescribeGameSessionsRequest& WithStatusFilter(const char* value) { SetStatusFilter(value); return *this;}
212 
217  inline int GetLimit() const{ return m_limit; }
218 
223  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
224 
229  inline DescribeGameSessionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
230 
236  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
237 
243  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
244 
250  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
251 
257  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
258 
264  inline DescribeGameSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
265 
271  inline DescribeGameSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
272 
278  inline DescribeGameSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
279 
280  private:
281  Aws::String m_fleetId;
282  bool m_fleetIdHasBeenSet;
283  Aws::String m_gameSessionId;
284  bool m_gameSessionIdHasBeenSet;
285  Aws::String m_aliasId;
286  bool m_aliasIdHasBeenSet;
287  Aws::String m_statusFilter;
288  bool m_statusFilterHasBeenSet;
289  int m_limit;
290  bool m_limitHasBeenSet;
291  Aws::String m_nextToken;
292  bool m_nextTokenHasBeenSet;
293  };
294 
295 } // namespace Model
296 } // namespace GameLift
297 } // namespace Aws
DescribeGameSessionsRequest & WithStatusFilter(Aws::String &&value)
DescribeGameSessionsRequest & WithNextToken(Aws::String &&value)
#define AWS_GAMELIFT_API
DescribeGameSessionsRequest & WithStatusFilter(const char *value)
DescribeGameSessionsRequest & WithGameSessionId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeGameSessionsRequest & WithAliasId(const Aws::String &value)
DescribeGameSessionsRequest & WithStatusFilter(const Aws::String &value)
DescribeGameSessionsRequest & WithLimit(int value)
DescribeGameSessionsRequest & WithGameSessionId(const Aws::String &value)
DescribeGameSessionsRequest & WithAliasId(Aws::String &&value)
DescribeGameSessionsRequest & WithFleetId(Aws::String &&value)
DescribeGameSessionsRequest & WithNextToken(const char *value)
DescribeGameSessionsRequest & WithFleetId(const char *value)
DescribeGameSessionsRequest & WithNextToken(const Aws::String &value)
DescribeGameSessionsRequest & WithFleetId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeGameSessionsRequest & WithAliasId(const char *value)
DescribeGameSessionsRequest & WithGameSessionId(const char *value)
JSON (JavaScript Object Notation).