7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/model/InstanceFleetProvisioningSpecifications.h>
11#include <aws/elasticmapreduce/model/InstanceFleetResizingSpecifications.h>
12#include <aws/elasticmapreduce/model/InstanceFleetStatus.h>
13#include <aws/elasticmapreduce/model/InstanceFleetType.h>
14#include <aws/elasticmapreduce/model/InstanceTypeSpecification.h>
51 template <
typename IdT = Aws::String>
53 m_idHasBeenSet =
true;
54 m_id = std::forward<IdT>(value);
56 template <
typename IdT = Aws::String>
58 SetId(std::forward<IdT>(value));
69 template <
typename NameT = Aws::String>
71 m_nameHasBeenSet =
true;
72 m_name = std::forward<NameT>(value);
74 template <
typename NameT = Aws::String>
76 SetName(std::forward<NameT>(value));
87 template <
typename StatusT = InstanceFleetStatus>
89 m_statusHasBeenSet =
true;
90 m_status = std::forward<StatusT>(value);
92 template <
typename StatusT = InstanceFleetStatus>
107 m_instanceFleetTypeHasBeenSet =
true;
108 m_instanceFleetType = value;
141 m_targetOnDemandCapacityHasBeenSet =
true;
142 m_targetOnDemandCapacity = value;
174 m_targetSpotCapacityHasBeenSet =
true;
175 m_targetSpotCapacity = value;
192 m_provisionedOnDemandCapacityHasBeenSet =
true;
193 m_provisionedOnDemandCapacity = value;
210 m_provisionedSpotCapacityHasBeenSet =
true;
211 m_provisionedSpotCapacity = value;
226 template <
typename InstanceTypeSpecificationsT = Aws::Vector<InstanceTypeSpecification>>
228 m_instanceTypeSpecificationsHasBeenSet =
true;
229 m_instanceTypeSpecifications = std::forward<InstanceTypeSpecificationsT>(value);
231 template <
typename InstanceTypeSpecificationsT = Aws::Vector<InstanceTypeSpecification>>
236 template <
typename InstanceTypeSpecificationsT = InstanceTypeSpecification>
238 m_instanceTypeSpecificationsHasBeenSet =
true;
239 m_instanceTypeSpecifications.emplace_back(std::forward<InstanceTypeSpecificationsT>(value));
250 template <
typename LaunchSpecificationsT = InstanceFleetProvisioningSpecifications>
252 m_launchSpecificationsHasBeenSet =
true;
253 m_launchSpecifications = std::forward<LaunchSpecificationsT>(value);
255 template <
typename LaunchSpecificationsT = InstanceFleetProvisioningSpecifications>
268 template <
typename ResizeSpecificationsT = InstanceFleetResizingSpecifications>
270 m_resizeSpecificationsHasBeenSet =
true;
271 m_resizeSpecifications = std::forward<ResizeSpecificationsT>(value);
273 template <
typename ResizeSpecificationsT = InstanceFleetResizingSpecifications>
286 template <
typename ContextT = Aws::String>
288 m_contextHasBeenSet =
true;
289 m_context = std::forward<ContextT>(value);
291 template <
typename ContextT = Aws::String>
306 int m_targetOnDemandCapacity{0};
308 int m_targetSpotCapacity{0};
310 int m_provisionedOnDemandCapacity{0};
312 int m_provisionedSpotCapacity{0};
316 InstanceFleetProvisioningSpecifications m_launchSpecifications;
318 InstanceFleetResizingSpecifications m_resizeSpecifications;
321 bool m_idHasBeenSet =
false;
322 bool m_nameHasBeenSet =
false;
323 bool m_statusHasBeenSet =
false;
324 bool m_instanceFleetTypeHasBeenSet =
false;
325 bool m_targetOnDemandCapacityHasBeenSet =
false;
326 bool m_targetSpotCapacityHasBeenSet =
false;
327 bool m_provisionedOnDemandCapacityHasBeenSet =
false;
328 bool m_provisionedSpotCapacityHasBeenSet =
false;
329 bool m_instanceTypeSpecificationsHasBeenSet =
false;
330 bool m_launchSpecificationsHasBeenSet =
false;
331 bool m_resizeSpecificationsHasBeenSet =
false;
332 bool m_contextHasBeenSet =
false;
void SetInstanceFleetType(InstanceFleetType value)
InstanceFleet & WithContext(ContextT &&value)
AWS_EMR_API InstanceFleet()=default
InstanceFleet & WithTargetOnDemandCapacity(int value)
bool TargetOnDemandCapacityHasBeenSet() const
int GetTargetOnDemandCapacity() const
void SetProvisionedOnDemandCapacity(int value)
InstanceFleet & AddInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
void SetResizeSpecifications(ResizeSpecificationsT &&value)
InstanceFleet & WithProvisionedSpotCapacity(int value)
void SetInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
bool ProvisionedOnDemandCapacityHasBeenSet() const
int GetTargetSpotCapacity() const
InstanceFleet & WithStatus(StatusT &&value)
void SetLaunchSpecifications(LaunchSpecificationsT &&value)
const Aws::String & GetId() const
bool InstanceTypeSpecificationsHasBeenSet() const
InstanceFleet & WithResizeSpecifications(ResizeSpecificationsT &&value)
bool ProvisionedSpotCapacityHasBeenSet() const
InstanceFleet & WithLaunchSpecifications(LaunchSpecificationsT &&value)
void SetTargetSpotCapacity(int value)
const Aws::Vector< InstanceTypeSpecification > & GetInstanceTypeSpecifications() const
InstanceFleet & WithName(NameT &&value)
bool ContextHasBeenSet() const
const InstanceFleetProvisioningSpecifications & GetLaunchSpecifications() const
InstanceFleet & WithProvisionedOnDemandCapacity(int value)
const Aws::String & GetName() const
InstanceFleet & WithInstanceTypeSpecifications(InstanceTypeSpecificationsT &&value)
int GetProvisionedSpotCapacity() const
void SetName(NameT &&value)
const Aws::String & GetContext() const
void SetTargetOnDemandCapacity(int value)
bool InstanceFleetTypeHasBeenSet() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetContext(ContextT &&value)
InstanceFleet & WithId(IdT &&value)
InstanceFleet & WithTargetSpotCapacity(int value)
int GetProvisionedOnDemandCapacity() const
const InstanceFleetStatus & GetStatus() const
bool StatusHasBeenSet() const
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
bool NameHasBeenSet() const
AWS_EMR_API InstanceFleet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
void SetStatus(StatusT &&value)
bool TargetSpotCapacityHasBeenSet() const
InstanceFleet & WithInstanceFleetType(InstanceFleetType value)
InstanceFleetType GetInstanceFleetType() const
AWS_EMR_API InstanceFleet(Aws::Utils::Json::JsonView jsonValue)
bool LaunchSpecificationsHasBeenSet() const
void SetProvisionedSpotCapacity(int value)
bool ResizeSpecificationsHasBeenSet() 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