AWS SDK for C++  1.9.19
AWS SDK for C++
ListInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace EMR
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "ListInstances"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
47  inline const Aws::String& GetClusterId() const{ return m_clusterId; }
48 
52  inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
53 
57  inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
58 
62  inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
63 
67  inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
68 
72  inline ListInstancesRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
73 
77  inline ListInstancesRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
78 
82  inline ListInstancesRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
83 
84 
88  inline const Aws::String& GetInstanceGroupId() const{ return m_instanceGroupId; }
89 
93  inline bool InstanceGroupIdHasBeenSet() const { return m_instanceGroupIdHasBeenSet; }
94 
98  inline void SetInstanceGroupId(const Aws::String& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = value; }
99 
103  inline void SetInstanceGroupId(Aws::String&& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = std::move(value); }
104 
108  inline void SetInstanceGroupId(const char* value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId.assign(value); }
109 
113  inline ListInstancesRequest& WithInstanceGroupId(const Aws::String& value) { SetInstanceGroupId(value); return *this;}
114 
118  inline ListInstancesRequest& WithInstanceGroupId(Aws::String&& value) { SetInstanceGroupId(std::move(value)); return *this;}
119 
123  inline ListInstancesRequest& WithInstanceGroupId(const char* value) { SetInstanceGroupId(value); return *this;}
124 
125 
129  inline const Aws::Vector<InstanceGroupType>& GetInstanceGroupTypes() const{ return m_instanceGroupTypes; }
130 
134  inline bool InstanceGroupTypesHasBeenSet() const { return m_instanceGroupTypesHasBeenSet; }
135 
139  inline void SetInstanceGroupTypes(const Aws::Vector<InstanceGroupType>& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes = value; }
140 
144  inline void SetInstanceGroupTypes(Aws::Vector<InstanceGroupType>&& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes = std::move(value); }
145 
149  inline ListInstancesRequest& WithInstanceGroupTypes(const Aws::Vector<InstanceGroupType>& value) { SetInstanceGroupTypes(value); return *this;}
150 
154  inline ListInstancesRequest& WithInstanceGroupTypes(Aws::Vector<InstanceGroupType>&& value) { SetInstanceGroupTypes(std::move(value)); return *this;}
155 
159  inline ListInstancesRequest& AddInstanceGroupTypes(const InstanceGroupType& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes.push_back(value); return *this; }
160 
164  inline ListInstancesRequest& AddInstanceGroupTypes(InstanceGroupType&& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes.push_back(std::move(value)); return *this; }
165 
166 
170  inline const Aws::String& GetInstanceFleetId() const{ return m_instanceFleetId; }
171 
175  inline bool InstanceFleetIdHasBeenSet() const { return m_instanceFleetIdHasBeenSet; }
176 
180  inline void SetInstanceFleetId(const Aws::String& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = value; }
181 
185  inline void SetInstanceFleetId(Aws::String&& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = std::move(value); }
186 
190  inline void SetInstanceFleetId(const char* value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId.assign(value); }
191 
195  inline ListInstancesRequest& WithInstanceFleetId(const Aws::String& value) { SetInstanceFleetId(value); return *this;}
196 
200  inline ListInstancesRequest& WithInstanceFleetId(Aws::String&& value) { SetInstanceFleetId(std::move(value)); return *this;}
201 
205  inline ListInstancesRequest& WithInstanceFleetId(const char* value) { SetInstanceFleetId(value); return *this;}
206 
207 
211  inline const InstanceFleetType& GetInstanceFleetType() const{ return m_instanceFleetType; }
212 
216  inline bool InstanceFleetTypeHasBeenSet() const { return m_instanceFleetTypeHasBeenSet; }
217 
221  inline void SetInstanceFleetType(const InstanceFleetType& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = value; }
222 
226  inline void SetInstanceFleetType(InstanceFleetType&& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = std::move(value); }
227 
231  inline ListInstancesRequest& WithInstanceFleetType(const InstanceFleetType& value) { SetInstanceFleetType(value); return *this;}
232 
236  inline ListInstancesRequest& WithInstanceFleetType(InstanceFleetType&& value) { SetInstanceFleetType(std::move(value)); return *this;}
237 
238 
243  inline const Aws::Vector<InstanceState>& GetInstanceStates() const{ return m_instanceStates; }
244 
249  inline bool InstanceStatesHasBeenSet() const { return m_instanceStatesHasBeenSet; }
250 
255  inline void SetInstanceStates(const Aws::Vector<InstanceState>& value) { m_instanceStatesHasBeenSet = true; m_instanceStates = value; }
256 
261  inline void SetInstanceStates(Aws::Vector<InstanceState>&& value) { m_instanceStatesHasBeenSet = true; m_instanceStates = std::move(value); }
262 
267  inline ListInstancesRequest& WithInstanceStates(const Aws::Vector<InstanceState>& value) { SetInstanceStates(value); return *this;}
268 
273  inline ListInstancesRequest& WithInstanceStates(Aws::Vector<InstanceState>&& value) { SetInstanceStates(std::move(value)); return *this;}
274 
279  inline ListInstancesRequest& AddInstanceStates(const InstanceState& value) { m_instanceStatesHasBeenSet = true; m_instanceStates.push_back(value); return *this; }
280 
285  inline ListInstancesRequest& AddInstanceStates(InstanceState&& value) { m_instanceStatesHasBeenSet = true; m_instanceStates.push_back(std::move(value)); return *this; }
286 
287 
291  inline const Aws::String& GetMarker() const{ return m_marker; }
292 
296  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
297 
301  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
302 
306  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
307 
311  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
312 
316  inline ListInstancesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
317 
321  inline ListInstancesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
322 
326  inline ListInstancesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
327 
328  private:
329 
330  Aws::String m_clusterId;
331  bool m_clusterIdHasBeenSet;
332 
333  Aws::String m_instanceGroupId;
334  bool m_instanceGroupIdHasBeenSet;
335 
336  Aws::Vector<InstanceGroupType> m_instanceGroupTypes;
337  bool m_instanceGroupTypesHasBeenSet;
338 
339  Aws::String m_instanceFleetId;
340  bool m_instanceFleetIdHasBeenSet;
341 
342  InstanceFleetType m_instanceFleetType;
343  bool m_instanceFleetTypeHasBeenSet;
344 
345  Aws::Vector<InstanceState> m_instanceStates;
346  bool m_instanceStatesHasBeenSet;
347 
348  Aws::String m_marker;
349  bool m_markerHasBeenSet;
350  };
351 
352 } // namespace Model
353 } // namespace EMR
354 } // namespace Aws
Aws::EMR::Model::ListInstancesRequest::GetInstanceGroupTypes
const Aws::Vector< InstanceGroupType > & GetInstanceGroupTypes() const
Definition: ListInstancesRequest.h:129
Aws::EMR::Model::ListInstancesRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListInstancesRequest.h:296
Aws::EMR::Model::ListInstancesRequest::WithInstanceFleetId
ListInstancesRequest & WithInstanceFleetId(const Aws::String &value)
Definition: ListInstancesRequest.h:195
Aws::EMR::Model::ListInstancesRequest::WithInstanceGroupId
ListInstancesRequest & WithInstanceGroupId(Aws::String &&value)
Definition: ListInstancesRequest.h:118
Aws::EMR::Model::ListInstancesRequest::WithClusterId
ListInstancesRequest & WithClusterId(const char *value)
Definition: ListInstancesRequest.h:82
Aws::EMR::Model::ListInstancesRequest::WithClusterId
ListInstancesRequest & WithClusterId(const Aws::String &value)
Definition: ListInstancesRequest.h:72
Aws::EMR::Model::ListInstancesRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListInstancesRequest.h:301
Aws::EMR::Model::ListInstancesRequest::SetInstanceGroupTypes
void SetInstanceGroupTypes(const Aws::Vector< InstanceGroupType > &value)
Definition: ListInstancesRequest.h:139
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::EMR::Model::ListInstancesRequest::ListInstancesRequest
ListInstancesRequest()
Aws::EMR::Model::ListInstancesRequest::InstanceStatesHasBeenSet
bool InstanceStatesHasBeenSet() const
Definition: ListInstancesRequest.h:249
EMR_EXPORTS.h
EMRRequest.h
Aws::EMR::Model::ListInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListInstancesRequest.h:37
Aws::EMR::Model::ListInstancesRequest::WithInstanceGroupId
ListInstancesRequest & WithInstanceGroupId(const Aws::String &value)
Definition: ListInstancesRequest.h:113
Aws::EMR::Model::ListInstancesRequest::WithInstanceFleetId
ListInstancesRequest & WithInstanceFleetId(const char *value)
Definition: ListInstancesRequest.h:205
Aws::EMR::Model::ListInstancesRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListInstancesRequest.h:291
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::ListInstancesRequest::SetInstanceStates
void SetInstanceStates(Aws::Vector< InstanceState > &&value)
Definition: ListInstancesRequest.h:261
Aws::EMR::Model::ListInstancesRequest::SetInstanceGroupId
void SetInstanceGroupId(const char *value)
Definition: ListInstancesRequest.h:108
Aws::EMR::Model::ListInstancesRequest::AddInstanceGroupTypes
ListInstancesRequest & AddInstanceGroupTypes(InstanceGroupType &&value)
Definition: ListInstancesRequest.h:164
Aws::EMR::Model::ListInstancesRequest::SetClusterId
void SetClusterId(const char *value)
Definition: ListInstancesRequest.h:67
Aws::EMR::Model::ListInstancesRequest::WithMarker
ListInstancesRequest & WithMarker(const Aws::String &value)
Definition: ListInstancesRequest.h:316
Aws::EMR::Model::ListInstancesRequest::GetInstanceStates
const Aws::Vector< InstanceState > & GetInstanceStates() const
Definition: ListInstancesRequest.h:243
AWSVector.h
Aws::EMR::Model::ListInstancesRequest::SetInstanceFleetType
void SetInstanceFleetType(const InstanceFleetType &value)
Definition: ListInstancesRequest.h:221
Aws::EMR::Model::ListInstancesRequest::AddInstanceStates
ListInstancesRequest & AddInstanceStates(const InstanceState &value)
Definition: ListInstancesRequest.h:279
Aws::EMR::Model::ListInstancesRequest::InstanceFleetTypeHasBeenSet
bool InstanceFleetTypeHasBeenSet() const
Definition: ListInstancesRequest.h:216
Aws::EMR::Model::ListInstancesRequest::SetInstanceFleetId
void SetInstanceFleetId(Aws::String &&value)
Definition: ListInstancesRequest.h:185
Aws::EMR::Model::ListInstancesRequest::WithInstanceFleetType
ListInstancesRequest & WithInstanceFleetType(InstanceFleetType &&value)
Definition: ListInstancesRequest.h:236
Aws::EMR::Model::ListInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::EMR::Model::ListInstancesRequest::WithInstanceStates
ListInstancesRequest & WithInstanceStates(const Aws::Vector< InstanceState > &value)
Definition: ListInstancesRequest.h:267
Aws::EMR::Model::ListInstancesRequest::GetInstanceFleetType
const InstanceFleetType & GetInstanceFleetType() const
Definition: ListInstancesRequest.h:211
InstanceState.h
Aws::EMR::Model::ListInstancesRequest::GetInstanceGroupId
const Aws::String & GetInstanceGroupId() const
Definition: ListInstancesRequest.h:88
Aws::EMR::Model::ListInstancesRequest::WithInstanceGroupTypes
ListInstancesRequest & WithInstanceGroupTypes(Aws::Vector< InstanceGroupType > &&value)
Definition: ListInstancesRequest.h:154
Aws::EMR::Model::ListInstancesRequest::InstanceFleetIdHasBeenSet
bool InstanceFleetIdHasBeenSet() const
Definition: ListInstancesRequest.h:175
Aws::EMR::EMRRequest
Definition: EMRRequest.h:17
Aws::EMR::Model::ListInstancesRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListInstancesRequest.h:306
Aws::EMR::Model::ListInstancesRequest::InstanceGroupTypesHasBeenSet
bool InstanceGroupTypesHasBeenSet() const
Definition: ListInstancesRequest.h:134
Aws::EMR::Model::ListInstancesRequest::WithInstanceFleetType
ListInstancesRequest & WithInstanceFleetType(const InstanceFleetType &value)
Definition: ListInstancesRequest.h:231
Aws::EMR::Model::ListInstancesRequest::GetClusterId
const Aws::String & GetClusterId() const
Definition: ListInstancesRequest.h:47
Aws::EMR::Model::ListInstancesRequest::AddInstanceGroupTypes
ListInstancesRequest & AddInstanceGroupTypes(const InstanceGroupType &value)
Definition: ListInstancesRequest.h:159
Aws::EMR::Model::InstanceFleetType
InstanceFleetType
Definition: InstanceFleetType.h:17
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
AWSString.h
Aws::EMR::Model::ListInstancesRequest::SetClusterId
void SetClusterId(const Aws::String &value)
Definition: ListInstancesRequest.h:57
Aws::EMR::Model::ListInstancesRequest::AddInstanceStates
ListInstancesRequest & AddInstanceStates(InstanceState &&value)
Definition: ListInstancesRequest.h:285
Aws::EMR::Model::ListInstancesRequest::SetClusterId
void SetClusterId(Aws::String &&value)
Definition: ListInstancesRequest.h:62
Aws::EMR::Model::ListInstancesRequest::WithMarker
ListInstancesRequest & WithMarker(Aws::String &&value)
Definition: ListInstancesRequest.h:321
Aws::EMR::Model::ListInstancesRequest::SetInstanceFleetId
void SetInstanceFleetId(const char *value)
Definition: ListInstancesRequest.h:190
Aws::EMR::Model::ListInstancesRequest::GetInstanceFleetId
const Aws::String & GetInstanceFleetId() const
Definition: ListInstancesRequest.h:170
Aws::EMR::Model::ListInstancesRequest::SetMarker
void SetMarker(const char *value)
Definition: ListInstancesRequest.h:311
Aws::EMR::Model::ListInstancesRequest::WithInstanceGroupId
ListInstancesRequest & WithInstanceGroupId(const char *value)
Definition: ListInstancesRequest.h:123
Aws::EMR::Model::ListInstancesRequest::InstanceGroupIdHasBeenSet
bool InstanceGroupIdHasBeenSet() const
Definition: ListInstancesRequest.h:93
Aws::EMR::Model::ListInstancesRequest::SetInstanceFleetId
void SetInstanceFleetId(const Aws::String &value)
Definition: ListInstancesRequest.h:180
Aws::EMR::Model::ListInstancesRequest::WithInstanceFleetId
ListInstancesRequest & WithInstanceFleetId(Aws::String &&value)
Definition: ListInstancesRequest.h:200
Aws::EMR::Model::ListInstancesRequest::WithMarker
ListInstancesRequest & WithMarker(const char *value)
Definition: ListInstancesRequest.h:326
Aws::EMR::Model::ListInstancesRequest::SetInstanceFleetType
void SetInstanceFleetType(InstanceFleetType &&value)
Definition: ListInstancesRequest.h:226
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::ListInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EMR::Model::ListInstancesRequest
Definition: ListInstancesRequest.h:29
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::ListInstancesRequest::SetInstanceGroupTypes
void SetInstanceGroupTypes(Aws::Vector< InstanceGroupType > &&value)
Definition: ListInstancesRequest.h:144
InstanceFleetType.h
InstanceGroupType.h
Aws::EMR::Model::ListInstancesRequest::SetInstanceGroupId
void SetInstanceGroupId(const Aws::String &value)
Definition: ListInstancesRequest.h:98
Aws::EMR::Model::ListInstancesRequest::SetInstanceGroupId
void SetInstanceGroupId(Aws::String &&value)
Definition: ListInstancesRequest.h:103
Aws::EMR::Model::InstanceGroupType
InstanceGroupType
Definition: InstanceGroupType.h:17
Aws::EMR::Model::InstanceState
InstanceState
Definition: InstanceState.h:17
Aws::EMR::Model::ListInstancesRequest::WithInstanceStates
ListInstancesRequest & WithInstanceStates(Aws::Vector< InstanceState > &&value)
Definition: ListInstancesRequest.h:273
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::ListInstancesRequest::SetInstanceStates
void SetInstanceStates(const Aws::Vector< InstanceState > &value)
Definition: ListInstancesRequest.h:255
Aws::EMR::Model::ListInstancesRequest::WithInstanceGroupTypes
ListInstancesRequest & WithInstanceGroupTypes(const Aws::Vector< InstanceGroupType > &value)
Definition: ListInstancesRequest.h:149
Aws::EMR::Model::ListInstancesRequest::WithClusterId
ListInstancesRequest & WithClusterId(Aws::String &&value)
Definition: ListInstancesRequest.h:77
Aws::EMR::Model::ListInstancesRequest::ClusterIdHasBeenSet
bool ClusterIdHasBeenSet() const
Definition: ListInstancesRequest.h:52