Interface InstanceGroupConfig.Builder

    • Method Detail

      • name

        InstanceGroupConfig.Builder name​(String 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

        InstanceGroupConfig.Builder market​(String 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:
        MarketType, MarketType
      • market

        InstanceGroupConfig.Builder market​(MarketType 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:
        MarketType, MarketType
      • 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:
        InstanceRoleType, InstanceRoleType
      • 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).

        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:
        #configurations(java.util.Collection)
      • 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.
      • 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.
      • 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.