Class CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceFleetConfig.InstanceTypeConfigProperty>
- Enclosing interface:
CfnInstanceFleetConfig.InstanceTypeConfigProperty
@Stability(Stable)
public static final class CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceFleetConfig.InstanceTypeConfigProperty>
A builder for
CfnInstanceFleetConfig.InstanceTypeConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getBidPrice()bidPriceAsPercentageOfOnDemandPrice(Number bidPriceAsPercentageOfOnDemandPrice) build()Builds the configured instance.configurations(List<? extends Object> configurations) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getConfigurations()configurations(IResolvable configurations) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getConfigurations()customAmiId(String customAmiId) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getCustomAmiId()ebsConfiguration(IResolvable ebsConfiguration) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getEbsConfiguration()ebsConfiguration(CfnInstanceFleetConfig.EbsConfigurationProperty ebsConfiguration) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getEbsConfiguration()instanceType(String instanceType) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getInstanceType()weightedCapacity(Number weightedCapacity) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getWeightedCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder instanceType(String instanceType) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getInstanceType()- Parameters:
instanceType- An Amazon EC2 instance type, such asm3.xlarge. This parameter is required.- Returns:
this
-
bidPrice
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder bidPrice(String bidPrice) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getBidPrice()- 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:
this
-
bidPriceAsPercentageOfOnDemandPrice
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder bidPriceAsPercentageOfOnDemandPrice(Number bidPriceAsPercentageOfOnDemandPrice) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getBidPriceAsPercentageOfOnDemandPrice()- 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:
this
-
configurations
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder configurations(IResolvable configurations) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getConfigurations()- Parameters:
configurations-
An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file. For more information, see Configuring Applications .Amazon EMR releases 4.x or later.
- Returns:
this
-
configurations
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder configurations(List<? extends Object> configurations) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getConfigurations()- Parameters:
configurations-
An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file. For more information, see Configuring Applications .Amazon EMR releases 4.x or later.
- Returns:
this
-
customAmiId
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder customAmiId(String customAmiId) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getCustomAmiId()- Parameters:
customAmiId- The custom AMI ID to use for the instance type.- Returns:
this
-
ebsConfiguration
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder ebsConfiguration(IResolvable ebsConfiguration) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getEbsConfiguration()- Parameters:
ebsConfiguration- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.- Returns:
this
-
ebsConfiguration
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder ebsConfiguration(CfnInstanceFleetConfig.EbsConfigurationProperty ebsConfiguration) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getEbsConfiguration()- Parameters:
ebsConfiguration- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined byInstanceType.- Returns:
this
-
weightedCapacity
@Stability(Stable) public CfnInstanceFleetConfig.InstanceTypeConfigProperty.Builder weightedCapacity(Number weightedCapacity) Sets the value ofCfnInstanceFleetConfig.InstanceTypeConfigProperty.getWeightedCapacity()- Parameters:
weightedCapacity- The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined inInstanceFleetConfig. 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceFleetConfig.InstanceTypeConfigProperty>- Returns:
- a new instance of
CfnInstanceFleetConfig.InstanceTypeConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-