AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
DescribeInstancesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace GameLift {
15namespace Model {
16
20 public:
21 AWS_GAMELIFT_API DescribeInstancesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DescribeInstances"; }
28
29 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetFleetId() const { return m_fleetId; }
39 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
40 template <typename FleetIdT = Aws::String>
41 void SetFleetId(FleetIdT&& value) {
42 m_fleetIdHasBeenSet = true;
43 m_fleetId = std::forward<FleetIdT>(value);
44 }
45 template <typename FleetIdT = Aws::String>
47 SetFleetId(std::forward<FleetIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 template <typename InstanceIdT = Aws::String>
60 void SetInstanceId(InstanceIdT&& value) {
61 m_instanceIdHasBeenSet = true;
62 m_instanceId = std::forward<InstanceIdT>(value);
63 }
64 template <typename InstanceIdT = Aws::String>
66 SetInstanceId(std::forward<InstanceIdT>(value));
67 return *this;
68 }
70
72
76 inline int GetLimit() const { return m_limit; }
77 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
78 inline void SetLimit(int value) {
79 m_limitHasBeenSet = true;
80 m_limit = value;
81 }
83 SetLimit(value);
84 return *this;
85 }
87
89
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 template <typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) {
98 m_nextTokenHasBeenSet = true;
99 m_nextToken = std::forward<NextTokenT>(value);
100 }
101 template <typename NextTokenT = Aws::String>
103 SetNextToken(std::forward<NextTokenT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetLocation() const { return m_location; }
114 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
115 template <typename LocationT = Aws::String>
116 void SetLocation(LocationT&& value) {
117 m_locationHasBeenSet = true;
118 m_location = std::forward<LocationT>(value);
119 }
120 template <typename LocationT = Aws::String>
122 SetLocation(std::forward<LocationT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_fleetId;
128 bool m_fleetIdHasBeenSet = false;
129
130 Aws::String m_instanceId;
131 bool m_instanceIdHasBeenSet = false;
132
133 int m_limit{0};
134 bool m_limitHasBeenSet = false;
135
136 Aws::String m_nextToken;
137 bool m_nextTokenHasBeenSet = false;
138
139 Aws::String m_location;
140 bool m_locationHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace GameLift
145} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeInstancesRequest & WithLocation(LocationT &&value)
AWS_GAMELIFT_API DescribeInstancesRequest()=default
virtual const char * GetServiceRequestName() const override
DescribeInstancesRequest & WithNextToken(NextTokenT &&value)
DescribeInstancesRequest & WithInstanceId(InstanceIdT &&value)
DescribeInstancesRequest & WithLimit(int value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
DescribeInstancesRequest & WithFleetId(FleetIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String