AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ListComputeRequest.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#include <aws/gamelift/model/ListComputeInputStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API ListComputeRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListCompute"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
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>
46 ListComputeRequest& WithFleetId(FleetIdT&& value) {
47 SetFleetId(std::forward<FleetIdT>(value));
48 return *this;
49 }
51
53
59 inline const Aws::String& GetLocation() const { return m_location; }
60 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
61 template <typename LocationT = Aws::String>
62 void SetLocation(LocationT&& value) {
63 m_locationHasBeenSet = true;
64 m_location = std::forward<LocationT>(value);
65 }
66 template <typename LocationT = Aws::String>
67 ListComputeRequest& WithLocation(LocationT&& value) {
68 SetLocation(std::forward<LocationT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetContainerGroupDefinitionName() const { return m_containerGroupDefinitionName; }
79 inline bool ContainerGroupDefinitionNameHasBeenSet() const { return m_containerGroupDefinitionNameHasBeenSet; }
80 template <typename ContainerGroupDefinitionNameT = Aws::String>
81 void SetContainerGroupDefinitionName(ContainerGroupDefinitionNameT&& value) {
82 m_containerGroupDefinitionNameHasBeenSet = true;
83 m_containerGroupDefinitionName = std::forward<ContainerGroupDefinitionNameT>(value);
84 }
85 template <typename ContainerGroupDefinitionNameT = Aws::String>
86 ListComputeRequest& WithContainerGroupDefinitionName(ContainerGroupDefinitionNameT&& value) {
87 SetContainerGroupDefinitionName(std::forward<ContainerGroupDefinitionNameT>(value));
88 return *this;
89 }
91
93
101 inline ListComputeInputStatus GetComputeStatus() const { return m_computeStatus; }
102 inline bool ComputeStatusHasBeenSet() const { return m_computeStatusHasBeenSet; }
104 m_computeStatusHasBeenSet = true;
105 m_computeStatus = value;
106 }
108 SetComputeStatus(value);
109 return *this;
110 }
112
114
118 inline int GetLimit() const { return m_limit; }
119 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
120 inline void SetLimit(int value) {
121 m_limitHasBeenSet = true;
122 m_limit = value;
123 }
124 inline ListComputeRequest& WithLimit(int value) {
125 SetLimit(value);
126 return *this;
127 }
129
131
136 inline const Aws::String& GetNextToken() const { return m_nextToken; }
137 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 template <typename NextTokenT = Aws::String>
139 void SetNextToken(NextTokenT&& value) {
140 m_nextTokenHasBeenSet = true;
141 m_nextToken = std::forward<NextTokenT>(value);
142 }
143 template <typename NextTokenT = Aws::String>
144 ListComputeRequest& WithNextToken(NextTokenT&& value) {
145 SetNextToken(std::forward<NextTokenT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_fleetId;
151
152 Aws::String m_location;
153
154 Aws::String m_containerGroupDefinitionName;
155
157
158 int m_limit{0};
159
160 Aws::String m_nextToken;
161 bool m_fleetIdHasBeenSet = false;
162 bool m_locationHasBeenSet = false;
163 bool m_containerGroupDefinitionNameHasBeenSet = false;
164 bool m_computeStatusHasBeenSet = false;
165 bool m_limitHasBeenSet = false;
166 bool m_nextTokenHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace GameLift
171} // namespace Aws
ListComputeRequest & WithFleetId(FleetIdT &&value)
ListComputeRequest & WithContainerGroupDefinitionName(ContainerGroupDefinitionNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API ListComputeRequest()=default
ListComputeRequest & WithNextToken(NextTokenT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::String & GetContainerGroupDefinitionName() const
void SetContainerGroupDefinitionName(ContainerGroupDefinitionNameT &&value)
ListComputeRequest & WithLocation(LocationT &&value)
ListComputeRequest & WithComputeStatus(ListComputeInputStatus value)
void SetComputeStatus(ListComputeInputStatus value)
ListComputeRequest & WithLimit(int value)
ListComputeInputStatus GetComputeStatus() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String