/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Configuration defining a new instance group.See Also:
AWS
* API Reference
Friendly name given to the instance group.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *Friendly name given to the instance group.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *Friendly name given to the instance group.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *Friendly name given to the instance group.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *Friendly name given to the instance group.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *Friendly name given to the instance group.
*/ inline InstanceGroupConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *Friendly name given to the instance group.
*/ inline InstanceGroupConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *Friendly name given to the instance group.
*/ inline InstanceGroupConfig& WithName(const char* value) { SetName(value); return *this;} /** *Market type of the EC2 instances used to create a cluster node.
*/ inline const MarketType& GetMarket() const{ return m_market; } /** *Market type of the EC2 instances used to create a cluster node.
*/ inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; } /** *Market type of the EC2 instances used to create a cluster node.
*/ inline void SetMarket(const MarketType& value) { m_marketHasBeenSet = true; m_market = value; } /** *Market type of the EC2 instances used to create a cluster node.
*/ inline void SetMarket(MarketType&& value) { m_marketHasBeenSet = true; m_market = std::move(value); } /** *Market type of the EC2 instances used to create a cluster node.
*/ inline InstanceGroupConfig& WithMarket(const MarketType& value) { SetMarket(value); return *this;} /** *Market type of the EC2 instances used to create a cluster node.
*/ inline InstanceGroupConfig& WithMarket(MarketType&& value) { SetMarket(std::move(value)); return *this;} /** *The role of the instance group in the cluster.
*/ inline const InstanceRoleType& GetInstanceRole() const{ return m_instanceRole; } /** *The role of the instance group in the cluster.
*/ inline bool InstanceRoleHasBeenSet() const { return m_instanceRoleHasBeenSet; } /** *The role of the instance group in the cluster.
*/ inline void SetInstanceRole(const InstanceRoleType& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = value; } /** *The role of the instance group in the cluster.
*/ inline void SetInstanceRole(InstanceRoleType&& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = std::move(value); } /** *The role of the instance group in the cluster.
*/ inline InstanceGroupConfig& WithInstanceRole(const InstanceRoleType& value) { SetInstanceRole(value); return *this;} /** *The role of the instance group in the cluster.
*/ inline InstanceGroupConfig& WithInstanceRole(InstanceRoleType&& value) { SetInstanceRole(std::move(value)); return *this;} /** *The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The bid price for each EC2 Spot instance type as defined by
* InstanceType. Expressed in USD. If neither BidPrice
* nor BidPriceAsPercentageOfOnDemandPrice is provided,
* BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
The EC2 instance type for all instances in the instance group.
*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *The EC2 instance type for all instances in the instance group.
*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *The EC2 instance type for all instances in the instance group.
*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *The EC2 instance type for all instances in the instance group.
*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *The EC2 instance type for all instances in the instance group.
*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *The EC2 instance type for all instances in the instance group.
*/ inline InstanceGroupConfig& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *The EC2 instance type for all instances in the instance group.
*/ inline InstanceGroupConfig& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *The EC2 instance type for all instances in the instance group.
*/ inline InstanceGroupConfig& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *Target number of instances for the instance group.
*/ inline int GetInstanceCount() const{ return m_instanceCount; } /** *Target number of instances for the instance group.
*/ inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; } /** *Target number of instances for the instance group.
*/ inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; } /** *Target number of instances for the instance group.
*/ inline InstanceGroupConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;} /** *Amazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline const Aws::VectorAmazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; } /** *Amazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline void SetConfigurations(const Aws::VectorAmazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline void SetConfigurations(Aws::VectorAmazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline InstanceGroupConfig& WithConfigurations(const Aws::VectorAmazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline InstanceGroupConfig& WithConfigurations(Aws::VectorAmazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline InstanceGroupConfig& AddConfigurations(const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(value); return *this; } /** *Amazon EMR releases 4.x or later.
The list of * configurations supplied for an EMR cluster instance group. You can specify a * separate configuration for each instance group (master, core, and task).
*/ inline InstanceGroupConfig& AddConfigurations(Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.push_back(std::move(value)); return *this; } /** *EBS configurations that will be attached to each EC2 instance in the instance * group.
*/ inline const EbsConfiguration& GetEbsConfiguration() const{ return m_ebsConfiguration; } /** *EBS configurations that will be attached to each EC2 instance in the instance * group.
*/ inline bool EbsConfigurationHasBeenSet() const { return m_ebsConfigurationHasBeenSet; } /** *EBS configurations that will be attached to each EC2 instance in the instance * group.
*/ inline void SetEbsConfiguration(const EbsConfiguration& value) { m_ebsConfigurationHasBeenSet = true; m_ebsConfiguration = value; } /** *EBS configurations that will be attached to each EC2 instance in the instance * group.
*/ inline void SetEbsConfiguration(EbsConfiguration&& value) { m_ebsConfigurationHasBeenSet = true; m_ebsConfiguration = std::move(value); } /** *EBS configurations that will be attached to each EC2 instance in the instance * group.
*/ inline InstanceGroupConfig& WithEbsConfiguration(const EbsConfiguration& value) { SetEbsConfiguration(value); return *this;} /** *EBS configurations that will be attached to each EC2 instance in the instance * group.
*/ inline InstanceGroupConfig& WithEbsConfiguration(EbsConfiguration&& value) { SetEbsConfiguration(std::move(value)); return *this;} /** *An automatic scaling policy for a core instance group or task instance group * in an Amazon EMR cluster. The automatic scaling policy defines how an instance * group dynamically adds and terminates EC2 instances in response to the value of * a CloudWatch metric. See PutAutoScalingPolicy.
*/ inline const AutoScalingPolicy& GetAutoScalingPolicy() const{ return m_autoScalingPolicy; } /** *An automatic scaling policy for a core instance group or task instance group * in an Amazon EMR cluster. The automatic scaling policy defines how an instance * group dynamically adds and terminates EC2 instances in response to the value of * a CloudWatch metric. See PutAutoScalingPolicy.
*/ inline bool AutoScalingPolicyHasBeenSet() const { return m_autoScalingPolicyHasBeenSet; } /** *An automatic scaling policy for a core instance group or task instance group * in an Amazon EMR cluster. The automatic scaling policy defines how an instance * group dynamically adds and terminates EC2 instances in response to the value of * a CloudWatch metric. See PutAutoScalingPolicy.
*/ inline void SetAutoScalingPolicy(const AutoScalingPolicy& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = value; } /** *An automatic scaling policy for a core instance group or task instance group * in an Amazon EMR cluster. The automatic scaling policy defines how an instance * group dynamically adds and terminates EC2 instances in response to the value of * a CloudWatch metric. See PutAutoScalingPolicy.
*/ inline void SetAutoScalingPolicy(AutoScalingPolicy&& value) { m_autoScalingPolicyHasBeenSet = true; m_autoScalingPolicy = std::move(value); } /** *An automatic scaling policy for a core instance group or task instance group * in an Amazon EMR cluster. The automatic scaling policy defines how an instance * group dynamically adds and terminates EC2 instances in response to the value of * a CloudWatch metric. See PutAutoScalingPolicy.
*/ inline InstanceGroupConfig& WithAutoScalingPolicy(const AutoScalingPolicy& value) { SetAutoScalingPolicy(value); return *this;} /** *An automatic scaling policy for a core instance group or task instance group * in an Amazon EMR cluster. The automatic scaling policy defines how an instance * group dynamically adds and terminates EC2 instances in response to the value of * a CloudWatch metric. See PutAutoScalingPolicy.
*/ inline InstanceGroupConfig& WithAutoScalingPolicy(AutoScalingPolicy&& value) { SetAutoScalingPolicy(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; MarketType m_market; bool m_marketHasBeenSet; InstanceRoleType m_instanceRole; bool m_instanceRoleHasBeenSet; Aws::String m_bidPrice; bool m_bidPriceHasBeenSet; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet; int m_instanceCount; bool m_instanceCountHasBeenSet; Aws::Vector