AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeGameServerInstancesRequest.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 "DescribeGameServerInstances"; }
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 DescribeGameServerInstancesRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
73 
78  inline DescribeGameServerInstancesRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
79 
84  inline DescribeGameServerInstancesRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
85 
86 
93  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
94 
101  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
102 
109  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
110 
117  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
118 
125  inline DescribeGameServerInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
126 
133  inline DescribeGameServerInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
134 
141  inline DescribeGameServerInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
142 
149  inline DescribeGameServerInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
150 
157  inline DescribeGameServerInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
158 
159 
164  inline int GetLimit() const{ return m_limit; }
165 
170  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
171 
176  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
177 
182  inline DescribeGameServerInstancesRequest& WithLimit(int value) { SetLimit(value); return *this;}
183 
184 
190  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
191 
197  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
198 
204  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
205 
211  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
212 
218  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
219 
225  inline DescribeGameServerInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
226 
232  inline DescribeGameServerInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
233 
239  inline DescribeGameServerInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
240 
241  private:
242 
243  Aws::String m_gameServerGroupName;
244  bool m_gameServerGroupNameHasBeenSet;
245 
246  Aws::Vector<Aws::String> m_instanceIds;
247  bool m_instanceIdsHasBeenSet;
248 
249  int m_limit;
250  bool m_limitHasBeenSet;
251 
252  Aws::String m_nextToken;
253  bool m_nextTokenHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace GameLift
258 } // namespace Aws
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithLimit
DescribeGameServerInstancesRequest & WithLimit(int value)
Definition: DescribeGameServerInstancesRequest.h:182
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithGameServerGroupName
DescribeGameServerInstancesRequest & WithGameServerGroupName(const Aws::String &value)
Definition: DescribeGameServerInstancesRequest.h:72
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: DescribeGameServerInstancesRequest.h:54
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithInstanceIds
DescribeGameServerInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeGameServerInstancesRequest.h:125
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeGameServerInstancesRequest.h:31
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeGameServerInstancesRequest.h:204
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithInstanceIds
DescribeGameServerInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeGameServerInstancesRequest.h:133
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeGameServerInstancesRequest.h:190
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeGameServerInstancesRequest.h:211
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithNextToken
DescribeGameServerInstancesRequest & WithNextToken(const char *value)
Definition: DescribeGameServerInstancesRequest.h:239
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: DescribeGameServerInstancesRequest.h:66
GameLift_EXPORTS.h
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeGameServerInstancesRequest.h:218
GameLiftRequest.h
Aws::GameLift::Model::DescribeGameServerInstancesRequest::AddInstanceIds
DescribeGameServerInstancesRequest & AddInstanceIds(const Aws::String &value)
Definition: DescribeGameServerInstancesRequest.h:141
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: DescribeGameServerInstancesRequest.h:42
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: DescribeGameServerInstancesRequest.h:60
Aws::GameLift::Model::DescribeGameServerInstancesRequest::AddInstanceIds
DescribeGameServerInstancesRequest & AddInstanceIds(Aws::String &&value)
Definition: DescribeGameServerInstancesRequest.h:149
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeGameServerInstancesRequest.h:117
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithGameServerGroupName
DescribeGameServerInstancesRequest & WithGameServerGroupName(Aws::String &&value)
Definition: DescribeGameServerInstancesRequest.h:78
Aws::GameLift::Model::DescribeGameServerInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeGameServerInstancesRequest.h:197
Aws::GameLift::Model::DescribeGameServerInstancesRequest::AddInstanceIds
DescribeGameServerInstancesRequest & AddInstanceIds(const char *value)
Definition: DescribeGameServerInstancesRequest.h:157
Aws::GameLift::Model::DescribeGameServerInstancesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeGameServerInstancesRequest.h:170
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: DescribeGameServerInstancesRequest.h:48
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GetLimit
int GetLimit() const
Definition: DescribeGameServerInstancesRequest.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: DescribeGameServerInstancesRequest.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DescribeGameServerInstancesRequest::DescribeGameServerInstancesRequest
DescribeGameServerInstancesRequest()
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetLimit
void SetLimit(int value)
Definition: DescribeGameServerInstancesRequest.h:176
Aws::GameLift::Model::DescribeGameServerInstancesRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: DescribeGameServerInstancesRequest.h:101
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithNextToken
DescribeGameServerInstancesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeGameServerInstancesRequest.h:225
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithGameServerGroupName
DescribeGameServerInstancesRequest & WithGameServerGroupName(const char *value)
Definition: DescribeGameServerInstancesRequest.h:84
Aws::GameLift::Model::DescribeGameServerInstancesRequest
Definition: DescribeGameServerInstancesRequest.h:23
Aws::GameLift::Model::DescribeGameServerInstancesRequest::WithNextToken
DescribeGameServerInstancesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeGameServerInstancesRequest.h:232
Aws::GameLift::Model::DescribeGameServerInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::DescribeGameServerInstancesRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeGameServerInstancesRequest.h:109