|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.elasticmapreduce.model.InstanceGroupConfig
public class InstanceGroupConfig
Configuration defining a new instance group.
Constructor Summary | |
---|---|
InstanceGroupConfig()
Default constructor for a new InstanceGroupConfig object. |
|
InstanceGroupConfig(java.lang.String market,
java.lang.String instanceRole,
java.lang.String instanceType,
java.lang.Integer instanceCount)
Constructs a new InstanceGroupConfig object. |
Method Summary | |
---|---|
java.lang.Integer |
getInstanceCount()
Target number of instances for the instance group. |
java.lang.String |
getInstanceRole()
The role of the instance group in the cluster. |
java.lang.String |
getInstanceType()
The Amazon EC2 instance type for all instances in the instance group. |
java.lang.String |
getMarket()
Market type of the Amazon EC2 instances used to create a cluster node. |
java.lang.String |
getName()
Friendly name given to the instance group. |
void |
setInstanceCount(java.lang.Integer instanceCount)
Target number of instances for the instance group. |
void |
setInstanceRole(java.lang.String instanceRole)
The role of the instance group in the cluster. |
void |
setInstanceType(java.lang.String instanceType)
The Amazon EC2 instance type for all instances in the instance group. |
void |
setMarket(java.lang.String market)
Market type of the Amazon EC2 instances used to create a cluster node. |
void |
setName(java.lang.String name)
Friendly name given to the instance group. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceGroupConfig |
withInstanceCount(java.lang.Integer instanceCount)
Target number of instances for the instance group. |
InstanceGroupConfig |
withInstanceRole(java.lang.String instanceRole)
The role of the instance group in the cluster. |
InstanceGroupConfig |
withInstanceType(java.lang.String instanceType)
The Amazon EC2 instance type for all instances in the instance group. |
InstanceGroupConfig |
withMarket(java.lang.String market)
Market type of the Amazon EC2 instances used to create a cluster node. |
InstanceGroupConfig |
withName(java.lang.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 |
---|
public InstanceGroupConfig()
public InstanceGroupConfig(java.lang.String market, java.lang.String instanceRole, java.lang.String instanceType, java.lang.Integer instanceCount)
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 |
---|
public java.lang.String getName()
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setName(java.lang.String name)
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
name
- Friendly name given to the instance group.public InstanceGroupConfig withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*
name
- Friendly name given to the instance group.
public java.lang.String getMarket()
Constraints:
Allowed Values: ON_DEMAND
MarketType
public void setMarket(java.lang.String market)
Constraints:
Allowed Values: ON_DEMAND
market
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public InstanceGroupConfig withMarket(java.lang.String market)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ON_DEMAND
market
- Market type of the Amazon EC2 instances used to create a cluster node.
MarketType
public java.lang.String getInstanceRole()
Constraints:
Allowed Values: MASTER, CORE, TASK
InstanceRoleType
public void setInstanceRole(java.lang.String instanceRole)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceRole
- The role of the instance group in the cluster.InstanceRoleType
public InstanceGroupConfig withInstanceRole(java.lang.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.
InstanceRoleType
public java.lang.String getInstanceType()
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
public void setInstanceType(java.lang.String instanceType)
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
instanceType
- The Amazon EC2 instance type for all instances in the instance group.public InstanceGroupConfig withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*
instanceType
- The Amazon EC2 instance type for all instances in the instance group.
public java.lang.Integer getInstanceCount()
public void setInstanceCount(java.lang.Integer instanceCount)
instanceCount
- Target number of instances for the instance group.public InstanceGroupConfig withInstanceCount(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |