Class InstanceGroupConfig

java.lang.Object
com.amazonaws.services.elasticmapreduce.model.InstanceGroupConfig
All Implemented Interfaces:
Serializable, Cloneable

public class InstanceGroupConfig extends Object implements Serializable, Cloneable

Configuration defining a new instance group.

See Also:
  • Constructor Details

    • InstanceGroupConfig

      public InstanceGroupConfig()
      Default constructor for InstanceGroupConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • InstanceGroupConfig

      public InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)
      Constructs a new InstanceGroupConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      instanceRole - The role of the instance group in the cluster.
      instanceType - The Amazon EC2 instance type for all instances in the instance group.
      instanceCount - Target number of instances for the instance group.
    • InstanceGroupConfig

      public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)
      Constructs a new InstanceGroupConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      instanceRole - The role of the instance group in the cluster.
      instanceType - The Amazon EC2 instance type for all instances in the instance group.
      instanceCount - Target number of instances for the instance group.
  • Method Details

    • setName

      public void setName(String name)

      Friendly name given to the instance group.

      Parameters:
      name - Friendly name given to the instance group.
    • getName

      public String getName()

      Friendly name given to the instance group.

      Returns:
      Friendly name given to the instance group.
    • withName

      public InstanceGroupConfig withName(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.
    • setMarket

      public void setMarket(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.
      See Also:
    • getMarket

      public String getMarket()

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

      Returns:
      Market type of the Amazon EC2 instances used to create a cluster node.
      See Also:
    • withMarket

      public InstanceGroupConfig withMarket(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:
    • setMarket

      public void setMarket(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.
      See Also:
    • withMarket

      public InstanceGroupConfig withMarket(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:
    • setInstanceRole

      public void setInstanceRole(String instanceRole)

      The role of the instance group in the cluster.

      Parameters:
      instanceRole - The role of the instance group in the cluster.
      See Also:
    • getInstanceRole

      public String getInstanceRole()

      The role of the instance group in the cluster.

      Returns:
      The role of the instance group in the cluster.
      See Also:
    • withInstanceRole

      public InstanceGroupConfig withInstanceRole(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:
    • setInstanceRole

      public void setInstanceRole(InstanceRoleType instanceRole)

      The role of the instance group in the cluster.

      Parameters:
      instanceRole - The role of the instance group in the cluster.
      See Also:
    • withInstanceRole

      public InstanceGroupConfig withInstanceRole(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:
    • setBidPrice

      public void setBidPrice(String bidPrice)

      Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

      Parameters:
      bidPrice - Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
    • getBidPrice

      public String getBidPrice()

      Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

      Returns:
      Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
    • withBidPrice

      public InstanceGroupConfig withBidPrice(String bidPrice)

      Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.

      Parameters:
      bidPrice - Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceType

      public void setInstanceType(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.
    • getInstanceType

      public String getInstanceType()

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

      Returns:
      The Amazon EC2 instance type for all instances in the instance group.
    • withInstanceType

      public InstanceGroupConfig withInstanceType(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.
    • setInstanceCount

      public void setInstanceCount(Integer instanceCount)

      Target number of instances for the instance group.

      Parameters:
      instanceCount - Target number of instances for the instance group.
    • getInstanceCount

      public Integer getInstanceCount()

      Target number of instances for the instance group.

      Returns:
      Target number of instances for the instance group.
    • withInstanceCount

      public InstanceGroupConfig withInstanceCount(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.
    • getConfigurations

      public List<Configuration> getConfigurations()

      Amazon EMR releases 4.x or later.

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

      Returns:
      Amazon EMR releases 4.x or later.

    • setConfigurations

      public void setConfigurations(Collection<Configuration> configurations)

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an 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.

    • withConfigurations

      public InstanceGroupConfig withConfigurations(Configuration... configurations)

      Amazon EMR releases 4.x or later.

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

      NOTE: This method appends the values to the existing list (if any). Use setConfigurations(java.util.Collection) or withConfigurations(java.util.Collection) if you want to override the existing values.

      Parameters:
      configurations - Amazon EMR releases 4.x or later.

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

      public InstanceGroupConfig withConfigurations(Collection<Configuration> configurations)

      Amazon EMR releases 4.x or later.

      The list of configurations supplied for an 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.

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

      public void setEbsConfiguration(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.
    • getEbsConfiguration

      public EbsConfiguration getEbsConfiguration()

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

      Returns:
      EBS configurations that will be attached to each Amazon EC2 instance in the instance group.
    • withEbsConfiguration

      public InstanceGroupConfig withEbsConfiguration(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.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceGroupConfig clone()
      Overrides:
      clone in class Object