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>
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); }
73 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
155 inline void SetTargetSpotCapacity(
int value) { m_targetSpotCapacityHasBeenSet =
true; m_targetSpotCapacity = value; }
230 inline void SetContext(
const char* value) { m_contextHasBeenSet =
true; m_context.assign(value); }
238 bool m_idHasBeenSet =
false;
241 bool m_nameHasBeenSet =
false;
244 bool m_statusHasBeenSet =
false;
247 bool m_instanceFleetTypeHasBeenSet =
false;
249 int m_targetOnDemandCapacity;
250 bool m_targetOnDemandCapacityHasBeenSet =
false;
252 int m_targetSpotCapacity;
253 bool m_targetSpotCapacityHasBeenSet =
false;
255 int m_provisionedOnDemandCapacity;
256 bool m_provisionedOnDemandCapacityHasBeenSet =
false;
258 int m_provisionedSpotCapacity;
259 bool m_provisionedSpotCapacityHasBeenSet =
false;
262 bool m_instanceTypeSpecificationsHasBeenSet =
false;
265 bool m_launchSpecificationsHasBeenSet =
false;
268 bool m_resizeSpecificationsHasBeenSet =
false;
271 bool m_contextHasBeenSet =
false;
InstanceFleet & WithName(const Aws::String &value)
InstanceFleet & WithTargetOnDemandCapacity(int value)
bool TargetOnDemandCapacityHasBeenSet() const
int GetTargetOnDemandCapacity() const
void SetProvisionedOnDemandCapacity(int value)
InstanceFleet & WithProvisionedSpotCapacity(int value)
InstanceFleet & WithInstanceTypeSpecifications(Aws::Vector< InstanceTypeSpecification > &&value)
bool ProvisionedOnDemandCapacityHasBeenSet() const
int GetTargetSpotCapacity() 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)
bool ContextHasBeenSet() const
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)
int GetProvisionedSpotCapacity() const
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)
bool InstanceFleetTypeHasBeenSet() const
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)
AWS_EMR_API InstanceFleet()
int GetProvisionedOnDemandCapacity() const
InstanceFleet & WithInstanceFleetType(const InstanceFleetType &value)
void SetName(Aws::String &&value)
const InstanceFleetStatus & GetStatus() const
bool StatusHasBeenSet() const
void SetInstanceFleetType(InstanceFleetType &&value)
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
bool NameHasBeenSet() const
AWS_EMR_API InstanceFleet & operator=(Aws::Utils::Json::JsonView jsonValue)
bool IdHasBeenSet() const
void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
bool TargetSpotCapacityHasBeenSet() const
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