Class CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.emr.CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty>
- Enclosing interface:
CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onDemandResizeSpecification(CfnClusterPropsMixin.OnDemandResizingSpecificationProperty onDemandResizeSpecification) onDemandResizeSpecification(IResolvable onDemandResizeSpecification) spotResizeSpecification(CfnClusterPropsMixin.SpotResizingSpecificationProperty spotResizeSpecification) spotResizeSpecification(IResolvable spotResizeSpecification)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onDemandResizeSpecification
@Stability(Stable) public CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder onDemandResizeSpecification(IResolvable onDemandResizeSpecification) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder onDemandResizeSpecification(CfnClusterPropsMixin.OnDemandResizingSpecificationProperty onDemandResizeSpecification) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder spotResizeSpecification(IResolvable spotResizeSpecification) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty.Builder spotResizeSpecification(CfnClusterPropsMixin.SpotResizingSpecificationProperty spotResizeSpecification) Sets the value ofCfnClusterPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.InstanceFleetResizingSpecificationsProperty - Throws:
NullPointerException- if any required attribute was not provided
-