com.amazonaws.services.elasticmapreduce.model
Class InstanceGroupConfig

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.InstanceGroupConfig

public class InstanceGroupConfig
extends Object

Configuration defining a new instance group.


Constructor Summary
InstanceGroupConfig()
          Default constructor for a new InstanceGroupConfig object.
InstanceGroupConfig(String market, String instanceRole, String instanceType, Integer instanceCount)
          Constructs a new InstanceGroupConfig object.
 
Method Summary
 Integer getInstanceCount()
          Target number of instances for the instance group.
 String getInstanceRole()
          The role of the instance group in the cluster.
 String getInstanceType()
          The Amazon EC2 instance type for all instances in the instance group.
 String getMarket()
          Market type of the Amazon EC2 instances used to create a cluster node.
 String getName()
          Friendly name given to the instance group.
 void setInstanceCount(Integer instanceCount)
          Target number of instances for the instance group.
 void setInstanceRole(String instanceRole)
          The role of the instance group in the cluster.
 void setInstanceType(String instanceType)
          The Amazon EC2 instance type for all instances in the instance group.
 void setMarket(String market)
          Market type of the Amazon EC2 instances used to create a cluster node.
 void setName(String name)
          Friendly name given to the instance group.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 InstanceGroupConfig withInstanceCount(Integer instanceCount)
          Target number of instances for the instance group.
 InstanceGroupConfig withInstanceRole(String instanceRole)
          The role of the instance group in the cluster.
 InstanceGroupConfig withInstanceType(String instanceType)
          The Amazon EC2 instance type for all instances in the instance group.
 InstanceGroupConfig withMarket(String market)
          Market type of the Amazon EC2 instances used to create a cluster node.
 InstanceGroupConfig withName(String name)
          Friendly name given to the instance group.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceGroupConfig

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


InstanceGroupConfig

public InstanceGroupConfig(String market,
                           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:
market - Market type of the Amazon EC2 instances used to create a cluster node.
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 Detail

getName

public String getName()
Friendly name given to the instance group.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
Friendly name given to the instance group.

setName

public void setName(String name)
Friendly name given to the instance group.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

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

withName

public InstanceGroupConfig withName(String name)
Friendly name given to the instance group.

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

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

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

getMarket

public String getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND

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

setMarket

public void setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND

Parameters:
market - Market type of the Amazon EC2 instances used to create a cluster node.
See Also:
MarketType

withMarket

public InstanceGroupConfig withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.

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

Constraints:
Allowed Values: ON_DEMAND

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

getInstanceRole

public String getInstanceRole()
The role of the instance group in the cluster.

Constraints:
Allowed Values: MASTER, CORE, TASK

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

setInstanceRole

public void setInstanceRole(String instanceRole)
The role of the instance group in the cluster.

Constraints:
Allowed Values: MASTER, CORE, TASK

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

withInstanceRole

public InstanceGroupConfig withInstanceRole(String instanceRole)
The role of the instance group in the cluster.

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

Constraints:
Allowed Values: MASTER, CORE, TASK

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

getInstanceType

public String getInstanceType()
The Amazon EC2 instance type for all instances in the instance group.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

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

setInstanceType

public void setInstanceType(String instanceType)
The Amazon EC2 instance type for all instances in the instance group.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
instanceType - 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.

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

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

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

getInstanceCount

public Integer getInstanceCount()
Target number of instances for the instance group.

Returns:
Target number of instances for the instance group.

setInstanceCount

public void setInstanceCount(Integer instanceCount)
Target number of instances for the instance group.

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

withInstanceCount

public InstanceGroupConfig withInstanceCount(Integer instanceCount)
Target number of instances for the instance group.

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

Parameters:
instanceCount - Target number of instances for the instance group.
Returns:
A reference to this updated 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:
Object.toString()


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.