AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeInstancesRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace GameLift
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_GAMELIFT_API DescribeInstancesRequest();
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 "DescribeInstances"; }
31
32 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
43 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
44 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
45 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
46 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
47 inline DescribeInstancesRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
48 inline DescribeInstancesRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
49 inline DescribeInstancesRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
51
53
57 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 inline DescribeInstancesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
63 inline DescribeInstancesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
64 inline DescribeInstancesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
66
68
72 inline int GetLimit() const{ return m_limit; }
73 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
74 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
75 inline DescribeInstancesRequest& WithLimit(int value) { SetLimit(value); return *this;}
77
79
84 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
87 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
88 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
89 inline DescribeInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
90 inline DescribeInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
91 inline DescribeInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93
95
99 inline const Aws::String& GetLocation() const{ return m_location; }
100 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
101 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
102 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
103 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
104 inline DescribeInstancesRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
105 inline DescribeInstancesRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
106 inline DescribeInstancesRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
108 private:
109
110 Aws::String m_fleetId;
111 bool m_fleetIdHasBeenSet = false;
112
113 Aws::String m_instanceId;
114 bool m_instanceIdHasBeenSet = false;
115
116 int m_limit;
117 bool m_limitHasBeenSet = false;
118
119 Aws::String m_nextToken;
120 bool m_nextTokenHasBeenSet = false;
121
122 Aws::String m_location;
123 bool m_locationHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace GameLift
128} // namespace Aws
DescribeInstancesRequest & WithInstanceId(const Aws::String &value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeInstancesRequest & WithFleetId(const char *value)
DescribeInstancesRequest & WithNextToken(const Aws::String &value)
DescribeInstancesRequest & WithLocation(Aws::String &&value)
DescribeInstancesRequest & WithInstanceId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeInstancesRequest & WithFleetId(Aws::String &&value)
DescribeInstancesRequest & WithNextToken(Aws::String &&value)
DescribeInstancesRequest & WithLocation(const char *value)
DescribeInstancesRequest & WithFleetId(const Aws::String &value)
DescribeInstancesRequest & WithLimit(int value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
DescribeInstancesRequest & WithLocation(const Aws::String &value)
DescribeInstancesRequest & WithInstanceId(const char *value)
DescribeInstancesRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String