public class InstanceGroup extends Object implements Serializable
This entity represents an instance group, which is a group of instances that have common purpose. For example, CORE instance group is used for HDFS.
Constructor and Description |
---|
InstanceGroup() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBidPrice()
The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
String |
getId()
The identifier of the instance group.
|
String |
getInstanceGroupType()
The type of the instance group.
|
String |
getInstanceType()
The EC2 instance type for all instances in the instance group.
|
String |
getMarket()
The marketplace to provision instances for this group.
|
String |
getName()
The name of the instance group.
|
Integer |
getRequestedInstanceCount()
The target number of instances for the instance group.
|
Integer |
getRunningInstanceCount()
The number of instances currently running in this instance group.
|
InstanceGroupStatus |
getStatus()
The current status of the instance group.
|
int |
hashCode() |
void |
setBidPrice(String bidPrice)
The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
void |
setId(String id)
The identifier of the instance group.
|
void |
setInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
void |
setInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
void |
setInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
|
void |
setMarket(MarketType market)
The marketplace to provision instances for this group.
|
void |
setMarket(String market)
The marketplace to provision instances for this group.
|
void |
setName(String name)
The name of the instance group.
|
void |
setRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
void |
setRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
void |
setStatus(InstanceGroupStatus status)
The current status of the instance group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceGroup |
withBidPrice(String bidPrice)
The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.
|
InstanceGroup |
withId(String id)
The identifier of the instance group.
|
InstanceGroup |
withInstanceGroupType(InstanceGroupType instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceGroupType(String instanceGroupType)
The type of the instance group.
|
InstanceGroup |
withInstanceType(String instanceType)
The EC2 instance type for all instances in the instance group.
|
InstanceGroup |
withMarket(MarketType market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withMarket(String market)
The marketplace to provision instances for this group.
|
InstanceGroup |
withName(String name)
The name of the instance group.
|
InstanceGroup |
withRequestedInstanceCount(Integer requestedInstanceCount)
The target number of instances for the instance group.
|
InstanceGroup |
withRunningInstanceCount(Integer runningInstanceCount)
The number of instances currently running in this instance group.
|
InstanceGroup |
withStatus(InstanceGroupStatus status)
The current status of the instance group.
|
public String getId()
public void setId(String id)
id
- The identifier of the instance group.public InstanceGroup withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The identifier of the instance group.public String getName()
public void setName(String name)
name
- The name of the instance group.public InstanceGroup withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the instance group.public String getMarket()
Constraints:
Allowed Values: ON_DEMAND, SPOT
MarketType
public void setMarket(String market)
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public InstanceGroup withMarket(String market)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public void setMarket(MarketType market)
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public InstanceGroup withMarket(MarketType market)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- The marketplace to provision instances for this group. Valid values
are ON_DEMAND or SPOT.MarketType
public String getInstanceGroupType()
Constraints:
Allowed Values: MASTER, CORE, TASK
InstanceGroupType
public void setInstanceGroupType(String instanceGroupType)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public InstanceGroup withInstanceGroupType(String instanceGroupType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public void setInstanceGroupType(InstanceGroupType instanceGroupType)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public InstanceGroup withInstanceGroupType(InstanceGroupType instanceGroupType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceGroupType
- The type of the instance group. Valid values are MASTER, CORE or TASK.InstanceGroupType
public String getBidPrice()
public void setBidPrice(String bidPrice)
bidPrice
- The bid price for each EC2 instance in the instance group when
launching nodes as Spot Instances, expressed in USD.public InstanceGroup withBidPrice(String bidPrice)
Returns a reference to this object so that method calls can be chained together.
bidPrice
- The bid price for each 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 EC2 instance type for all instances in the instance group.public InstanceGroup 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 EC2 instance type for all instances in the instance group.public Integer getRequestedInstanceCount()
public void setRequestedInstanceCount(Integer requestedInstanceCount)
requestedInstanceCount
- The target number of instances for the instance group.public InstanceGroup withRequestedInstanceCount(Integer requestedInstanceCount)
Returns a reference to this object so that method calls can be chained together.
requestedInstanceCount
- The target number of instances for the instance group.public Integer getRunningInstanceCount()
public void setRunningInstanceCount(Integer runningInstanceCount)
runningInstanceCount
- The number of instances currently running in this instance group.public InstanceGroup withRunningInstanceCount(Integer runningInstanceCount)
Returns a reference to this object so that method calls can be chained together.
runningInstanceCount
- The number of instances currently running in this instance group.public InstanceGroupStatus getStatus()
public void setStatus(InstanceGroupStatus status)
status
- The current status of the instance group.public InstanceGroup withStatus(InstanceGroupStatus status)
Returns a reference to this object so that method calls can be chained together.
status
- The current status of the instance group.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.