Class EmrCreateCluster.InstanceGroupConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.EmrCreateCluster.InstanceGroupConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmrCreateCluster.InstanceGroupConfigProperty>
- Enclosing interface:
- EmrCreateCluster.InstanceGroupConfigProperty
@Stability(Stable)
public static final class EmrCreateCluster.InstanceGroupConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<EmrCreateCluster.InstanceGroupConfigProperty>
A builder for
EmrCreateCluster.InstanceGroupConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingPolicy(EmrCreateCluster.AutoScalingPolicyProperty autoScalingPolicy) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getAutoScalingPolicy()Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getBidPrice()build()Builds the configured instance.configurations(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getConfigurations()ebsConfiguration(EmrCreateCluster.EbsConfigurationProperty ebsConfiguration) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getEbsConfiguration()instanceCount(Number instanceCount) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getInstanceCount()instanceRole(EmrCreateCluster.InstanceRoleType instanceRole) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getInstanceRole()instanceType(String instanceType) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getInstanceType()Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getMarket()Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceCount
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder instanceCount(Number instanceCount) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getInstanceCount()- Parameters:
instanceCount- Target number of instances for the instance group. This parameter is required.- Returns:
this
-
instanceRole
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder instanceRole(EmrCreateCluster.InstanceRoleType instanceRole) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getInstanceRole()- Parameters:
instanceRole- The role of the instance group in the cluster. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder instanceType(String instanceType) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getInstanceType()- Parameters:
instanceType- The EC2 instance type for all instances in the instance group. This parameter is required.- Returns:
this
-
autoScalingPolicy
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder autoScalingPolicy(EmrCreateCluster.AutoScalingPolicyProperty autoScalingPolicy) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getAutoScalingPolicy()- Parameters:
autoScalingPolicy- An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.- Returns:
this
-
bidPrice
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder bidPrice(String bidPrice) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getBidPrice()- Parameters:
bidPrice- The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD.- Returns:
this
-
configurations
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder configurations(List<? extends EmrCreateCluster.ConfigurationProperty> configurations) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getConfigurations()- Parameters:
configurations- The list of configurations supplied for an EMR cluster instance group.- Returns:
this
-
ebsConfiguration
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder ebsConfiguration(EmrCreateCluster.EbsConfigurationProperty ebsConfiguration) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getEbsConfiguration()- Parameters:
ebsConfiguration- EBS configurations that will be attached to each EC2 instance in the instance group.- Returns:
this
-
market
@Stability(Stable) public EmrCreateCluster.InstanceGroupConfigProperty.Builder market(EmrCreateCluster.InstanceMarket market) Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getMarket()- Parameters:
market- Market type of the EC2 instances used to create a cluster node.- Returns:
this
-
name
Sets the value ofEmrCreateCluster.InstanceGroupConfigProperty.getName()- Parameters:
name- Friendly name given to the instance group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EmrCreateCluster.InstanceGroupConfigProperty>- Returns:
- a new instance of
EmrCreateCluster.InstanceGroupConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-