@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceGroupConfig extends Object implements Serializable, Cloneable, StructuredPojo
Configuration defining a new instance group.
Constructor and Description |
---|
InstanceGroupConfig()
Default constructor for InstanceGroupConfig object.
|
InstanceGroupConfig(InstanceRoleType instanceRole,
String instanceType,
Integer instanceCount)
Constructs a new InstanceGroupConfig object.
|
InstanceGroupConfig(String instanceRole,
String instanceType,
Integer instanceCount)
Constructs a new InstanceGroupConfig object.
|
Modifier and Type | Method and Description |
---|---|
InstanceGroupConfig |
clone() |
boolean |
equals(Object obj) |
AutoScalingPolicy |
getAutoScalingPolicy()
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
String |
getBidPrice()
If specified, indicates that the instance group uses Spot Instances.
|
List<Configuration> |
getConfigurations()
|
String |
getCustomAmiId()
The custom AMI ID to use for the provisioned instance group.
|
EbsConfiguration |
getEbsConfiguration()
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
|
Integer |
getInstanceCount()
Target number of instances for the instance group.
|
String |
getInstanceRole()
The role of the instance group in the cluster.
|
String |
getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.
|
String |
getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
|
String |
getName()
Friendly name given to the instance group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
void |
setBidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances.
|
void |
setConfigurations(Collection<Configuration> configurations)
|
void |
setCustomAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.
|
void |
setEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
|
void |
setInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
|
void |
setInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
|
void |
setInstanceRole(String instanceRole)
The role of the instance group in the cluster.
|
void |
setInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
|
void |
setMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
void |
setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
void |
setName(String name)
Friendly name given to the instance group.
|
String |
toString()
Returns a string representation of this object.
|
InstanceGroupConfig |
withAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
InstanceGroupConfig |
withBidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances.
|
InstanceGroupConfig |
withConfigurations(Collection<Configuration> configurations)
|
InstanceGroupConfig |
withConfigurations(Configuration... configurations)
|
InstanceGroupConfig |
withCustomAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.
|
InstanceGroupConfig |
withEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
|
InstanceGroupConfig |
withInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
|
InstanceGroupConfig |
withInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
|
InstanceGroupConfig |
withInstanceRole(String instanceRole)
The role of the instance group in the cluster.
|
InstanceGroupConfig |
withInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
|
InstanceGroupConfig |
withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
InstanceGroupConfig |
withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
InstanceGroupConfig |
withName(String name)
Friendly name given to the instance group.
|
public InstanceGroupConfig()
public InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)
instanceRole
- The role of the instance group in the cluster.instanceType
- The Amazon EC2 instance type for all instances in the instance group.instanceCount
- Target number of instances for the instance group.public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)
instanceRole
- The role of the instance group in the cluster.instanceType
- The Amazon EC2 instance type for all instances in the instance group.instanceCount
- Target number of instances for the instance group.public void setName(String name)
Friendly name given to the instance group.
name
- Friendly name given to the instance group.public String getName()
Friendly name given to the instance group.
public InstanceGroupConfig withName(String name)
Friendly name given to the instance group.
name
- Friendly name given to the instance group.public void setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public String getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
MarketType
public InstanceGroupConfig withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public void setMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public InstanceGroupConfig withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
market
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public void setInstanceRole(String instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public String getInstanceRole()
The role of the instance group in the cluster.
InstanceRoleType
public InstanceGroupConfig withInstanceRole(String instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public void setInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public InstanceGroupConfig withInstanceRole(InstanceRoleType instanceRole)
The role of the instance group in the cluster.
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public void setBidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to
pay for Spot Instances. Specify OnDemandPrice
to set the amount equal to the On-Demand price, or
specify an amount in USD.
bidPrice
- If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are
willing to pay for Spot Instances. Specify OnDemandPrice
to set the amount equal to the
On-Demand price, or specify an amount in USD.public String getBidPrice()
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to
pay for Spot Instances. Specify OnDemandPrice
to set the amount equal to the On-Demand price, or
specify an amount in USD.
OnDemandPrice
to set the amount equal to the
On-Demand price, or specify an amount in USD.public InstanceGroupConfig withBidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to
pay for Spot Instances. Specify OnDemandPrice
to set the amount equal to the On-Demand price, or
specify an amount in USD.
bidPrice
- If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are
willing to pay for Spot Instances. Specify OnDemandPrice
to set the amount equal to the
On-Demand price, or specify an amount in USD.public void setInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
instanceType
- The Amazon EC2 instance type for all instances in the instance group.public String getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.
public InstanceGroupConfig withInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
instanceType
- The Amazon EC2 instance type for all instances in the instance group.public void setInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
instanceCount
- Target number of instances for the instance group.public Integer getInstanceCount()
Target number of instances for the instance group.
public InstanceGroupConfig withInstanceCount(Integer instanceCount)
Target number of instances for the instance group.
instanceCount
- Target number of instances for the instance group.public List<Configuration> getConfigurations()
Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
public void setConfigurations(Collection<Configuration> configurations)
Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
configurations
- Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
public InstanceGroupConfig withConfigurations(Configuration... configurations)
Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
NOTE: This method appends the values to the existing list (if any). Use
setConfigurations(java.util.Collection)
or withConfigurations(java.util.Collection)
if you want
to override the existing values.
configurations
- Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
public InstanceGroupConfig withConfigurations(Collection<Configuration> configurations)
Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
configurations
- Amazon EMR releases 4.x or higher.
The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
public void setEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
ebsConfiguration
- EBS configurations that will be attached to each Amazon EC2 instance in the instance group.public EbsConfiguration getEbsConfiguration()
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
public InstanceGroupConfig withEbsConfiguration(EbsConfiguration ebsConfiguration)
EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
ebsConfiguration
- EBS configurations that will be attached to each Amazon EC2 instance in the instance group.public void setAutoScalingPolicy(AutoScalingPolicy 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 Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
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 Amazon EC2
instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.public AutoScalingPolicy getAutoScalingPolicy()
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 Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
public InstanceGroupConfig withAutoScalingPolicy(AutoScalingPolicy 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 Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
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 Amazon EC2
instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.public void setCustomAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.
customAmiId
- The custom AMI ID to use for the provisioned instance group.public String getCustomAmiId()
The custom AMI ID to use for the provisioned instance group.
public InstanceGroupConfig withCustomAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.
customAmiId
- The custom AMI ID to use for the provisioned instance group.public String toString()
toString
in class Object
Object.toString()
public InstanceGroupConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.