AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListInstancesRequest.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/InstanceFleetType.h>
12#include <aws/elasticmapreduce/model/InstanceGroupType.h>
13#include <aws/elasticmapreduce/model/InstanceState.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EMR
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_EMR_API ListInstancesRequest();
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_EMR_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
49 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
50 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
51 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
52 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
53 inline ListInstancesRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
54 inline ListInstancesRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
55 inline ListInstancesRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
57
59
62 inline const Aws::String& GetInstanceGroupId() const{ return m_instanceGroupId; }
63 inline bool InstanceGroupIdHasBeenSet() const { return m_instanceGroupIdHasBeenSet; }
64 inline void SetInstanceGroupId(const Aws::String& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = value; }
65 inline void SetInstanceGroupId(Aws::String&& value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId = std::move(value); }
66 inline void SetInstanceGroupId(const char* value) { m_instanceGroupIdHasBeenSet = true; m_instanceGroupId.assign(value); }
67 inline ListInstancesRequest& WithInstanceGroupId(const Aws::String& value) { SetInstanceGroupId(value); return *this;}
68 inline ListInstancesRequest& WithInstanceGroupId(Aws::String&& value) { SetInstanceGroupId(std::move(value)); return *this;}
69 inline ListInstancesRequest& WithInstanceGroupId(const char* value) { SetInstanceGroupId(value); return *this;}
71
73
76 inline const Aws::Vector<InstanceGroupType>& GetInstanceGroupTypes() const{ return m_instanceGroupTypes; }
77 inline bool InstanceGroupTypesHasBeenSet() const { return m_instanceGroupTypesHasBeenSet; }
78 inline void SetInstanceGroupTypes(const Aws::Vector<InstanceGroupType>& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes = value; }
79 inline void SetInstanceGroupTypes(Aws::Vector<InstanceGroupType>&& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes = std::move(value); }
82 inline ListInstancesRequest& AddInstanceGroupTypes(const InstanceGroupType& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes.push_back(value); return *this; }
83 inline ListInstancesRequest& AddInstanceGroupTypes(InstanceGroupType&& value) { m_instanceGroupTypesHasBeenSet = true; m_instanceGroupTypes.push_back(std::move(value)); return *this; }
85
87
90 inline const Aws::String& GetInstanceFleetId() const{ return m_instanceFleetId; }
91 inline bool InstanceFleetIdHasBeenSet() const { return m_instanceFleetIdHasBeenSet; }
92 inline void SetInstanceFleetId(const Aws::String& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = value; }
93 inline void SetInstanceFleetId(Aws::String&& value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId = std::move(value); }
94 inline void SetInstanceFleetId(const char* value) { m_instanceFleetIdHasBeenSet = true; m_instanceFleetId.assign(value); }
95 inline ListInstancesRequest& WithInstanceFleetId(const Aws::String& value) { SetInstanceFleetId(value); return *this;}
96 inline ListInstancesRequest& WithInstanceFleetId(Aws::String&& value) { SetInstanceFleetId(std::move(value)); return *this;}
97 inline ListInstancesRequest& WithInstanceFleetId(const char* value) { SetInstanceFleetId(value); return *this;}
99
101
104 inline const InstanceFleetType& GetInstanceFleetType() const{ return m_instanceFleetType; }
105 inline bool InstanceFleetTypeHasBeenSet() const { return m_instanceFleetTypeHasBeenSet; }
106 inline void SetInstanceFleetType(const InstanceFleetType& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = value; }
107 inline void SetInstanceFleetType(InstanceFleetType&& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = std::move(value); }
109 inline ListInstancesRequest& WithInstanceFleetType(InstanceFleetType&& value) { SetInstanceFleetType(std::move(value)); return *this;}
111
113
117 inline const Aws::Vector<InstanceState>& GetInstanceStates() const{ return m_instanceStates; }
118 inline bool InstanceStatesHasBeenSet() const { return m_instanceStatesHasBeenSet; }
119 inline void SetInstanceStates(const Aws::Vector<InstanceState>& value) { m_instanceStatesHasBeenSet = true; m_instanceStates = value; }
120 inline void SetInstanceStates(Aws::Vector<InstanceState>&& value) { m_instanceStatesHasBeenSet = true; m_instanceStates = std::move(value); }
122 inline ListInstancesRequest& WithInstanceStates(Aws::Vector<InstanceState>&& value) { SetInstanceStates(std::move(value)); return *this;}
123 inline ListInstancesRequest& AddInstanceStates(const InstanceState& value) { m_instanceStatesHasBeenSet = true; m_instanceStates.push_back(value); return *this; }
124 inline ListInstancesRequest& AddInstanceStates(InstanceState&& value) { m_instanceStatesHasBeenSet = true; m_instanceStates.push_back(std::move(value)); return *this; }
126
128
131 inline const Aws::String& GetMarker() const{ return m_marker; }
132 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
133 inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
134 inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
135 inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
136 inline ListInstancesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
137 inline ListInstancesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
138 inline ListInstancesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
140 private:
141
142 Aws::String m_clusterId;
143 bool m_clusterIdHasBeenSet = false;
144
145 Aws::String m_instanceGroupId;
146 bool m_instanceGroupIdHasBeenSet = false;
147
148 Aws::Vector<InstanceGroupType> m_instanceGroupTypes;
149 bool m_instanceGroupTypesHasBeenSet = false;
150
151 Aws::String m_instanceFleetId;
152 bool m_instanceFleetIdHasBeenSet = false;
153
154 InstanceFleetType m_instanceFleetType;
155 bool m_instanceFleetTypeHasBeenSet = false;
156
157 Aws::Vector<InstanceState> m_instanceStates;
158 bool m_instanceStatesHasBeenSet = false;
159
160 Aws::String m_marker;
161 bool m_markerHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace EMR
166} // namespace Aws
ListInstancesRequest & WithClusterId(const Aws::String &value)
void SetInstanceFleetId(const Aws::String &value)
AWS_EMR_API Aws::String SerializePayload() const override
ListInstancesRequest & WithInstanceFleetType(const InstanceFleetType &value)
ListInstancesRequest & WithInstanceGroupId(Aws::String &&value)
void SetInstanceGroupId(const Aws::String &value)
ListInstancesRequest & AddInstanceGroupTypes(InstanceGroupType &&value)
ListInstancesRequest & AddInstanceStates(const InstanceState &value)
ListInstancesRequest & WithMarker(const Aws::String &value)
ListInstancesRequest & WithInstanceGroupTypes(const Aws::Vector< InstanceGroupType > &value)
void SetInstanceFleetType(InstanceFleetType &&value)
void SetInstanceStates(Aws::Vector< InstanceState > &&value)
ListInstancesRequest & WithInstanceFleetType(InstanceFleetType &&value)
ListInstancesRequest & WithInstanceFleetId(const char *value)
ListInstancesRequest & AddInstanceStates(InstanceState &&value)
const Aws::String & GetInstanceGroupId() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetInstanceFleetId() const
ListInstancesRequest & WithInstanceFleetId(const Aws::String &value)
void SetClusterId(const Aws::String &value)
ListInstancesRequest & WithClusterId(const char *value)
ListInstancesRequest & AddInstanceGroupTypes(const InstanceGroupType &value)
const InstanceFleetType & GetInstanceFleetType() const
const Aws::Vector< InstanceGroupType > & GetInstanceGroupTypes() const
ListInstancesRequest & WithInstanceStates(Aws::Vector< InstanceState > &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetInstanceGroupId(Aws::String &&value)
ListInstancesRequest & WithInstanceFleetId(Aws::String &&value)
ListInstancesRequest & WithInstanceGroupTypes(Aws::Vector< InstanceGroupType > &&value)
const Aws::Vector< InstanceState > & GetInstanceStates() const
const Aws::String & GetClusterId() const
ListInstancesRequest & WithMarker(const char *value)
void SetInstanceFleetType(const InstanceFleetType &value)
ListInstancesRequest & WithInstanceGroupId(const Aws::String &value)
void SetInstanceStates(const Aws::Vector< InstanceState > &value)
void SetInstanceGroupTypes(const Aws::Vector< InstanceGroupType > &value)
void SetMarker(const Aws::String &value)
ListInstancesRequest & WithInstanceGroupId(const char *value)
ListInstancesRequest & WithClusterId(Aws::String &&value)
ListInstancesRequest & WithInstanceStates(const Aws::Vector< InstanceState > &value)
void SetInstanceFleetId(Aws::String &&value)
ListInstancesRequest & WithMarker(Aws::String &&value)
void SetInstanceGroupTypes(Aws::Vector< InstanceGroupType > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector