public static final class EmrCreateCluster.InstanceGroupConfigProperty.Builder
extends java.lang.Object
EmrCreateCluster.InstanceGroupConfigProperty
Constructor and Description |
---|
Builder() |
public EmrCreateCluster.InstanceGroupConfigProperty.Builder instanceCount(java.lang.Number instanceCount)
EmrCreateCluster.InstanceGroupConfigProperty.getInstanceCount()
instanceCount
- Target number of instances for the instance group. This parameter is required.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder instanceRole(EmrCreateCluster.InstanceRoleType instanceRole)
EmrCreateCluster.InstanceGroupConfigProperty.getInstanceRole()
instanceRole
- The role of the instance group in the cluster. This parameter is required.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder instanceType(java.lang.String instanceType)
EmrCreateCluster.InstanceGroupConfigProperty.getInstanceType()
instanceType
- The EC2 instance type for all instances in the instance group. This parameter is required.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder autoScalingPolicy(EmrCreateCluster.AutoScalingPolicyProperty autoScalingPolicy)
EmrCreateCluster.InstanceGroupConfigProperty.getAutoScalingPolicy()
autoScalingPolicy
- An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder bidPrice(java.lang.String bidPrice)
EmrCreateCluster.InstanceGroupConfigProperty.getBidPrice()
bidPrice
- The bid price for each EC2 Spot instance type as defined by InstanceType.
Expressed in USD.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder configurations(java.util.List<? extends EmrCreateCluster.ConfigurationProperty> configurations)
EmrCreateCluster.InstanceGroupConfigProperty.getConfigurations()
configurations
- The list of configurations supplied for an EMR cluster instance group.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder ebsConfiguration(EmrCreateCluster.EbsConfigurationProperty ebsConfiguration)
EmrCreateCluster.InstanceGroupConfigProperty.getEbsConfiguration()
ebsConfiguration
- EBS configurations that will be attached to each EC2 instance in the instance group.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder market(EmrCreateCluster.InstanceMarket market)
EmrCreateCluster.InstanceGroupConfigProperty.getMarket()
market
- Market type of the EC2 instances used to create a cluster node.this
public EmrCreateCluster.InstanceGroupConfigProperty.Builder name(java.lang.String name)
EmrCreateCluster.InstanceGroupConfigProperty.getName()
name
- Friendly name given to the instance group.this
public EmrCreateCluster.InstanceGroupConfigProperty build()
EmrCreateCluster.InstanceGroupConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided