AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceFleet.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/InstanceFleetStatus.h>
10#include <aws/elasticmapreduce/model/InstanceFleetType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/InstanceFleetProvisioningSpecifications.h>
13#include <aws/elasticmapreduce/model/InstanceFleetResizingSpecifications.h>
14#include <aws/elasticmapreduce/model/InstanceTypeSpecification.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace EMR
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_EMR_API InstanceFleet();
49
50
52
55 inline const Aws::String& GetId() const{ return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
59 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
60 inline InstanceFleet& WithId(const Aws::String& value) { SetId(value); return *this;}
61 inline InstanceFleet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
62 inline InstanceFleet& WithId(const char* value) { SetId(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline InstanceFleet& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline InstanceFleet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline InstanceFleet& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const InstanceFleetStatus& GetStatus() const{ return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(const InstanceFleetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
86 inline void SetStatus(InstanceFleetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
87 inline InstanceFleet& WithStatus(const InstanceFleetStatus& value) { SetStatus(value); return *this;}
88 inline InstanceFleet& WithStatus(InstanceFleetStatus&& value) { SetStatus(std::move(value)); return *this;}
90
92
96 inline const InstanceFleetType& GetInstanceFleetType() const{ return m_instanceFleetType; }
97 inline bool InstanceFleetTypeHasBeenSet() const { return m_instanceFleetTypeHasBeenSet; }
98 inline void SetInstanceFleetType(const InstanceFleetType& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = value; }
99 inline void SetInstanceFleetType(InstanceFleetType&& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = std::move(value); }
100 inline InstanceFleet& WithInstanceFleetType(const InstanceFleetType& value) { SetInstanceFleetType(value); return *this;}
101 inline InstanceFleet& WithInstanceFleetType(InstanceFleetType&& value) { SetInstanceFleetType(std::move(value)); return *this;}
103
105
126 inline int GetTargetOnDemandCapacity() const{ return m_targetOnDemandCapacity; }
127 inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
128 inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
129 inline InstanceFleet& WithTargetOnDemandCapacity(int value) { SetTargetOnDemandCapacity(value); return *this;}
131
133
153 inline int GetTargetSpotCapacity() const{ return m_targetSpotCapacity; }
154 inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
155 inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
156 inline InstanceFleet& WithTargetSpotCapacity(int value) { SetTargetSpotCapacity(value); return *this;}
158
160
165 inline int GetProvisionedOnDemandCapacity() const{ return m_provisionedOnDemandCapacity; }
166 inline bool ProvisionedOnDemandCapacityHasBeenSet() const { return m_provisionedOnDemandCapacityHasBeenSet; }
167 inline void SetProvisionedOnDemandCapacity(int value) { m_provisionedOnDemandCapacityHasBeenSet = true; m_provisionedOnDemandCapacity = value; }
170
172
177 inline int GetProvisionedSpotCapacity() const{ return m_provisionedSpotCapacity; }
178 inline bool ProvisionedSpotCapacityHasBeenSet() const { return m_provisionedSpotCapacityHasBeenSet; }
179 inline void SetProvisionedSpotCapacity(int value) { m_provisionedSpotCapacityHasBeenSet = true; m_provisionedSpotCapacity = value; }
180 inline InstanceFleet& WithProvisionedSpotCapacity(int value) { SetProvisionedSpotCapacity(value); return *this;}
182
184
188 inline const Aws::Vector<InstanceTypeSpecification>& GetInstanceTypeSpecifications() const{ return m_instanceTypeSpecifications; }
189 inline bool InstanceTypeSpecificationsHasBeenSet() const { return m_instanceTypeSpecificationsHasBeenSet; }
190 inline void SetInstanceTypeSpecifications(const Aws::Vector<InstanceTypeSpecification>& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = value; }
191 inline void SetInstanceTypeSpecifications(Aws::Vector<InstanceTypeSpecification>&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = std::move(value); }
194 inline InstanceFleet& AddInstanceTypeSpecifications(const InstanceTypeSpecification& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(value); return *this; }
195 inline InstanceFleet& AddInstanceTypeSpecifications(InstanceTypeSpecification&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(std::move(value)); return *this; }
197
199
202 inline const InstanceFleetProvisioningSpecifications& GetLaunchSpecifications() const{ return m_launchSpecifications; }
203 inline bool LaunchSpecificationsHasBeenSet() const { return m_launchSpecificationsHasBeenSet; }
204 inline void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = value; }
205 inline void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications&& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = std::move(value); }
209
211
214 inline const InstanceFleetResizingSpecifications& GetResizeSpecifications() const{ return m_resizeSpecifications; }
215 inline bool ResizeSpecificationsHasBeenSet() const { return m_resizeSpecificationsHasBeenSet; }
216 inline void SetResizeSpecifications(const InstanceFleetResizingSpecifications& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = value; }
217 inline void SetResizeSpecifications(InstanceFleetResizingSpecifications&& value) { m_resizeSpecificationsHasBeenSet = true; m_resizeSpecifications = std::move(value); }
221
223
226 inline const Aws::String& GetContext() const{ return m_context; }
227 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
228 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; }
229 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
230 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); }
231 inline InstanceFleet& WithContext(const Aws::String& value) { SetContext(value); return *this;}
232 inline InstanceFleet& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;}
233 inline InstanceFleet& WithContext(const char* value) { SetContext(value); return *this;}
235 private:
236
237 Aws::String m_id;
238 bool m_idHasBeenSet = false;
239
240 Aws::String m_name;
241 bool m_nameHasBeenSet = false;
242
243 InstanceFleetStatus m_status;
244 bool m_statusHasBeenSet = false;
245
246 InstanceFleetType m_instanceFleetType;
247 bool m_instanceFleetTypeHasBeenSet = false;
248
249 int m_targetOnDemandCapacity;
250 bool m_targetOnDemandCapacityHasBeenSet = false;
251
252 int m_targetSpotCapacity;
253 bool m_targetSpotCapacityHasBeenSet = false;
254
255 int m_provisionedOnDemandCapacity;
256 bool m_provisionedOnDemandCapacityHasBeenSet = false;
257
258 int m_provisionedSpotCapacity;
259 bool m_provisionedSpotCapacityHasBeenSet = false;
260
261 Aws::Vector<InstanceTypeSpecification> m_instanceTypeSpecifications;
262 bool m_instanceTypeSpecificationsHasBeenSet = false;
263
264 InstanceFleetProvisioningSpecifications m_launchSpecifications;
265 bool m_launchSpecificationsHasBeenSet = false;
266
267 InstanceFleetResizingSpecifications m_resizeSpecifications;
268 bool m_resizeSpecificationsHasBeenSet = false;
269
270 Aws::String m_context;
271 bool m_contextHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace EMR
276} // namespace Aws
InstanceFleet & WithName(const Aws::String &value)
InstanceFleet & WithTargetOnDemandCapacity(int value)
bool TargetOnDemandCapacityHasBeenSet() const
void SetProvisionedOnDemandCapacity(int value)
InstanceFleet & WithProvisionedSpotCapacity(int value)
InstanceFleet & WithInstanceTypeSpecifications(Aws::Vector< InstanceTypeSpecification > &&value)
bool ProvisionedOnDemandCapacityHasBeenSet() const
const Aws::String & GetId() const
void SetResizeSpecifications(InstanceFleetResizingSpecifications &&value)
bool InstanceTypeSpecificationsHasBeenSet() const
bool ProvisionedSpotCapacityHasBeenSet() const
void SetInstanceFleetType(const InstanceFleetType &value)
InstanceFleet & WithStatus(const InstanceFleetStatus &value)
void SetId(Aws::String &&value)
InstanceFleet & WithStatus(InstanceFleetStatus &&value)
InstanceFleet & WithContext(const Aws::String &value)
void SetTargetSpotCapacity(int value)
const Aws::Vector< InstanceTypeSpecification > & GetInstanceTypeSpecifications() const
void SetContext(const char *value)
void SetInstanceTypeSpecifications(Aws::Vector< InstanceTypeSpecification > &&value)
void SetContext(Aws::String &&value)
void SetId(const char *value)
const InstanceFleetProvisioningSpecifications & GetLaunchSpecifications() const
InstanceFleet & WithId(Aws::String &&value)
InstanceFleet & WithProvisionedOnDemandCapacity(int value)
const Aws::String & GetName() const
void SetStatus(const InstanceFleetStatus &value)
void SetResizeSpecifications(const InstanceFleetResizingSpecifications &value)
const Aws::String & GetContext() const
InstanceFleet & WithName(const char *value)
void SetInstanceTypeSpecifications(const Aws::Vector< InstanceTypeSpecification > &value)
void SetTargetOnDemandCapacity(int value)
InstanceFleet & WithId(const char *value)
void SetName(const Aws::String &value)
InstanceFleet & WithInstanceTypeSpecifications(const Aws::Vector< InstanceTypeSpecification > &value)
InstanceFleet & WithLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
InstanceFleet & AddInstanceTypeSpecifications(InstanceTypeSpecification &&value)
InstanceFleet & AddInstanceTypeSpecifications(const InstanceTypeSpecification &value)
InstanceFleet & WithContext(Aws::String &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceFleet & WithResizeSpecifications(InstanceFleetResizingSpecifications &&value)
InstanceFleet & WithTargetSpotCapacity(int value)
void SetContext(const Aws::String &value)
void SetName(const char *value)
InstanceFleet & WithInstanceFleetType(const InstanceFleetType &value)
void SetName(Aws::String &&value)
const InstanceFleetStatus & GetStatus() const
void SetInstanceFleetType(InstanceFleetType &&value)
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
AWS_EMR_API InstanceFleet & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
InstanceFleet & WithId(const Aws::String &value)
InstanceFleet & WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
AWS_EMR_API InstanceFleet(Aws::Utils::Json::JsonView jsonValue)
InstanceFleet & WithResizeSpecifications(const InstanceFleetResizingSpecifications &value)
bool LaunchSpecificationsHasBeenSet() const
InstanceFleet & WithName(Aws::String &&value)
InstanceFleet & WithContext(const char *value)
void SetStatus(InstanceFleetStatus &&value)
void SetProvisionedSpotCapacity(int value)
void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
bool ResizeSpecificationsHasBeenSet() const
void SetId(const Aws::String &value)
InstanceFleet & WithInstanceFleetType(InstanceFleetType &&value)
const InstanceFleetType & GetInstanceFleetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue