Interface InstanceGroupConfig.Builder

All Superinterfaces:
Buildable, CopyableBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>, SdkBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>, SdkPojo
Enclosing class:
InstanceGroupConfig

public static interface InstanceGroupConfig.Builder extends SdkPojo, CopyableBuilder<InstanceGroupConfig.Builder,InstanceGroupConfig>
  • Method Details

    • name

      Friendly name given to the instance group.

      Parameters:
      name - Friendly name given to the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • market

      Market type of the Amazon EC2 instances used to create a cluster node.

      Parameters:
      market - Market type of the Amazon EC2 instances used to create a cluster node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • market

      Market type of the Amazon EC2 instances used to create a cluster node.

      Parameters:
      market - Market type of the Amazon EC2 instances used to create a cluster node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceRole

      InstanceGroupConfig.Builder instanceRole(String instanceRole)

      The role of the instance group in the cluster.

      Parameters:
      instanceRole - The role of the instance group in the cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceRole

      InstanceGroupConfig.Builder instanceRole(InstanceRoleType instanceRole)

      The role of the instance group in the cluster.

      Parameters:
      instanceRole - The role of the instance group in the cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • bidPrice

      InstanceGroupConfig.Builder bidPrice(String bidPrice)

      If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.

      Parameters:
      bidPrice - If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify OnDemandPrice to set the amount equal to the On-Demand price, or specify an amount in USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      InstanceGroupConfig.Builder instanceType(String instanceType)

      The Amazon EC2 instance type for all instances in the instance group.

      Parameters:
      instanceType - The Amazon EC2 instance type for all instances in the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      InstanceGroupConfig.Builder instanceCount(Integer instanceCount)

      Target number of instances for the instance group.

      Parameters:
      instanceCount - Target number of instances for the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurations

      InstanceGroupConfig.Builder configurations(Collection<Configuration> configurations)

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

      Parameters:
      configurations -

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurations

      InstanceGroupConfig.Builder configurations(Configuration... configurations)

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

      Parameters:
      configurations -

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurations

      InstanceGroupConfig.Builder configurations(Consumer<Configuration.Builder>... configurations)

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

      This is a convenience method that creates an instance of the Configuration.Builder avoiding the need to create one manually via Configuration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to configurations(List<Configuration>).

      Parameters:
      configurations - a consumer that will call methods on Configuration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ebsConfiguration

      InstanceGroupConfig.Builder ebsConfiguration(EbsConfiguration ebsConfiguration)

      EBS configurations that will be attached to each Amazon EC2 instance in the instance group.

      Parameters:
      ebsConfiguration - EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ebsConfiguration

      default InstanceGroupConfig.Builder ebsConfiguration(Consumer<EbsConfiguration.Builder> ebsConfiguration)

      EBS configurations that will be attached to each Amazon EC2 instance in the instance group.

      This is a convenience method that creates an instance of the EbsConfiguration.Builder avoiding the need to create one manually via EbsConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to ebsConfiguration(EbsConfiguration).

      Parameters:
      ebsConfiguration - a consumer that will call methods on EbsConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • autoScalingPolicy

      InstanceGroupConfig.Builder autoScalingPolicy(AutoScalingPolicy autoScalingPolicy)

      An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

      Parameters:
      autoScalingPolicy - An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • autoScalingPolicy

      default InstanceGroupConfig.Builder autoScalingPolicy(Consumer<AutoScalingPolicy.Builder> autoScalingPolicy)

      An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

      This is a convenience method that creates an instance of the AutoScalingPolicy.Builder avoiding the need to create one manually via AutoScalingPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to autoScalingPolicy(AutoScalingPolicy).

      Parameters:
      autoScalingPolicy - a consumer that will call methods on AutoScalingPolicy.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • customAmiId

      InstanceGroupConfig.Builder customAmiId(String customAmiId)

      The custom AMI ID to use for the provisioned instance group.

      Parameters:
      customAmiId - The custom AMI ID to use for the provisioned instance group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.