7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/InstanceFleetType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticmapreduce/model/InstanceFleetProvisioningSpecifications.h>
12#include <aws/elasticmapreduce/model/InstanceFleetResizingSpecifications.h>
13#include <aws/elasticmapreduce/model/InstanceTypeConfig.h>
55 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
121 inline void SetTargetSpotCapacity(
int value) { m_targetSpotCapacityHasBeenSet =
true; m_targetSpotCapacity = value; }
172 inline void SetContext(
const char* value) { m_contextHasBeenSet =
true; m_context.assign(value); }
180 bool m_nameHasBeenSet =
false;
183 bool m_instanceFleetTypeHasBeenSet =
false;
185 int m_targetOnDemandCapacity;
186 bool m_targetOnDemandCapacityHasBeenSet =
false;
188 int m_targetSpotCapacity;
189 bool m_targetSpotCapacityHasBeenSet =
false;
192 bool m_instanceTypeConfigsHasBeenSet =
false;
195 bool m_launchSpecificationsHasBeenSet =
false;
198 bool m_resizeSpecificationsHasBeenSet =
false;
201 bool m_contextHasBeenSet =
false;
void SetTargetOnDemandCapacity(int value)
bool ContextHasBeenSet() const
void SetContext(const char *value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceFleetConfig & WithTargetOnDemandCapacity(int value)
bool InstanceTypeConfigsHasBeenSet() const
InstanceFleetConfig & WithInstanceFleetType(const InstanceFleetType &value)
bool NameHasBeenSet() const
void SetContext(Aws::String &&value)
int GetTargetOnDemandCapacity() const
void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
const Aws::String & GetContext() const
void SetResizeSpecifications(const InstanceFleetResizingSpecifications &value)
InstanceFleetConfig & WithTargetSpotCapacity(int value)
void SetName(Aws::String &&value)
InstanceFleetConfig & WithContext(const Aws::String &value)
InstanceFleetConfig & WithName(const char *value)
const InstanceFleetType & GetInstanceFleetType() const
AWS_EMR_API InstanceFleetConfig()
bool LaunchSpecificationsHasBeenSet() const
const InstanceFleetProvisioningSpecifications & GetLaunchSpecifications() const
void SetTargetSpotCapacity(int value)
void SetName(const char *value)
void SetInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
const Aws::Vector< InstanceTypeConfig > & GetInstanceTypeConfigs() const
InstanceFleetConfig & WithResizeSpecifications(InstanceFleetResizingSpecifications &&value)
const InstanceFleetResizingSpecifications & GetResizeSpecifications() const
InstanceFleetConfig & AddInstanceTypeConfigs(const InstanceTypeConfig &value)
bool TargetOnDemandCapacityHasBeenSet() const
InstanceFleetConfig & WithInstanceTypeConfigs(const Aws::Vector< InstanceTypeConfig > &value)
void SetInstanceFleetType(InstanceFleetType &&value)
void SetName(const Aws::String &value)
bool ResizeSpecificationsHasBeenSet() const
InstanceFleetConfig & AddInstanceTypeConfigs(InstanceTypeConfig &&value)
InstanceFleetConfig & WithContext(Aws::String &&value)
bool InstanceFleetTypeHasBeenSet() const
bool TargetSpotCapacityHasBeenSet() const
void SetInstanceFleetType(const InstanceFleetType &value)
int GetTargetSpotCapacity() const
InstanceFleetConfig & WithContext(const char *value)
InstanceFleetConfig & WithName(Aws::String &&value)
AWS_EMR_API InstanceFleetConfig(Aws::Utils::Json::JsonView jsonValue)
void SetContext(const Aws::String &value)
AWS_EMR_API InstanceFleetConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
InstanceFleetConfig & WithResizeSpecifications(const InstanceFleetResizingSpecifications &value)
InstanceFleetConfig & WithInstanceFleetType(InstanceFleetType &&value)
void SetResizeSpecifications(InstanceFleetResizingSpecifications &&value)
InstanceFleetConfig & WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
InstanceFleetConfig & WithName(const Aws::String &value)
InstanceFleetConfig & WithInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
InstanceFleetConfig & WithLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
const Aws::String & GetName() const
void SetInstanceTypeConfigs(Aws::Vector< InstanceTypeConfig > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue