AWS SDK for C++  1.9.104
AWS SDK for C++
ListGameServerGroupsRequest.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 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListGameServerGroups"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline int GetLimit() const{ return m_limit; }
42 
47  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
48 
53  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
54 
59  inline ListGameServerGroupsRequest& WithLimit(int value) { SetLimit(value); return *this;}
60 
61 
67  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 
74  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 
81  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 
88  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
89 
95  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
96 
102  inline ListGameServerGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
103 
109  inline ListGameServerGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 
116  inline ListGameServerGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117 
118  private:
119 
120  int m_limit;
121  bool m_limitHasBeenSet;
122 
123  Aws::String m_nextToken;
124  bool m_nextTokenHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace GameLift
129 } // namespace Aws
Aws::GameLift::Model::ListGameServerGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::ListGameServerGroupsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListGameServerGroupsRequest.h:95
Aws::GameLift::Model::ListGameServerGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::ListGameServerGroupsRequest::ListGameServerGroupsRequest
ListGameServerGroupsRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ListGameServerGroupsRequest
Definition: ListGameServerGroupsRequest.h:22
Aws::GameLift::Model::ListGameServerGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListGameServerGroupsRequest.h:30
GameLift_EXPORTS.h
Aws::GameLift::Model::ListGameServerGroupsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListGameServerGroupsRequest.h:88
GameLiftRequest.h
Aws::GameLift::Model::ListGameServerGroupsRequest::WithNextToken
ListGameServerGroupsRequest & WithNextToken(const char *value)
Definition: ListGameServerGroupsRequest.h:116
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::ListGameServerGroupsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListGameServerGroupsRequest.h:74
Aws::GameLift::Model::ListGameServerGroupsRequest::WithNextToken
ListGameServerGroupsRequest & WithNextToken(Aws::String &&value)
Definition: ListGameServerGroupsRequest.h:109
Aws::GameLift::Model::ListGameServerGroupsRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: ListGameServerGroupsRequest.h:47
Aws::GameLift::Model::ListGameServerGroupsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListGameServerGroupsRequest.h:67
Aws::GameLift::Model::ListGameServerGroupsRequest::GetLimit
int GetLimit() const
Definition: ListGameServerGroupsRequest.h:41
Aws::GameLift::Model::ListGameServerGroupsRequest::WithLimit
ListGameServerGroupsRequest & WithLimit(int value)
Definition: ListGameServerGroupsRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::ListGameServerGroupsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListGameServerGroupsRequest.h:81
Aws::GameLift::Model::ListGameServerGroupsRequest::SetLimit
void SetLimit(int value)
Definition: ListGameServerGroupsRequest.h:53
Aws::GameLift::Model::ListGameServerGroupsRequest::WithNextToken
ListGameServerGroupsRequest & WithNextToken(const Aws::String &value)
Definition: ListGameServerGroupsRequest.h:102