AWS SDK for C++  1.9.108
AWS SDK for C++
ListGameServersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GameLift
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "ListGameServers"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
43 
48  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
49 
54  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
55 
60  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
61 
66  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
67 
72  inline ListGameServersRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
73 
78  inline ListGameServersRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
79 
84  inline ListGameServersRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
85 
86 
93  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
94 
101  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
102 
109  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
110 
117  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
118 
125  inline ListGameServersRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
126 
133  inline ListGameServersRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
134 
135 
140  inline int GetLimit() const{ return m_limit; }
141 
146  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
147 
152  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
153 
158  inline ListGameServersRequest& WithLimit(int value) { SetLimit(value); return *this;}
159 
160 
166  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
167 
173  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
174 
180  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
181 
187  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
188 
194  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
195 
201  inline ListGameServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
202 
208  inline ListGameServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
209 
215  inline ListGameServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
216 
217  private:
218 
219  Aws::String m_gameServerGroupName;
220  bool m_gameServerGroupNameHasBeenSet;
221 
222  SortOrder m_sortOrder;
223  bool m_sortOrderHasBeenSet;
224 
225  int m_limit;
226  bool m_limitHasBeenSet;
227 
228  Aws::String m_nextToken;
229  bool m_nextTokenHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace GameLift
234 } // namespace Aws
Aws::GameLift::Model::ListGameServersRequest::WithNextToken
ListGameServersRequest & WithNextToken(const char *value)
Definition: ListGameServersRequest.h:215
Aws::GameLift::Model::ListGameServersRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: ListGameServersRequest.h:48
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::ListGameServersRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: ListGameServersRequest.h:66
Aws::GameLift::Model::ListGameServersRequest::WithLimit
ListGameServersRequest & WithLimit(int value)
Definition: ListGameServersRequest.h:158
Aws::GameLift::Model::ListGameServersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ListGameServersRequest::ListGameServersRequest
ListGameServersRequest()
Aws::GameLift::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws::GameLift::Model::ListGameServersRequest::SetLimit
void SetLimit(int value)
Definition: ListGameServersRequest.h:152
Aws::GameLift::Model::ListGameServersRequest::WithGameServerGroupName
ListGameServersRequest & WithGameServerGroupName(const char *value)
Definition: ListGameServersRequest.h:84
Aws::GameLift::Model::ListGameServersRequest::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: ListGameServersRequest.h:117
Aws::GameLift::Model::ListGameServersRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: ListGameServersRequest.h:42
Aws::GameLift::Model::ListGameServersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListGameServersRequest.h:180
Aws::GameLift::Model::ListGameServersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListGameServersRequest.h:166
Aws::GameLift::Model::ListGameServersRequest::WithSortOrder
ListGameServersRequest & WithSortOrder(const SortOrder &value)
Definition: ListGameServersRequest.h:125
Aws::GameLift::Model::ListGameServersRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListGameServersRequest.h:146
Aws::GameLift::Model::ListGameServersRequest
Definition: ListGameServersRequest.h:23
Aws::GameLift::Model::ListGameServersRequest::WithNextToken
ListGameServersRequest & WithNextToken(Aws::String &&value)
Definition: ListGameServersRequest.h:208
GameLift_EXPORTS.h
Aws::GameLift::Model::ListGameServersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListGameServersRequest.h:31
GameLiftRequest.h
Aws::GameLift::Model::ListGameServersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListGameServersRequest.h:194
Aws::GameLift::Model::ListGameServersRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: ListGameServersRequest.h:54
Aws::GameLift::Model::ListGameServersRequest::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: ListGameServersRequest.h:101
Aws::GameLift::Model::ListGameServersRequest::WithGameServerGroupName
ListGameServersRequest & WithGameServerGroupName(Aws::String &&value)
Definition: ListGameServersRequest.h:78
Aws::GameLift::Model::ListGameServersRequest::GetLimit
int GetLimit() const
Definition: ListGameServersRequest.h:140
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::ListGameServersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListGameServersRequest.h:173
Aws::GameLift::Model::ListGameServersRequest::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: ListGameServersRequest.h:109
Aws::GameLift::Model::ListGameServersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListGameServersRequest.h:187
Aws::GameLift::Model::ListGameServersRequest::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: ListGameServersRequest.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::ListGameServersRequest::WithGameServerGroupName
ListGameServersRequest & WithGameServerGroupName(const Aws::String &value)
Definition: ListGameServersRequest.h:72
Aws::GameLift::Model::ListGameServersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::ListGameServersRequest::WithNextToken
ListGameServersRequest & WithNextToken(const Aws::String &value)
Definition: ListGameServersRequest.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::ListGameServersRequest::WithSortOrder
ListGameServersRequest & WithSortOrder(SortOrder &&value)
Definition: ListGameServersRequest.h:133
SortOrder.h
Aws::GameLift::Model::ListGameServersRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: ListGameServersRequest.h:60