public class InstanceGroupConfig extends Object implements Serializable
Configuration defining a new instance group.
| Constructor and Description | 
|---|
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public InstanceGroupConfig()
public InstanceGroupConfig(String instanceRole, String instanceType, Integer instanceCount)
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.public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount)
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.public String getName()
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setName(String name)
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
name - Friendly name given to the instance group.public InstanceGroupConfig withName(String name)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
name - Friendly name given to the instance group.public String getMarket()
 Constraints:
 Allowed Values: ON_DEMAND, SPOT
MarketTypepublic void setMarket(String market)
 Constraints:
 Allowed Values: ON_DEMAND, SPOT
market - Market type of the Amazon EC2 instances used to create a cluster node.MarketTypepublic InstanceGroupConfig withMarket(String market)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: ON_DEMAND, SPOT
market - Market type of the Amazon EC2 instances used to create a cluster node.MarketTypepublic void setMarket(MarketType market)
 Constraints:
 Allowed Values: ON_DEMAND, SPOT
market - Market type of the Amazon EC2 instances used to create a cluster node.MarketTypepublic InstanceGroupConfig withMarket(MarketType market)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: ON_DEMAND, SPOT
market - Market type of the Amazon EC2 instances used to create a cluster node.MarketTypepublic String getInstanceRole()
 Constraints:
 Allowed Values: MASTER, CORE, TASK
InstanceRoleTypepublic void setInstanceRole(String instanceRole)
 Constraints:
 Allowed Values: MASTER, CORE, TASK
instanceRole - The role of the instance group in the cluster.InstanceRoleTypepublic InstanceGroupConfig withInstanceRole(String instanceRole)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: MASTER, CORE, TASK
instanceRole - The role of the instance group in the cluster.InstanceRoleTypepublic void setInstanceRole(InstanceRoleType instanceRole)
 Constraints:
 Allowed Values: MASTER, CORE, TASK
instanceRole - The role of the instance group in the cluster.InstanceRoleTypepublic InstanceGroupConfig withInstanceRole(InstanceRoleType instanceRole)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: MASTER, CORE, TASK
instanceRole - The role of the instance group in the cluster.InstanceRoleTypepublic String getBidPrice()
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setBidPrice(String bidPrice)
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
bidPrice - Bid price for each Amazon EC2 instance in the instance group when
         launching nodes as Spot Instances, expressed in USD.public InstanceGroupConfig withBidPrice(String bidPrice)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
bidPrice - Bid price for each Amazon EC2 instance in the instance group when
         launching nodes as Spot Instances, expressed in USD.public String getInstanceType()
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceType(String instanceType)
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType - The Amazon EC2 instance type for all instances in the instance group.public InstanceGroupConfig withInstanceType(String instanceType)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 1 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceType - The Amazon EC2 instance type for all instances in the instance group.public Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
instanceCount - Target number of instances for the instance group.public InstanceGroupConfig withInstanceCount(Integer instanceCount)
Returns a reference to this object so that method calls can be chained together.
instanceCount - Target number of instances for the instance group.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.