Interface InstanceTypeSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceTypeSpecification.Builder,InstanceTypeSpecification>,SdkBuilder<InstanceTypeSpecification.Builder,InstanceTypeSpecification>,SdkPojo
- Enclosing class:
- InstanceTypeSpecification
public static interface InstanceTypeSpecification.Builder extends SdkPojo, CopyableBuilder<InstanceTypeSpecification.Builder,InstanceTypeSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceTypeSpecification.BuilderbidPrice(String bidPrice)The bid price for each Amazon EC2 Spot Instance type as defined byInstanceType.InstanceTypeSpecification.BuilderbidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined byInstanceType.InstanceTypeSpecification.Builderconfigurations(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.Builderconfigurations(Consumer<Configuration.Builder>... configurations)A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.InstanceTypeSpecification.Builderconfigurations(Configuration... configurations)A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.InstanceTypeSpecification.BuildercustomAmiId(String customAmiId)The custom AMI ID to use for the instance type.InstanceTypeSpecification.BuilderebsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.InstanceTypeSpecification.BuilderebsBlockDevices(Consumer<EbsBlockDevice.Builder>... ebsBlockDevices)The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.InstanceTypeSpecification.BuilderebsBlockDevices(EbsBlockDevice... ebsBlockDevices)The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.InstanceTypeSpecification.BuilderebsOptimized(Boolean ebsOptimized)Evaluates toTRUEwhen the specifiedInstanceTypeis EBS-optimized.InstanceTypeSpecification.BuilderinstanceType(String instanceType)The Amazon EC2 instance type, for examplem3.xlarge.InstanceTypeSpecification.Builderpriority(Double priority)The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.InstanceTypeSpecification.BuilderweightedCapacity(Integer weightedCapacity)The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
instanceType
InstanceTypeSpecification.Builder instanceType(String instanceType)
The Amazon EC2 instance type, for example
m3.xlarge.- Parameters:
instanceType- The Amazon EC2 instance type, for examplem3.xlarge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightedCapacity
InstanceTypeSpecification.Builder weightedCapacity(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bidPrice
InstanceTypeSpecification.Builder bidPrice(String bidPrice)
The bid price for each Amazon EC2 Spot Instance type as defined by
InstanceType. Expressed in USD.- Parameters:
bidPrice- The bid price for each Amazon EC2 Spot Instance type as defined byInstanceType. Expressed in USD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bidPriceAsPercentageOfOnDemandPrice
InstanceTypeSpecification.Builder bidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)
The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by
InstanceType. Expressed as a number (for example, 20 specifies 20%).- Parameters:
bidPriceAsPercentageOfOnDemandPrice- The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined byInstanceType. Expressed as a number (for example, 20 specifies 20%).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
InstanceTypeSpecification.Builder configurations(Collection<Configuration> configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
- Parameters:
configurations- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
InstanceTypeSpecification.Builder configurations(Configuration... configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
- Parameters:
configurations- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
InstanceTypeSpecification.Builder configurations(Consumer<Configuration.Builder>... configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
This is a convenience method that creates an instance of theConfiguration.Builderavoiding the need to create one manually viaConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#configurations(List.) - Parameters:
configurations- a consumer that will call methods onConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#configurations(java.util.Collection)
-
ebsBlockDevices
InstanceTypeSpecification.Builder ebsBlockDevices(Collection<EbsBlockDevice> ebsBlockDevices)
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by
InstanceType.- Parameters:
ebsBlockDevices- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsBlockDevices
InstanceTypeSpecification.Builder ebsBlockDevices(EbsBlockDevice... ebsBlockDevices)
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by
InstanceType.- Parameters:
ebsBlockDevices- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsBlockDevices
InstanceTypeSpecification.Builder ebsBlockDevices(Consumer<EbsBlockDevice.Builder>... ebsBlockDevices)
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by
This is a convenience method that creates an instance of theInstanceType.EbsBlockDevice.Builderavoiding the need to create one manually viaEbsBlockDevice.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ebsBlockDevices(List.) - Parameters:
ebsBlockDevices- a consumer that will call methods onEbsBlockDevice.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ebsBlockDevices(java.util.Collection)
-
ebsOptimized
InstanceTypeSpecification.Builder ebsOptimized(Boolean ebsOptimized)
Evaluates to
TRUEwhen the specifiedInstanceTypeis EBS-optimized.- Parameters:
ebsOptimized- Evaluates toTRUEwhen the specifiedInstanceTypeis EBS-optimized.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customAmiId
InstanceTypeSpecification.Builder customAmiId(String customAmiId)
The custom AMI ID to use for the instance type.
- Parameters:
customAmiId- The custom AMI ID to use for the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
InstanceTypeSpecification.Builder priority(Double priority)
The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.
- Parameters:
priority- The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-