@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceTypeSpecification extends Object implements Serializable, Cloneable, StructuredPojo
The configuration specification for each instance type in an instance fleet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Constructor and Description |
---|
InstanceTypeSpecification() |
Modifier and Type | Method and Description |
---|---|
InstanceTypeSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getBidPrice()
The bid price for each EC2 Spot instance type as defined by
InstanceType . |
Double |
getBidPriceAsPercentageOfOnDemandPrice()
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType . |
List<Configuration> |
getConfigurations()
A configuration classification that applies when provisioning cluster instances, which can include configurations
for applications and software bundled with Amazon EMR.
|
List<EbsBlockDevice> |
getEbsBlockDevices()
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType . |
Boolean |
getEbsOptimized()
Evaluates to
TRUE when the specified InstanceType is EBS-optimized. |
String |
getInstanceType()
The EC2 instance type, for example
m3.xlarge . |
Integer |
getWeightedCapacity()
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities
defined in InstanceFleetConfig.
|
int |
hashCode() |
Boolean |
isEbsOptimized()
Evaluates to
TRUE when the specified InstanceType is EBS-optimized. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBidPrice(String bidPrice)
The bid price for each EC2 Spot instance type as defined by
InstanceType . |
void |
setBidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType . |
void |
setConfigurations(Collection<Configuration> configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations
for applications and software bundled with Amazon EMR.
|
void |
setEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType . |
void |
setEbsOptimized(Boolean ebsOptimized)
Evaluates to
TRUE when the specified InstanceType is EBS-optimized. |
void |
setInstanceType(String instanceType)
The EC2 instance type, for example
m3.xlarge . |
void |
setWeightedCapacity(Integer weightedCapacity)
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities
defined in InstanceFleetConfig.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceTypeSpecification |
withBidPrice(String bidPrice)
The bid price for each EC2 Spot instance type as defined by
InstanceType . |
InstanceTypeSpecification |
withBidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType . |
InstanceTypeSpecification |
withConfigurations(Collection<Configuration> configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations
for applications and software bundled with Amazon EMR.
|
InstanceTypeSpecification |
withConfigurations(Configuration... configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations
for applications and software bundled with Amazon EMR.
|
InstanceTypeSpecification |
withEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType . |
InstanceTypeSpecification |
withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType . |
InstanceTypeSpecification |
withEbsOptimized(Boolean ebsOptimized)
Evaluates to
TRUE when the specified InstanceType is EBS-optimized. |
InstanceTypeSpecification |
withInstanceType(String instanceType)
The EC2 instance type, for example
m3.xlarge . |
InstanceTypeSpecification |
withWeightedCapacity(Integer weightedCapacity)
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities
defined in InstanceFleetConfig.
|
public void setInstanceType(String instanceType)
The EC2 instance type, for example m3.xlarge
.
instanceType
- The EC2 instance type, for example m3.xlarge
.public String getInstanceType()
The EC2 instance type, for example m3.xlarge
.
m3.xlarge
.public InstanceTypeSpecification withInstanceType(String instanceType)
The EC2 instance type, for example m3.xlarge
.
instanceType
- The EC2 instance type, for example m3.xlarge
.public void setWeightedCapacity(Integer weightedCapacity)
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics such as vCPUs, memory, or I/O. If not specified, the default value is 1.
weightedCapacity
- The number of units that a provisioned instance of this type provides toward fulfilling the target
capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics
such as vCPUs, memory, or I/O. If not specified, the default value is 1.public Integer getWeightedCapacity()
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics such as vCPUs, memory, or I/O. If not specified, the default value is 1.
public InstanceTypeSpecification withWeightedCapacity(Integer weightedCapacity)
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics such as vCPUs, memory, or I/O. If not specified, the default value is 1.
weightedCapacity
- The number of units that a provisioned instance of this type provides toward fulfilling the target
capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics
such as vCPUs, memory, or I/O. If not specified, the default value is 1.public void setBidPrice(String bidPrice)
The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in USD.
bidPrice
- The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in USD.public String getBidPrice()
The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in USD.
InstanceType
. Expressed in USD.public InstanceTypeSpecification withBidPrice(String bidPrice)
The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in USD.
bidPrice
- The bid price for each EC2 Spot instance type as defined by InstanceType
. Expressed in USD.public void setBidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType
. Expressed as a number (for example, 20 specifies 20%).
bidPriceAsPercentageOfOnDemandPrice
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType
. Expressed as a number (for example, 20 specifies 20%).public Double getBidPriceAsPercentageOfOnDemandPrice()
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType
. Expressed as a number (for example, 20 specifies 20%).
InstanceType
. Expressed as a number (for example, 20 specifies 20%).public InstanceTypeSpecification withBidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)
The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType
. Expressed as a number (for example, 20 specifies 20%).
bidPriceAsPercentageOfOnDemandPrice
- The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by
InstanceType
. Expressed as a number (for example, 20 specifies 20%).public List<Configuration> getConfigurations()
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
public void setConfigurations(Collection<Configuration> configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
configurations
- A configuration classification that applies when provisioning cluster instances, which can include
configurations for applications and software bundled with Amazon EMR.public InstanceTypeSpecification withConfigurations(Configuration... configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
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
- A configuration classification that applies when provisioning cluster instances, which can include
configurations for applications and software bundled with Amazon EMR.public InstanceTypeSpecification withConfigurations(Collection<Configuration> configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
configurations
- A configuration classification that applies when provisioning cluster instances, which can include
configurations for applications and software bundled with Amazon EMR.public List<EbsBlockDevice> getEbsBlockDevices()
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.
InstanceType
.public void setEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.
ebsBlockDevices
- The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.public InstanceTypeSpecification withEbsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.
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 configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.public InstanceTypeSpecification withEbsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.
ebsBlockDevices
- The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by
InstanceType
.public void setEbsOptimized(Boolean ebsOptimized)
Evaluates to TRUE
when the specified InstanceType
is EBS-optimized.
ebsOptimized
- Evaluates to TRUE
when the specified InstanceType
is EBS-optimized.public Boolean getEbsOptimized()
Evaluates to TRUE
when the specified InstanceType
is EBS-optimized.
TRUE
when the specified InstanceType
is EBS-optimized.public InstanceTypeSpecification withEbsOptimized(Boolean ebsOptimized)
Evaluates to TRUE
when the specified InstanceType
is EBS-optimized.
ebsOptimized
- Evaluates to TRUE
when the specified InstanceType
is EBS-optimized.public Boolean isEbsOptimized()
Evaluates to TRUE
when the specified InstanceType
is EBS-optimized.
TRUE
when the specified InstanceType
is EBS-optimized.public String toString()
toString
in class Object
Object.toString()
public InstanceTypeSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.