public class InstanceGroupConfig
extends java.lang.Object
implements java.io.Serializable
Configuration defining a new instance group.
| コンストラクタと説明 |
|---|
InstanceGroupConfig()
Default constructor for a new InstanceGroupConfig object.
|
InstanceGroupConfig(InstanceRoleType instanceRole,
java.lang.String instanceType,
java.lang.Integer instanceCount)
Constructs a new InstanceGroupConfig object.
|
InstanceGroupConfig(java.lang.String instanceRole,
java.lang.String instanceType,
java.lang.Integer instanceCount)
Constructs a new InstanceGroupConfig object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBidPrice()
Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
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.
|
int |
hashCode() |
void |
setBidPrice(java.lang.String bidPrice)
Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
void |
setInstanceCount(java.lang.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(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(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
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 |
withBidPrice(java.lang.String bidPrice)
Bid price for each Amazon EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
InstanceGroupConfig |
withInstanceCount(java.lang.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(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(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
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.
|
public InstanceGroupConfig()
public InstanceGroupConfig(java.lang.String instanceRole,
java.lang.String instanceType,
java.lang.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, java.lang.String instanceType, java.lang.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 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, SPOT
MarketTypepublic void setMarket(java.lang.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(java.lang.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 java.lang.String getInstanceRole()
Constraints:
Allowed Values: MASTER, CORE, TASK
InstanceRoleTypepublic void setInstanceRole(java.lang.String instanceRole)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceRole - The role of the instance group in the cluster.InstanceRoleTypepublic 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.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 java.lang.String getBidPrice()
Constraints:
Length: 0 - 256
Pattern: [ --�𐀀-\r\n\t]*
public void setBidPrice(java.lang.String bidPrice)
Constraints:
Length: 0 - 256
Pattern: [ --�𐀀-\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(java.lang.String bidPrice)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
Pattern: [ --�𐀀-\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 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 クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object