Class CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.InstanceFleetResizingSpecificationsProperty>
- Enclosing interface:
CfnCluster.InstanceFleetResizingSpecificationsProperty
@Stability(Stable)
public static final class CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.InstanceFleetResizingSpecificationsProperty>
A builder for
CfnCluster.InstanceFleetResizingSpecificationsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.onDemandResizeSpecification
(IResolvable onDemandResizeSpecification) onDemandResizeSpecification
(CfnCluster.OnDemandResizingSpecificationProperty onDemandResizeSpecification) spotResizeSpecification
(IResolvable spotResizeSpecification) spotResizeSpecification
(CfnCluster.SpotResizingSpecificationProperty spotResizeSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onDemandResizeSpecification
@Stability(Stable) public CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder onDemandResizeSpecification(IResolvable onDemandResizeSpecification) Sets the value ofCfnCluster.InstanceFleetResizingSpecificationsProperty.getOnDemandResizeSpecification()
- Parameters:
onDemandResizeSpecification
- The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.- Returns:
this
-
onDemandResizeSpecification
@Stability(Stable) public CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder onDemandResizeSpecification(CfnCluster.OnDemandResizingSpecificationProperty onDemandResizeSpecification) Sets the value ofCfnCluster.InstanceFleetResizingSpecificationsProperty.getOnDemandResizeSpecification()
- Parameters:
onDemandResizeSpecification
- The resize specification for On-Demand Instances in the instance fleet, which contains the allocation strategy, capacity reservation options, and the resize timeout period.- Returns:
this
-
spotResizeSpecification
@Stability(Stable) public CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder spotResizeSpecification(IResolvable spotResizeSpecification) Sets the value ofCfnCluster.InstanceFleetResizingSpecificationsProperty.getSpotResizeSpecification()
- Parameters:
spotResizeSpecification
- The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.- Returns:
this
-
spotResizeSpecification
@Stability(Stable) public CfnCluster.InstanceFleetResizingSpecificationsProperty.Builder spotResizeSpecification(CfnCluster.SpotResizingSpecificationProperty spotResizeSpecification) Sets the value ofCfnCluster.InstanceFleetResizingSpecificationsProperty.getSpotResizeSpecification()
- Parameters:
spotResizeSpecification
- The resize specification for Spot Instances in the instance fleet, which contains the allocation strategy and the resize timeout period.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.InstanceFleetResizingSpecificationsProperty>
- Returns:
- a new instance of
CfnCluster.InstanceFleetResizingSpecificationsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-