AWS SDK for C++  1.9.103
AWS SDK for C++
DescribeInstancesRequest.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 "DescribeInstances"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
45 
50  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
51 
56  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
57 
62  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
63 
68  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
69 
74  inline DescribeInstancesRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
75 
80  inline DescribeInstancesRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
81 
86  inline DescribeInstancesRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
87 
88 
93  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
94 
99  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
100 
105  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
106 
111  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
112 
117  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
118 
123  inline DescribeInstancesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
124 
129  inline DescribeInstancesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
130 
135  inline DescribeInstancesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
136 
137 
142  inline int GetLimit() const{ return m_limit; }
143 
148  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
149 
154  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
155 
160  inline DescribeInstancesRequest& WithLimit(int value) { SetLimit(value); return *this;}
161 
162 
168  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
169 
175  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
176 
182  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
183 
189  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
190 
196  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
197 
203  inline DescribeInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
204 
210  inline DescribeInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
211 
217  inline DescribeInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
218 
219 
224  inline const Aws::String& GetLocation() const{ return m_location; }
225 
230  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
231 
236  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
237 
242  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
243 
248  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
249 
254  inline DescribeInstancesRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
255 
260  inline DescribeInstancesRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
261 
266  inline DescribeInstancesRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
267 
268  private:
269 
270  Aws::String m_fleetId;
271  bool m_fleetIdHasBeenSet;
272 
273  Aws::String m_instanceId;
274  bool m_instanceIdHasBeenSet;
275 
276  int m_limit;
277  bool m_limitHasBeenSet;
278 
279  Aws::String m_nextToken;
280  bool m_nextTokenHasBeenSet;
281 
282  Aws::String m_location;
283  bool m_locationHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace GameLift
288 } // namespace Aws
Aws::GameLift::Model::DescribeInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstancesRequest.h:33
Aws::GameLift::Model::DescribeInstancesRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DescribeInstancesRequest.h:99
Aws::GameLift::Model::DescribeInstancesRequest::WithInstanceId
DescribeInstancesRequest & WithInstanceId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:123
Aws::GameLift::Model::DescribeInstancesRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:105
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::DescribeInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstancesRequest.h:168
Aws::GameLift::Model::DescribeInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstancesRequest.h:182
Aws::GameLift::Model::DescribeInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::DescribeInstancesRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:62
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DescribeInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::DescribeInstancesRequest::DescribeInstancesRequest
DescribeInstancesRequest()
Aws::GameLift::Model::DescribeInstancesRequest::WithLocation
DescribeInstancesRequest & WithLocation(Aws::String &&value)
Definition: DescribeInstancesRequest.h:260
Aws::GameLift::Model::DescribeInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstancesRequest.h:196
Aws::GameLift::Model::DescribeInstancesRequest::WithInstanceId
DescribeInstancesRequest & WithInstanceId(const char *value)
Definition: DescribeInstancesRequest.h:135
Aws::GameLift::Model::DescribeInstancesRequest::WithLocation
DescribeInstancesRequest & WithLocation(const Aws::String &value)
Definition: DescribeInstancesRequest.h:254
Aws::GameLift::Model::DescribeInstancesRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DescribeInstancesRequest.h:93
Aws::GameLift::Model::DescribeInstancesRequest::WithNextToken
DescribeInstancesRequest & WithNextToken(const char *value)
Definition: DescribeInstancesRequest.h:217
Aws::GameLift::Model::DescribeInstancesRequest::GetLocation
const Aws::String & GetLocation() const
Definition: DescribeInstancesRequest.h:224
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::DescribeInstancesRequest::WithFleetId
DescribeInstancesRequest & WithFleetId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:74
Aws::GameLift::Model::DescribeInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstancesRequest.h:189
Aws::GameLift::Model::DescribeInstancesRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: DescribeInstancesRequest.h:50
Aws::GameLift::Model::DescribeInstancesRequest::WithNextToken
DescribeInstancesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeInstancesRequest.h:203
Aws::GameLift::Model::DescribeInstancesRequest::GetLimit
int GetLimit() const
Definition: DescribeInstancesRequest.h:142
Aws::GameLift::Model::DescribeInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeInstancesRequest.h:175
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::DescribeInstancesRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: DescribeInstancesRequest.h:44
AWSString.h
Aws::GameLift::Model::DescribeInstancesRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: DescribeInstancesRequest.h:230
Aws::GameLift::Model::DescribeInstancesRequest::WithNextToken
DescribeInstancesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeInstancesRequest.h:210
Aws::GameLift::Model::DescribeInstancesRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: DescribeInstancesRequest.h:242
Aws::GameLift::Model::DescribeInstancesRequest::WithLocation
DescribeInstancesRequest & WithLocation(const char *value)
Definition: DescribeInstancesRequest.h:266
Aws::GameLift::Model::DescribeInstancesRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DescribeInstancesRequest.h:56
Aws::GameLift::Model::DescribeInstancesRequest::SetFleetId
void SetFleetId(const char *value)
Definition: DescribeInstancesRequest.h:68
Aws::GameLift::Model::DescribeInstancesRequest::SetLocation
void SetLocation(const char *value)
Definition: DescribeInstancesRequest.h:248
Aws::GameLift::Model::DescribeInstancesRequest::WithFleetId
DescribeInstancesRequest & WithFleetId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:80
Aws::GameLift::Model::DescribeInstancesRequest::WithInstanceId
DescribeInstancesRequest & WithInstanceId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:129
Aws::GameLift::Model::DescribeInstancesRequest::LimitHasBeenSet
bool LimitHasBeenSet() const
Definition: DescribeInstancesRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::DescribeInstancesRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DescribeInstancesRequest.h:111
Aws::GameLift::Model::DescribeInstancesRequest
Definition: DescribeInstancesRequest.h:25
Aws::GameLift::Model::DescribeInstancesRequest::SetLimit
void SetLimit(int value)
Definition: DescribeInstancesRequest.h:154
Aws::GameLift::Model::DescribeInstancesRequest::WithLimit
DescribeInstancesRequest & WithLimit(int value)
Definition: DescribeInstancesRequest.h:160
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DescribeInstancesRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: DescribeInstancesRequest.h:236
Aws::GameLift::Model::DescribeInstancesRequest::WithFleetId
DescribeInstancesRequest & WithFleetId(const char *value)
Definition: DescribeInstancesRequest.h:86
Aws::GameLift::Model::DescribeInstancesRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DescribeInstancesRequest.h:117