This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-elasticmapreduce/include/aws/elasticmapreduce/model/JobFlowInstancesConfig.h

924 lines
42 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticmapreduce/EMR_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/elasticmapreduce/model/PlacementType.h>
#include <aws/elasticmapreduce/model/InstanceGroupConfig.h>
#include <aws/elasticmapreduce/model/InstanceFleetConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace EMR
{
namespace Model
{
/**
* <p>A description of the Amazon EC2 instance on which the cluster (job flow)
* runs. A valid JobFlowInstancesConfig must contain either InstanceGroups or
* InstanceFleets, which is the recommended configuration. They cannot be used
* together. You may also have MasterInstanceType, SlaveInstanceType, and
* InstanceCount (all three must be present), but we don't recommend this
* configuration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/JobFlowInstancesConfig">AWS
* API Reference</a></p>
*/
class AWS_EMR_API JobFlowInstancesConfig
{
public:
JobFlowInstancesConfig();
JobFlowInstancesConfig(Aws::Utils::Json::JsonView jsonValue);
JobFlowInstancesConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline const Aws::String& GetMasterInstanceType() const{ return m_masterInstanceType; }
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline bool MasterInstanceTypeHasBeenSet() const { return m_masterInstanceTypeHasBeenSet; }
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline void SetMasterInstanceType(const Aws::String& value) { m_masterInstanceTypeHasBeenSet = true; m_masterInstanceType = value; }
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline void SetMasterInstanceType(Aws::String&& value) { m_masterInstanceTypeHasBeenSet = true; m_masterInstanceType = std::move(value); }
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline void SetMasterInstanceType(const char* value) { m_masterInstanceTypeHasBeenSet = true; m_masterInstanceType.assign(value); }
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline JobFlowInstancesConfig& WithMasterInstanceType(const Aws::String& value) { SetMasterInstanceType(value); return *this;}
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline JobFlowInstancesConfig& WithMasterInstanceType(Aws::String&& value) { SetMasterInstanceType(std::move(value)); return *this;}
/**
* <p>The EC2 instance type of the master node.</p>
*/
inline JobFlowInstancesConfig& WithMasterInstanceType(const char* value) { SetMasterInstanceType(value); return *this;}
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline const Aws::String& GetSlaveInstanceType() const{ return m_slaveInstanceType; }
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline bool SlaveInstanceTypeHasBeenSet() const { return m_slaveInstanceTypeHasBeenSet; }
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline void SetSlaveInstanceType(const Aws::String& value) { m_slaveInstanceTypeHasBeenSet = true; m_slaveInstanceType = value; }
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline void SetSlaveInstanceType(Aws::String&& value) { m_slaveInstanceTypeHasBeenSet = true; m_slaveInstanceType = std::move(value); }
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline void SetSlaveInstanceType(const char* value) { m_slaveInstanceTypeHasBeenSet = true; m_slaveInstanceType.assign(value); }
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline JobFlowInstancesConfig& WithSlaveInstanceType(const Aws::String& value) { SetSlaveInstanceType(value); return *this;}
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline JobFlowInstancesConfig& WithSlaveInstanceType(Aws::String&& value) { SetSlaveInstanceType(std::move(value)); return *this;}
/**
* <p>The EC2 instance type of the core and task nodes.</p>
*/
inline JobFlowInstancesConfig& WithSlaveInstanceType(const char* value) { SetSlaveInstanceType(value); return *this;}
/**
* <p>The number of EC2 instances in the cluster.</p>
*/
inline int GetInstanceCount() const{ return m_instanceCount; }
/**
* <p>The number of EC2 instances in the cluster.</p>
*/
inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
/**
* <p>The number of EC2 instances in the cluster.</p>
*/
inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
/**
* <p>The number of EC2 instances in the cluster.</p>
*/
inline JobFlowInstancesConfig& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline const Aws::Vector<InstanceGroupConfig>& GetInstanceGroups() const{ return m_instanceGroups; }
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline bool InstanceGroupsHasBeenSet() const { return m_instanceGroupsHasBeenSet; }
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline void SetInstanceGroups(const Aws::Vector<InstanceGroupConfig>& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = value; }
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline void SetInstanceGroups(Aws::Vector<InstanceGroupConfig>&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups = std::move(value); }
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline JobFlowInstancesConfig& WithInstanceGroups(const Aws::Vector<InstanceGroupConfig>& value) { SetInstanceGroups(value); return *this;}
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline JobFlowInstancesConfig& WithInstanceGroups(Aws::Vector<InstanceGroupConfig>&& value) { SetInstanceGroups(std::move(value)); return *this;}
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline JobFlowInstancesConfig& AddInstanceGroups(const InstanceGroupConfig& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(value); return *this; }
/**
* <p>Configuration for the instance groups in a cluster.</p>
*/
inline JobFlowInstancesConfig& AddInstanceGroups(InstanceGroupConfig&& value) { m_instanceGroupsHasBeenSet = true; m_instanceGroups.push_back(std::move(value)); return *this; }
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline const Aws::Vector<InstanceFleetConfig>& GetInstanceFleets() const{ return m_instanceFleets; }
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline bool InstanceFleetsHasBeenSet() const { return m_instanceFleetsHasBeenSet; }
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline void SetInstanceFleets(const Aws::Vector<InstanceFleetConfig>& value) { m_instanceFleetsHasBeenSet = true; m_instanceFleets = value; }
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline void SetInstanceFleets(Aws::Vector<InstanceFleetConfig>&& value) { m_instanceFleetsHasBeenSet = true; m_instanceFleets = std::move(value); }
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline JobFlowInstancesConfig& WithInstanceFleets(const Aws::Vector<InstanceFleetConfig>& value) { SetInstanceFleets(value); return *this;}
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline JobFlowInstancesConfig& WithInstanceFleets(Aws::Vector<InstanceFleetConfig>&& value) { SetInstanceFleets(std::move(value)); return *this;}
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline JobFlowInstancesConfig& AddInstanceFleets(const InstanceFleetConfig& value) { m_instanceFleetsHasBeenSet = true; m_instanceFleets.push_back(value); return *this; }
/**
* <p>The instance fleet configuration is available only in Amazon EMR
* versions 4.8.0 and later, excluding 5.0.x versions.</p> <p>Describes the
* EC2 instances and instance configurations for clusters that use the instance
* fleet configuration.</p>
*/
inline JobFlowInstancesConfig& AddInstanceFleets(InstanceFleetConfig&& value) { m_instanceFleetsHasBeenSet = true; m_instanceFleets.push_back(std::move(value)); return *this; }
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline const Aws::String& GetEc2KeyName() const{ return m_ec2KeyName; }
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline bool Ec2KeyNameHasBeenSet() const { return m_ec2KeyNameHasBeenSet; }
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline void SetEc2KeyName(const Aws::String& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = value; }
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline void SetEc2KeyName(Aws::String&& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = std::move(value); }
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline void SetEc2KeyName(const char* value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName.assign(value); }
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline JobFlowInstancesConfig& WithEc2KeyName(const Aws::String& value) { SetEc2KeyName(value); return *this;}
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline JobFlowInstancesConfig& WithEc2KeyName(Aws::String&& value) { SetEc2KeyName(std::move(value)); return *this;}
/**
* <p>The name of the EC2 key pair that can be used to ssh to the master node as
* the user called "hadoop."</p>
*/
inline JobFlowInstancesConfig& WithEc2KeyName(const char* value) { SetEc2KeyName(value); return *this;}
/**
* <p>The Availability Zone in which the cluster runs.</p>
*/
inline const PlacementType& GetPlacement() const{ return m_placement; }
/**
* <p>The Availability Zone in which the cluster runs.</p>
*/
inline bool PlacementHasBeenSet() const { return m_placementHasBeenSet; }
/**
* <p>The Availability Zone in which the cluster runs.</p>
*/
inline void SetPlacement(const PlacementType& value) { m_placementHasBeenSet = true; m_placement = value; }
/**
* <p>The Availability Zone in which the cluster runs.</p>
*/
inline void SetPlacement(PlacementType&& value) { m_placementHasBeenSet = true; m_placement = std::move(value); }
/**
* <p>The Availability Zone in which the cluster runs.</p>
*/
inline JobFlowInstancesConfig& WithPlacement(const PlacementType& value) { SetPlacement(value); return *this;}
/**
* <p>The Availability Zone in which the cluster runs.</p>
*/
inline JobFlowInstancesConfig& WithPlacement(PlacementType&& value) { SetPlacement(std::move(value)); return *this;}
/**
* <p>Specifies whether the cluster should remain available after completing all
* steps.</p>
*/
inline bool GetKeepJobFlowAliveWhenNoSteps() const{ return m_keepJobFlowAliveWhenNoSteps; }
/**
* <p>Specifies whether the cluster should remain available after completing all
* steps.</p>
*/
inline bool KeepJobFlowAliveWhenNoStepsHasBeenSet() const { return m_keepJobFlowAliveWhenNoStepsHasBeenSet; }
/**
* <p>Specifies whether the cluster should remain available after completing all
* steps.</p>
*/
inline void SetKeepJobFlowAliveWhenNoSteps(bool value) { m_keepJobFlowAliveWhenNoStepsHasBeenSet = true; m_keepJobFlowAliveWhenNoSteps = value; }
/**
* <p>Specifies whether the cluster should remain available after completing all
* steps.</p>
*/
inline JobFlowInstancesConfig& WithKeepJobFlowAliveWhenNoSteps(bool value) { SetKeepJobFlowAliveWhenNoSteps(value); return *this;}
/**
* <p>Specifies whether to lock the cluster to prevent the Amazon EC2 instances
* from being terminated by API call, user intervention, or in the event of a
* job-flow error.</p>
*/
inline bool GetTerminationProtected() const{ return m_terminationProtected; }
/**
* <p>Specifies whether to lock the cluster to prevent the Amazon EC2 instances
* from being terminated by API call, user intervention, or in the event of a
* job-flow error.</p>
*/
inline bool TerminationProtectedHasBeenSet() const { return m_terminationProtectedHasBeenSet; }
/**
* <p>Specifies whether to lock the cluster to prevent the Amazon EC2 instances
* from being terminated by API call, user intervention, or in the event of a
* job-flow error.</p>
*/
inline void SetTerminationProtected(bool value) { m_terminationProtectedHasBeenSet = true; m_terminationProtected = value; }
/**
* <p>Specifies whether to lock the cluster to prevent the Amazon EC2 instances
* from being terminated by API call, user intervention, or in the event of a
* job-flow error.</p>
*/
inline JobFlowInstancesConfig& WithTerminationProtected(bool value) { SetTerminationProtected(value); return *this;}
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline const Aws::String& GetHadoopVersion() const{ return m_hadoopVersion; }
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline bool HadoopVersionHasBeenSet() const { return m_hadoopVersionHasBeenSet; }
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline void SetHadoopVersion(const Aws::String& value) { m_hadoopVersionHasBeenSet = true; m_hadoopVersion = value; }
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline void SetHadoopVersion(Aws::String&& value) { m_hadoopVersionHasBeenSet = true; m_hadoopVersion = std::move(value); }
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline void SetHadoopVersion(const char* value) { m_hadoopVersionHasBeenSet = true; m_hadoopVersion.assign(value); }
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline JobFlowInstancesConfig& WithHadoopVersion(const Aws::String& value) { SetHadoopVersion(value); return *this;}
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline JobFlowInstancesConfig& WithHadoopVersion(Aws::String&& value) { SetHadoopVersion(std::move(value)); return *this;}
/**
* <p>Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop
* version for the cluster. Valid inputs are "0.18" (deprecated), "0.20"
* (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do
* not set this value, the default of 0.18 is used, unless the
* <code>AmiVersion</code> parameter is set in the RunJobFlow call, in which case
* the default version of Hadoop for that AMI version is used.</p>
*/
inline JobFlowInstancesConfig& WithHadoopVersion(const char* value) { SetHadoopVersion(value); return *this;}
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline const Aws::String& GetEc2SubnetId() const{ return m_ec2SubnetId; }
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline bool Ec2SubnetIdHasBeenSet() const { return m_ec2SubnetIdHasBeenSet; }
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline void SetEc2SubnetId(const Aws::String& value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId = value; }
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline void SetEc2SubnetId(Aws::String&& value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId = std::move(value); }
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline void SetEc2SubnetId(const char* value) { m_ec2SubnetIdHasBeenSet = true; m_ec2SubnetId.assign(value); }
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline JobFlowInstancesConfig& WithEc2SubnetId(const Aws::String& value) { SetEc2SubnetId(value); return *this;}
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline JobFlowInstancesConfig& WithEc2SubnetId(Aws::String&& value) { SetEc2SubnetId(std::move(value)); return *this;}
/**
* <p>Applies to clusters that use the uniform instance group configuration. To
* launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this
* parameter to the identifier of the Amazon VPC subnet where you want the cluster
* to launch. If you do not specify this value and your account supports
* EC2-Classic, the cluster launches in EC2-Classic.</p>
*/
inline JobFlowInstancesConfig& WithEc2SubnetId(const char* value) { SetEc2SubnetId(value); return *this;}
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline const Aws::Vector<Aws::String>& GetEc2SubnetIds() const{ return m_ec2SubnetIds; }
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline bool Ec2SubnetIdsHasBeenSet() const { return m_ec2SubnetIdsHasBeenSet; }
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline void SetEc2SubnetIds(const Aws::Vector<Aws::String>& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds = value; }
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline void SetEc2SubnetIds(Aws::Vector<Aws::String>&& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds = std::move(value); }
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline JobFlowInstancesConfig& WithEc2SubnetIds(const Aws::Vector<Aws::String>& value) { SetEc2SubnetIds(value); return *this;}
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline JobFlowInstancesConfig& WithEc2SubnetIds(Aws::Vector<Aws::String>&& value) { SetEc2SubnetIds(std::move(value)); return *this;}
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline JobFlowInstancesConfig& AddEc2SubnetIds(const Aws::String& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds.push_back(value); return *this; }
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline JobFlowInstancesConfig& AddEc2SubnetIds(Aws::String&& value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds.push_back(std::move(value)); return *this; }
/**
* <p>Applies to clusters that use the instance fleet configuration. When multiple
* EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances
* in the optimal subnet.</p> <p>The instance fleet configuration is
* available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x
* versions.</p>
*/
inline JobFlowInstancesConfig& AddEc2SubnetIds(const char* value) { m_ec2SubnetIdsHasBeenSet = true; m_ec2SubnetIds.push_back(value); return *this; }
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline const Aws::String& GetEmrManagedMasterSecurityGroup() const{ return m_emrManagedMasterSecurityGroup; }
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline bool EmrManagedMasterSecurityGroupHasBeenSet() const { return m_emrManagedMasterSecurityGroupHasBeenSet; }
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline void SetEmrManagedMasterSecurityGroup(const Aws::String& value) { m_emrManagedMasterSecurityGroupHasBeenSet = true; m_emrManagedMasterSecurityGroup = value; }
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline void SetEmrManagedMasterSecurityGroup(Aws::String&& value) { m_emrManagedMasterSecurityGroupHasBeenSet = true; m_emrManagedMasterSecurityGroup = std::move(value); }
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline void SetEmrManagedMasterSecurityGroup(const char* value) { m_emrManagedMasterSecurityGroupHasBeenSet = true; m_emrManagedMasterSecurityGroup.assign(value); }
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline JobFlowInstancesConfig& WithEmrManagedMasterSecurityGroup(const Aws::String& value) { SetEmrManagedMasterSecurityGroup(value); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline JobFlowInstancesConfig& WithEmrManagedMasterSecurityGroup(Aws::String&& value) { SetEmrManagedMasterSecurityGroup(std::move(value)); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the master node.</p>
*/
inline JobFlowInstancesConfig& WithEmrManagedMasterSecurityGroup(const char* value) { SetEmrManagedMasterSecurityGroup(value); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline const Aws::String& GetEmrManagedSlaveSecurityGroup() const{ return m_emrManagedSlaveSecurityGroup; }
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline bool EmrManagedSlaveSecurityGroupHasBeenSet() const { return m_emrManagedSlaveSecurityGroupHasBeenSet; }
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline void SetEmrManagedSlaveSecurityGroup(const Aws::String& value) { m_emrManagedSlaveSecurityGroupHasBeenSet = true; m_emrManagedSlaveSecurityGroup = value; }
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline void SetEmrManagedSlaveSecurityGroup(Aws::String&& value) { m_emrManagedSlaveSecurityGroupHasBeenSet = true; m_emrManagedSlaveSecurityGroup = std::move(value); }
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline void SetEmrManagedSlaveSecurityGroup(const char* value) { m_emrManagedSlaveSecurityGroupHasBeenSet = true; m_emrManagedSlaveSecurityGroup.assign(value); }
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& WithEmrManagedSlaveSecurityGroup(const Aws::String& value) { SetEmrManagedSlaveSecurityGroup(value); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& WithEmrManagedSlaveSecurityGroup(Aws::String&& value) { SetEmrManagedSlaveSecurityGroup(std::move(value)); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& WithEmrManagedSlaveSecurityGroup(const char* value) { SetEmrManagedSlaveSecurityGroup(value); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline const Aws::String& GetServiceAccessSecurityGroup() const{ return m_serviceAccessSecurityGroup; }
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline bool ServiceAccessSecurityGroupHasBeenSet() const { return m_serviceAccessSecurityGroupHasBeenSet; }
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline void SetServiceAccessSecurityGroup(const Aws::String& value) { m_serviceAccessSecurityGroupHasBeenSet = true; m_serviceAccessSecurityGroup = value; }
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline void SetServiceAccessSecurityGroup(Aws::String&& value) { m_serviceAccessSecurityGroupHasBeenSet = true; m_serviceAccessSecurityGroup = std::move(value); }
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline void SetServiceAccessSecurityGroup(const char* value) { m_serviceAccessSecurityGroupHasBeenSet = true; m_serviceAccessSecurityGroup.assign(value); }
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline JobFlowInstancesConfig& WithServiceAccessSecurityGroup(const Aws::String& value) { SetServiceAccessSecurityGroup(value); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline JobFlowInstancesConfig& WithServiceAccessSecurityGroup(Aws::String&& value) { SetServiceAccessSecurityGroup(std::move(value)); return *this;}
/**
* <p>The identifier of the Amazon EC2 security group for the Amazon EMR service to
* access clusters in VPC private subnets.</p>
*/
inline JobFlowInstancesConfig& WithServiceAccessSecurityGroup(const char* value) { SetServiceAccessSecurityGroup(value); return *this;}
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline const Aws::Vector<Aws::String>& GetAdditionalMasterSecurityGroups() const{ return m_additionalMasterSecurityGroups; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline bool AdditionalMasterSecurityGroupsHasBeenSet() const { return m_additionalMasterSecurityGroupsHasBeenSet; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline void SetAdditionalMasterSecurityGroups(const Aws::Vector<Aws::String>& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups = value; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline void SetAdditionalMasterSecurityGroups(Aws::Vector<Aws::String>&& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups = std::move(value); }
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline JobFlowInstancesConfig& WithAdditionalMasterSecurityGroups(const Aws::Vector<Aws::String>& value) { SetAdditionalMasterSecurityGroups(value); return *this;}
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline JobFlowInstancesConfig& WithAdditionalMasterSecurityGroups(Aws::Vector<Aws::String>&& value) { SetAdditionalMasterSecurityGroups(std::move(value)); return *this;}
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline JobFlowInstancesConfig& AddAdditionalMasterSecurityGroups(const Aws::String& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups.push_back(value); return *this; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline JobFlowInstancesConfig& AddAdditionalMasterSecurityGroups(Aws::String&& value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups.push_back(std::move(value)); return *this; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the master node.</p>
*/
inline JobFlowInstancesConfig& AddAdditionalMasterSecurityGroups(const char* value) { m_additionalMasterSecurityGroupsHasBeenSet = true; m_additionalMasterSecurityGroups.push_back(value); return *this; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline const Aws::Vector<Aws::String>& GetAdditionalSlaveSecurityGroups() const{ return m_additionalSlaveSecurityGroups; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline bool AdditionalSlaveSecurityGroupsHasBeenSet() const { return m_additionalSlaveSecurityGroupsHasBeenSet; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline void SetAdditionalSlaveSecurityGroups(const Aws::Vector<Aws::String>& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups = value; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline void SetAdditionalSlaveSecurityGroups(Aws::Vector<Aws::String>&& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups = std::move(value); }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& WithAdditionalSlaveSecurityGroups(const Aws::Vector<Aws::String>& value) { SetAdditionalSlaveSecurityGroups(value); return *this;}
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& WithAdditionalSlaveSecurityGroups(Aws::Vector<Aws::String>&& value) { SetAdditionalSlaveSecurityGroups(std::move(value)); return *this;}
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& AddAdditionalSlaveSecurityGroups(const Aws::String& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups.push_back(value); return *this; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& AddAdditionalSlaveSecurityGroups(Aws::String&& value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups.push_back(std::move(value)); return *this; }
/**
* <p>A list of additional Amazon EC2 security group IDs for the core and task
* nodes.</p>
*/
inline JobFlowInstancesConfig& AddAdditionalSlaveSecurityGroups(const char* value) { m_additionalSlaveSecurityGroupsHasBeenSet = true; m_additionalSlaveSecurityGroups.push_back(value); return *this; }
private:
Aws::String m_masterInstanceType;
bool m_masterInstanceTypeHasBeenSet;
Aws::String m_slaveInstanceType;
bool m_slaveInstanceTypeHasBeenSet;
int m_instanceCount;
bool m_instanceCountHasBeenSet;
Aws::Vector<InstanceGroupConfig> m_instanceGroups;
bool m_instanceGroupsHasBeenSet;
Aws::Vector<InstanceFleetConfig> m_instanceFleets;
bool m_instanceFleetsHasBeenSet;
Aws::String m_ec2KeyName;
bool m_ec2KeyNameHasBeenSet;
PlacementType m_placement;
bool m_placementHasBeenSet;
bool m_keepJobFlowAliveWhenNoSteps;
bool m_keepJobFlowAliveWhenNoStepsHasBeenSet;
bool m_terminationProtected;
bool m_terminationProtectedHasBeenSet;
Aws::String m_hadoopVersion;
bool m_hadoopVersionHasBeenSet;
Aws::String m_ec2SubnetId;
bool m_ec2SubnetIdHasBeenSet;
Aws::Vector<Aws::String> m_ec2SubnetIds;
bool m_ec2SubnetIdsHasBeenSet;
Aws::String m_emrManagedMasterSecurityGroup;
bool m_emrManagedMasterSecurityGroupHasBeenSet;
Aws::String m_emrManagedSlaveSecurityGroup;
bool m_emrManagedSlaveSecurityGroupHasBeenSet;
Aws::String m_serviceAccessSecurityGroup;
bool m_serviceAccessSecurityGroupHasBeenSet;
Aws::Vector<Aws::String> m_additionalMasterSecurityGroups;
bool m_additionalMasterSecurityGroupsHasBeenSet;
Aws::Vector<Aws::String> m_additionalSlaveSecurityGroups;
bool m_additionalSlaveSecurityGroupsHasBeenSet;
};
} // namespace Model
} // namespace EMR
} // namespace Aws