Did this page help you?

   Yes   No   Tell us about it...

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(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)
          Constructs a new InstanceGroupConfig object.
InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)
          Constructs a new InstanceGroupConfig object.
 
Method Summary
 boolean equals(Object obj)
           
 String getBidPrice()
          Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
 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.
 int hashCode()
           
 void setBidPrice(String bidPrice)
          Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
 void setInstanceCount(Integer instanceCount)
          Target number of instances for the instance group.
 void setInstanceRole(InstanceRoleType instanceRole)
          The role of the instance group in the cluster.
 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(MarketType market)
          Market type of the Amazon EC2 instances used to create a cluster node.
 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 withBidPrice(String bidPrice)
          Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
 InstanceGroupConfig withInstanceCount(Integer instanceCount)
          Target number of instances for the instance group.
 InstanceGroupConfig withInstanceRole(InstanceRoleType instanceRole)
          The role of the instance group in the cluster.
 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(MarketType market)
          Market type of the Amazon EC2 instances used to create a cluster node.
 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
getClass, 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 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 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, SPOT

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, SPOT

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, SPOT

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

setMarket

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

Constraints:
Allowed Values: ON_DEMAND, SPOT

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

withMarket

public InstanceGroupConfig withMarket(MarketType 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, SPOT

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

setInstanceRole

public void setInstanceRole(InstanceRoleType 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(InstanceRoleType 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

getBidPrice

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

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

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

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.

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

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

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

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

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

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()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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