AWS SDK for C++  1.8.71
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 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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  private:
220 
221  Aws::String m_fleetId;
222  bool m_fleetIdHasBeenSet;
223 
224  Aws::String m_instanceId;
225  bool m_instanceIdHasBeenSet;
226 
227  int m_limit;
228  bool m_limitHasBeenSet;
229 
230  Aws::String m_nextToken;
231  bool m_nextTokenHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace GameLift
236 } // namespace Aws
DescribeInstancesRequest & WithInstanceId(const char *value)
#define AWS_GAMELIFT_API
DescribeInstancesRequest & WithFleetId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DescribeInstancesRequest & WithFleetId(const Aws::String &value)
DescribeInstancesRequest & WithLimit(int value)
DescribeInstancesRequest & WithInstanceId(const Aws::String &value)
DescribeInstancesRequest & WithNextToken(const Aws::String &value)
DescribeInstancesRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeInstancesRequest & WithInstanceId(Aws::String &&value)
DescribeInstancesRequest & WithNextToken(Aws::String &&value)
DescribeInstancesRequest & WithFleetId(const char *value)