Interface InstanceTypeConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceTypeConfig.Builder,InstanceTypeConfig>,SdkBuilder<InstanceTypeConfig.Builder,InstanceTypeConfig>,SdkPojo
- Enclosing class:
- InstanceTypeConfig
public static interface InstanceTypeConfig.Builder extends SdkPojo, CopyableBuilder<InstanceTypeConfig.Builder,InstanceTypeConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceTypeConfig.BuilderbidPrice(String bidPrice)The bid price for each Amazon EC2 Spot Instance type as defined byInstanceType.InstanceTypeConfig.BuilderbidPriceAsPercentageOfOnDemandPrice(Double bidPriceAsPercentageOfOnDemandPrice)The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined byInstanceType.InstanceTypeConfig.Builderconfigurations(Collection<Configuration> configurations)A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.InstanceTypeConfig.Builderconfigurations(Consumer<Configuration.Builder>... configurations)A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.InstanceTypeConfig.Builderconfigurations(Configuration... configurations)A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.InstanceTypeConfig.BuildercustomAmiId(String customAmiId)The custom AMI ID to use for the instance type.default InstanceTypeConfig.BuilderebsConfiguration(Consumer<EbsConfiguration.Builder> ebsConfiguration)The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.InstanceTypeConfig.BuilderebsConfiguration(EbsConfiguration ebsConfiguration)The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.InstanceTypeConfig.BuilderinstanceType(String instanceType)An Amazon EC2 instance type, such asm3.xlarge.InstanceTypeConfig.Builderpriority(Double priority)The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type.InstanceTypeConfig.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
InstanceTypeConfig.Builder instanceType(String instanceType)
An Amazon EC2 instance type, such as
m3.xlarge.- Parameters:
instanceType- An Amazon EC2 instance type, such asm3.xlarge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightedCapacity
InstanceTypeConfig.Builder weightedCapacity(Integer weightedCapacity)
The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.
- Parameters:
weightedCapacity- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bidPrice
InstanceTypeConfig.Builder bidPrice(String bidPrice)
The bid price for each Amazon EC2 Spot Instance type as defined by
InstanceType. Expressed in USD. If neitherBidPricenorBidPriceAsPercentageOfOnDemandPriceis provided,BidPriceAsPercentageOfOnDemandPricedefaults to 100%.- Parameters:
bidPrice- The bid price for each Amazon EC2 Spot Instance type as defined byInstanceType. Expressed in USD. If neitherBidPricenorBidPriceAsPercentageOfOnDemandPriceis provided,BidPriceAsPercentageOfOnDemandPricedefaults to 100%.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bidPriceAsPercentageOfOnDemandPrice
InstanceTypeConfig.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%). If neitherBidPricenorBidPriceAsPercentageOfOnDemandPriceis provided,BidPriceAsPercentageOfOnDemandPricedefaults to 100%.- 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%). If neitherBidPricenorBidPriceAsPercentageOfOnDemandPriceis provided,BidPriceAsPercentageOfOnDemandPricedefaults to 100%.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsConfiguration
InstanceTypeConfig.Builder ebsConfiguration(EbsConfiguration ebsConfiguration)
The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by
InstanceType.- Parameters:
ebsConfiguration- 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.
-
ebsConfiguration
default InstanceTypeConfig.Builder ebsConfiguration(Consumer<EbsConfiguration.Builder> ebsConfiguration)
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.EbsConfiguration.Builderavoiding the need to create one manually viaEbsConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toebsConfiguration(EbsConfiguration).- Parameters:
ebsConfiguration- a consumer that will call methods onEbsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ebsConfiguration(EbsConfiguration)
-
configurations
InstanceTypeConfig.Builder configurations(Collection<Configuration> configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
- Parameters:
configurations- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
InstanceTypeConfig.Builder configurations(Configuration... configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
- Parameters:
configurations- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configurations
InstanceTypeConfig.Builder configurations(Consumer<Configuration.Builder>... configurations)
A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
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)
-
customAmiId
InstanceTypeConfig.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
InstanceTypeConfig.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.
-
-