Class EmrCreateCluster.InstanceFleetConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceFleetConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.InstanceFleetConfigProperty>
- Enclosing interface:
- EmrCreateCluster.InstanceFleetConfigProperty
@Stability(Stable)
public static final class EmrCreateCluster.InstanceFleetConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.InstanceFleetConfigProperty>
A builder for
EmrCreateCluster.InstanceFleetConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceFleetType
(EmrCreateCluster.InstanceRoleType instanceFleetType) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getInstanceFleetType()
instanceTypeConfigs
(List<? extends EmrCreateCluster.InstanceTypeConfigProperty> instanceTypeConfigs) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getInstanceTypeConfigs()
launchSpecifications
(EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty launchSpecifications) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getLaunchSpecifications()
Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getName()
targetOnDemandCapacity
(Number targetOnDemandCapacity) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getTargetOnDemandCapacity()
targetSpotCapacity
(Number targetSpotCapacity) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getTargetSpotCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceFleetType
@Stability(Stable) public EmrCreateCluster.InstanceFleetConfigProperty.Builder instanceFleetType(EmrCreateCluster.InstanceRoleType instanceFleetType) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getInstanceFleetType()
- Parameters:
instanceFleetType
- The node type that the instance fleet hosts. This parameter is required. Valid values are MASTER,CORE,and TASK.- Returns:
this
-
instanceTypeConfigs
@Stability(Stable) public EmrCreateCluster.InstanceFleetConfigProperty.Builder instanceTypeConfigs(List<? extends EmrCreateCluster.InstanceTypeConfigProperty> instanceTypeConfigs) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getInstanceTypeConfigs()
- Parameters:
instanceTypeConfigs
- The instance type configurations that define the EC2 instances in the instance fleet.- Returns:
this
-
launchSpecifications
@Stability(Stable) public EmrCreateCluster.InstanceFleetConfigProperty.Builder launchSpecifications(EmrCreateCluster.InstanceFleetProvisioningSpecificationsProperty launchSpecifications) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getLaunchSpecifications()
- Parameters:
launchSpecifications
- The launch specification for the instance fleet.- Returns:
this
-
name
Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getName()
- Parameters:
name
- The friendly name of the instance fleet.- Returns:
this
-
targetOnDemandCapacity
@Stability(Stable) public EmrCreateCluster.InstanceFleetConfigProperty.Builder targetOnDemandCapacity(Number targetOnDemandCapacity) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getTargetOnDemandCapacity()
- Parameters:
targetOnDemandCapacity
- The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision.- Returns:
this
-
targetSpotCapacity
@Stability(Stable) public EmrCreateCluster.InstanceFleetConfigProperty.Builder targetSpotCapacity(Number targetSpotCapacity) Sets the value ofEmrCreateCluster.InstanceFleetConfigProperty.getTargetSpotCapacity()
- Parameters:
targetSpotCapacity
- The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.InstanceFleetConfigProperty>
- Returns:
- a new instance of
EmrCreateCluster.InstanceFleetConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-