Class EmrCreateCluster.InstanceTypeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceTypeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.InstanceTypeConfigProperty>
- Enclosing interface:
EmrCreateCluster.InstanceTypeConfigProperty
@Stability(Stable)
public static final class EmrCreateCluster.InstanceTypeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.InstanceTypeConfigProperty>
A builder for
EmrCreateCluster.InstanceTypeConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getBidPrice()
bidPriceAsPercentageOfOnDemandPrice
(Number bidPriceAsPercentageOfOnDemandPrice) build()
Builds the configured instance.configurations
(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getConfigurations()
ebsConfiguration
(EmrCreateCluster.EbsConfigurationProperty ebsConfiguration) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getEbsConfiguration()
instanceType
(String instanceType) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getInstanceType()
weightedCapacity
(Number weightedCapacity) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getWeightedCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public EmrCreateCluster.InstanceTypeConfigProperty.Builder instanceType(String instanceType) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getInstanceType()
- Parameters:
instanceType
- An EC2 instance type. This parameter is required.- Returns:
this
-
bidPrice
@Stability(Stable) public EmrCreateCluster.InstanceTypeConfigProperty.Builder bidPrice(String bidPrice) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getBidPrice()
- Parameters:
bidPrice
- The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD.- Returns:
this
-
bidPriceAsPercentageOfOnDemandPrice
@Stability(Stable) public EmrCreateCluster.InstanceTypeConfigProperty.Builder bidPriceAsPercentageOfOnDemandPrice(Number bidPriceAsPercentageOfOnDemandPrice) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getBidPriceAsPercentageOfOnDemandPrice()
- Parameters:
bidPriceAsPercentageOfOnDemandPrice
- The bid price, as a percentage of On-Demand price.- Returns:
this
-
configurations
@Stability(Stable) public EmrCreateCluster.InstanceTypeConfigProperty.Builder configurations(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getConfigurations()
- 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:
this
-
ebsConfiguration
@Stability(Stable) public EmrCreateCluster.InstanceTypeConfigProperty.Builder ebsConfiguration(EmrCreateCluster.EbsConfigurationProperty ebsConfiguration) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getEbsConfiguration()
- Parameters:
ebsConfiguration
- The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.- Returns:
this
-
weightedCapacity
@Stability(Stable) public EmrCreateCluster.InstanceTypeConfigProperty.Builder weightedCapacity(Number weightedCapacity) Sets the value ofEmrCreateCluster.InstanceTypeConfigProperty.getWeightedCapacity()
- Parameters:
weightedCapacity
- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in the InstanceFleetConfig.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.InstanceTypeConfigProperty>
- Returns:
- a new instance of
EmrCreateCluster.InstanceTypeConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-