public static final class CfnCluster.InstanceTypeConfigProperty.Builder
extends java.lang.Object
CfnCluster.InstanceTypeConfigProperty
Constructor and Description |
---|
Builder() |
public CfnCluster.InstanceTypeConfigProperty.Builder instanceType(java.lang.String instanceType)
CfnCluster.InstanceTypeConfigProperty.getInstanceType()
instanceType
- An EC2 instance type, such as `m3.xlarge` . This parameter is required.this
public CfnCluster.InstanceTypeConfigProperty.Builder bidPrice(java.lang.String bidPrice)
CfnCluster.InstanceTypeConfigProperty.getBidPrice()
bidPrice
- The bid price for each EC2 Spot Instance type as defined by `InstanceType` .
Expressed in USD. If neither BidPrice
nor BidPriceAsPercentageOfOnDemandPrice
is provided, BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.this
public CfnCluster.InstanceTypeConfigProperty.Builder bidPriceAsPercentageOfOnDemandPrice(java.lang.Number bidPriceAsPercentageOfOnDemandPrice)
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%). If neither BidPrice
nor BidPriceAsPercentageOfOnDemandPrice
is provided, BidPriceAsPercentageOfOnDemandPrice
defaults to 100%.this
public CfnCluster.InstanceTypeConfigProperty.Builder configurations(IResolvable configurations)
CfnCluster.InstanceTypeConfigProperty.getConfigurations()
configurations
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.this
public CfnCluster.InstanceTypeConfigProperty.Builder configurations(java.util.List<? extends java.lang.Object> configurations)
CfnCluster.InstanceTypeConfigProperty.getConfigurations()
configurations
- A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.this
public CfnCluster.InstanceTypeConfigProperty.Builder customAmiId(java.lang.String customAmiId)
CfnCluster.InstanceTypeConfigProperty.getCustomAmiId()
customAmiId
- The custom AMI ID to use for the instance type.this
public CfnCluster.InstanceTypeConfigProperty.Builder ebsConfiguration(IResolvable ebsConfiguration)
CfnCluster.InstanceTypeConfigProperty.getEbsConfiguration()
ebsConfiguration
- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by `InstanceType` .this
public CfnCluster.InstanceTypeConfigProperty.Builder ebsConfiguration(CfnCluster.EbsConfigurationProperty ebsConfiguration)
CfnCluster.InstanceTypeConfigProperty.getEbsConfiguration()
ebsConfiguration
- The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by `InstanceType` .this
public CfnCluster.InstanceTypeConfigProperty.Builder weightedCapacity(java.lang.Number weightedCapacity)
CfnCluster.InstanceTypeConfigProperty.getWeightedCapacity()
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.this
public CfnCluster.InstanceTypeConfigProperty build()
CfnCluster.InstanceTypeConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided