@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceGroup extends Object implements Serializable, Cloneable, StructuredPojo
This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.
Constructor and Description |
---|
InstanceGroup() |
Modifier and Type | Method and Description |
---|---|
InstanceGroup |
clone() |
boolean |
equals(Object obj) |
AutoScalingPolicyDescription |
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()
|
Long |
getConfigurationsVersion()
The version number of the requested configuration specification for this instance group.
|
String |
getCustomAmiId()
The custom AMI ID to use for the provisioned instance group.
|
List<EbsBlockDevice> |
getEbsBlockDevices()
The EBS block devices that are mapped to this instance group.
|
Boolean |
getEbsOptimized()
If the instance group is EBS-optimized.
|
String |
getId()
The identifier of the instance group.
|
String |
getInstanceGroupType()
The type of the instance group.
|
String |
getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.
|
List<Configuration> |
getLastSuccessfullyAppliedConfigurations()
A list of configurations that were successfully applied for an instance group last time.
|
Long |
getLastSuccessfullyAppliedConfigurationsVersion()
The version number of a configuration specification that was successfully applied for an instance group last
time.
|
String |
getMarket()
The marketplace to provision instances for this group.
|
String |
getName()
The name of the instance group.
|
Integer |
getRequestedInstanceCount()
The target number of instances for the instance group.
|
Integer |
getRunningInstanceCount()
The number of instances currently running in this instance group.
|
ShrinkPolicy |
getShrinkPolicy()
Policy for customizing shrink operations.
|
InstanceGroupStatus |
getStatus()
The current status of the instance group.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
If the instance group is EBS-optimized.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAutoScalingPolicy(AutoScalingPolicyDescription 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 |
setConfigurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.
|
void |
setCustomAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.
|
void |
setEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
|
void |
setEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized.
|
void |
setId(String id)
The identifier of the instance group.
|
void |
setInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
void |
setInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
void |
setInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
|
void |
setLastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
|
void |
setLastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last
time.
|
void |
setMarket(MarketType market)
The marketplace to provision instances for this group.
|
void |
setMarket(String market)
The marketplace to provision instances for this group.
|
void |
setName(String name)
The name of the instance group.
|
void |
setRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
void |
setRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
void |
setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
void |
setStatus(InstanceGroupStatus status)
The current status of the instance group.
|
String |
toString()
Returns a string representation of this object.
|
InstanceGroup |
withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy)
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.
|
InstanceGroup |
withBidPrice(String bidPrice)
If specified, indicates that the instance group uses Spot Instances.
|
InstanceGroup |
withConfigurations(Collection<Configuration> configurations)
|
InstanceGroup |
withConfigurations(Configuration... configurations)
|
InstanceGroup |
withConfigurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.
|
InstanceGroup |
withCustomAmiId(String customAmiId)
The custom AMI ID to use for the provisioned instance group.
|
InstanceGroup |
withEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
|
InstanceGroup |
withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
|
InstanceGroup |
withEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized.
|
InstanceGroup |
withId(String id)
The identifier of the instance group.
|
InstanceGroup |
withInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.
|
InstanceGroup |
withLastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
|
InstanceGroup |
withLastSuccessfullyAppliedConfigurations(Configuration... lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
|
InstanceGroup |
withLastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last
time.
|
InstanceGroup |
withMarket(MarketType market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withMarket(String market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withName(String name)
The name of the instance group.
|
InstanceGroup |
withRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
InstanceGroup |
withRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
InstanceGroup |
withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
|
InstanceGroup |
withStatus(InstanceGroupStatus status)
The current status of the instance group.
|
public void setId(String id)
The identifier of the instance group.
id
- The identifier of the instance group.public String getId()
The identifier of the instance group.
public InstanceGroup withId(String id)
The identifier of the instance group.
id
- The identifier of the instance group.public void setName(String name)
The name of the instance group.
name
- The name of the instance group.public String getName()
The name of the instance group.
public InstanceGroup withName(String name)
The name of the instance group.
name
- The name of the instance group.public void setMarket(String market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public String getMarket()
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
MarketType
public InstanceGroup withMarket(String market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public void setMarket(MarketType market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public InstanceGroup withMarket(MarketType market)
The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
market
- The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.MarketType
public void setInstanceGroupType(String instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public String getInstanceGroupType()
The type of the instance group. Valid values are MASTER, CORE or TASK.
InstanceGroupType
public InstanceGroup withInstanceGroupType(String instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public void setInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public InstanceGroup withInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group. Valid values are MASTER, CORE or TASK.
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
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 InstanceGroup 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 InstanceGroup 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 setRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
requestedInstanceCount
- The target number of instances for the instance group.public Integer getRequestedInstanceCount()
The target number of instances for the instance group.
public InstanceGroup withRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
requestedInstanceCount
- The target number of instances for the instance group.public void setRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
runningInstanceCount
- The number of instances currently running in this instance group.public Integer getRunningInstanceCount()
The number of instances currently running in this instance group.
public InstanceGroup withRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
runningInstanceCount
- The number of instances currently running in this instance group.public void setStatus(InstanceGroupStatus status)
The current status of the instance group.
status
- The current status of the instance group.public InstanceGroupStatus getStatus()
The current status of the instance group.
public InstanceGroup withStatus(InstanceGroupStatus status)
The current status of the instance group.
status
- The current status of 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 InstanceGroup 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 InstanceGroup 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 setConfigurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.
configurationsVersion
- The version number of the requested configuration specification for this instance group.public Long getConfigurationsVersion()
The version number of the requested configuration specification for this instance group.
public InstanceGroup withConfigurationsVersion(Long configurationsVersion)
The version number of the requested configuration specification for this instance group.
configurationsVersion
- The version number of the requested configuration specification for this instance group.public List<Configuration> getLastSuccessfullyAppliedConfigurations()
A list of configurations that were successfully applied for an instance group last time.
public void setLastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
lastSuccessfullyAppliedConfigurations
- A list of configurations that were successfully applied for an instance group last time.public InstanceGroup withLastSuccessfullyAppliedConfigurations(Configuration... lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
NOTE: This method appends the values to the existing list (if any). Use
setLastSuccessfullyAppliedConfigurations(java.util.Collection)
or
withLastSuccessfullyAppliedConfigurations(java.util.Collection)
if you want to override the existing
values.
lastSuccessfullyAppliedConfigurations
- A list of configurations that were successfully applied for an instance group last time.public InstanceGroup withLastSuccessfullyAppliedConfigurations(Collection<Configuration> lastSuccessfullyAppliedConfigurations)
A list of configurations that were successfully applied for an instance group last time.
lastSuccessfullyAppliedConfigurations
- A list of configurations that were successfully applied for an instance group last time.public void setLastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last time.
lastSuccessfullyAppliedConfigurationsVersion
- The version number of a configuration specification that was successfully applied for an instance group
last time.public Long getLastSuccessfullyAppliedConfigurationsVersion()
The version number of a configuration specification that was successfully applied for an instance group last time.
public InstanceGroup withLastSuccessfullyAppliedConfigurationsVersion(Long lastSuccessfullyAppliedConfigurationsVersion)
The version number of a configuration specification that was successfully applied for an instance group last time.
lastSuccessfullyAppliedConfigurationsVersion
- The version number of a configuration specification that was successfully applied for an instance group
last time.public List<EbsBlockDevice> getEbsBlockDevices()
The EBS block devices that are mapped to this instance group.
public void setEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.public InstanceGroup withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
NOTE: This method appends the values to the existing list (if any). Use
setEbsBlockDevices(java.util.Collection)
or withEbsBlockDevices(java.util.Collection)
if you
want to override the existing values.
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.public InstanceGroup withEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The EBS block devices that are mapped to this instance group.
ebsBlockDevices
- The EBS block devices that are mapped to this instance group.public void setEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
ebsOptimized
- If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration
stack and provides additional, dedicated capacity for Amazon EBS I/O.public Boolean getEbsOptimized()
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
public InstanceGroup withEbsOptimized(Boolean ebsOptimized)
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
ebsOptimized
- If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration
stack and provides additional, dedicated capacity for Amazon EBS I/O.public Boolean isEbsOptimized()
If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
public void setShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.public ShrinkPolicy getShrinkPolicy()
Policy for customizing shrink operations.
public InstanceGroup withShrinkPolicy(ShrinkPolicy shrinkPolicy)
Policy for customizing shrink operations.
shrinkPolicy
- Policy for customizing shrink operations.public void setAutoScalingPolicy(AutoScalingPolicyDescription 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 AutoScalingPolicyDescription 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 InstanceGroup withAutoScalingPolicy(AutoScalingPolicyDescription 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 InstanceGroup 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 InstanceGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2023. All rights reserved.