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/AutoScalingPolicy.h>
11#include <aws/elasticmapreduce/model/Configuration.h>
12#include <aws/elasticmapreduce/model/EbsConfiguration.h>
13#include <aws/elasticmapreduce/model/InstanceRoleType.h>
14#include <aws/elasticmapreduce/model/MarketType.h>
46 template <
typename NameT = Aws::String>
48 m_nameHasBeenSet =
true;
49 m_name = std::forward<NameT>(value);
51 template <
typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
65 m_marketHasBeenSet =
true;
81 m_instanceRoleHasBeenSet =
true;
82 m_instanceRole = value;
99 template <
typename B
idPriceT = Aws::String>
101 m_bidPriceHasBeenSet =
true;
102 m_bidPrice = std::forward<BidPriceT>(value);
104 template <
typename B
idPriceT = Aws::String>
117 template <
typename InstanceTypeT = Aws::String>
119 m_instanceTypeHasBeenSet =
true;
120 m_instanceType = std::forward<InstanceTypeT>(value);
122 template <
typename InstanceTypeT = Aws::String>
136 m_instanceCountHasBeenSet =
true;
137 m_instanceCount = value;
154 template <
typename ConfigurationsT = Aws::Vector<Configuration>>
156 m_configurationsHasBeenSet =
true;
157 m_configurations = std::forward<ConfigurationsT>(value);
159 template <
typename ConfigurationsT = Aws::Vector<Configuration>>
164 template <
typename ConfigurationsT = Configuration>
166 m_configurationsHasBeenSet =
true;
167 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
179 template <
typename EbsConfigurationT = EbsConfiguration>
181 m_ebsConfigurationHasBeenSet =
true;
182 m_ebsConfiguration = std::forward<EbsConfigurationT>(value);
184 template <
typename EbsConfigurationT = EbsConfiguration>
200 template <
typename AutoScalingPolicyT = AutoScalingPolicy>
202 m_autoScalingPolicyHasBeenSet =
true;
203 m_autoScalingPolicy = std::forward<AutoScalingPolicyT>(value);
205 template <
typename AutoScalingPolicyT = AutoScalingPolicy>
218 template <
typename CustomAmiIdT = Aws::String>
220 m_customAmiIdHasBeenSet =
true;
221 m_customAmiId = std::forward<CustomAmiIdT>(value);
223 template <
typename CustomAmiIdT = Aws::String>
240 int m_instanceCount{0};
244 EbsConfiguration m_ebsConfiguration;
246 AutoScalingPolicy m_autoScalingPolicy;
249 bool m_nameHasBeenSet =
false;
250 bool m_marketHasBeenSet =
false;
251 bool m_instanceRoleHasBeenSet =
false;
252 bool m_bidPriceHasBeenSet =
false;
253 bool m_instanceTypeHasBeenSet =
false;
254 bool m_instanceCountHasBeenSet =
false;
255 bool m_configurationsHasBeenSet =
false;
256 bool m_ebsConfigurationHasBeenSet =
false;
257 bool m_autoScalingPolicyHasBeenSet =
false;
258 bool m_customAmiIdHasBeenSet =
false;
const Aws::Vector< Configuration > & GetConfigurations() const
MarketType GetMarket() const
const Aws::String & GetName() const
bool InstanceRoleHasBeenSet() const
void SetName(NameT &&value)
bool AutoScalingPolicyHasBeenSet() const
bool EbsConfigurationHasBeenSet() const
void SetInstanceRole(InstanceRoleType value)
void SetInstanceType(InstanceTypeT &&value)
const Aws::String & GetBidPrice() const
void SetMarket(MarketType value)
const EbsConfiguration & GetEbsConfiguration() const
InstanceGroupConfig & WithAutoScalingPolicy(AutoScalingPolicyT &&value)
void SetInstanceCount(int value)
InstanceGroupConfig & WithCustomAmiId(CustomAmiIdT &&value)
InstanceGroupConfig & WithInstanceCount(int value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceGroupConfig & WithConfigurations(ConfigurationsT &&value)
InstanceRoleType GetInstanceRole() const
bool NameHasBeenSet() const
bool MarketHasBeenSet() const
InstanceGroupConfig & WithInstanceRole(InstanceRoleType value)
void SetAutoScalingPolicy(AutoScalingPolicyT &&value)
InstanceGroupConfig & WithEbsConfiguration(EbsConfigurationT &&value)
InstanceGroupConfig & WithBidPrice(BidPriceT &&value)
int GetInstanceCount() const
InstanceGroupConfig & WithName(NameT &&value)
bool InstanceCountHasBeenSet() const
InstanceGroupConfig & WithMarket(MarketType value)
const Aws::String & GetCustomAmiId() const
AWS_EMR_API InstanceGroupConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API InstanceGroupConfig()=default
AWS_EMR_API InstanceGroupConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
bool InstanceTypeHasBeenSet() const
InstanceGroupConfig & WithInstanceType(InstanceTypeT &&value)
InstanceGroupConfig & AddConfigurations(ConfigurationsT &&value)
const Aws::String & GetInstanceType() const
void SetEbsConfiguration(EbsConfigurationT &&value)
void SetBidPrice(BidPriceT &&value)
const AutoScalingPolicy & GetAutoScalingPolicy() const
bool ConfigurationsHasBeenSet() const
void SetConfigurations(ConfigurationsT &&value)
void SetCustomAmiId(CustomAmiIdT &&value)
bool BidPriceHasBeenSet() const
bool CustomAmiIdHasBeenSet() 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