public class InstanceGroupDetail extends Object implements Serializable
Detailed information about an instance group.
Constructor and Description |
---|
InstanceGroupDetail()
Default constructor for a new InstanceGroupDetail object.
|
InstanceGroupDetail(InstanceRoleType instanceRole,
String instanceType,
Integer instanceRequestCount,
Integer instanceRunningCount,
InstanceGroupState state,
Date creationDateTime)
Constructs a new InstanceGroupDetail object.
|
InstanceGroupDetail(String instanceRole,
String instanceType,
Integer instanceRequestCount,
Integer instanceRunningCount,
String state,
Date creationDateTime)
Constructs a new InstanceGroupDetail object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBidPrice()
Bid price for EC2 Instances when launching nodes as Spot Instances,
expressed in USD.
|
Date |
getCreationDateTime()
The date/time the instance group was created.
|
Date |
getEndDateTime()
The date/time the instance group was terminated.
|
String |
getInstanceGroupId()
Unique identifier for the instance group.
|
Integer |
getInstanceRequestCount()
Target number of instances to run in the instance group.
|
String |
getInstanceRole()
Instance group role in the cluster
|
Integer |
getInstanceRunningCount()
Actual count of running instances.
|
String |
getInstanceType()
Amazon EC2 Instance type.
|
String |
getLastStateChangeReason()
Details regarding the state of the instance group.
|
String |
getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
|
String |
getName()
Friendly name for the instance group.
|
Date |
getReadyDateTime()
The date/time the instance group was available to the cluster.
|
Date |
getStartDateTime()
The date/time the instance group was started.
|
String |
getState()
State of instance group.
|
int |
hashCode() |
void |
setBidPrice(String bidPrice)
Bid price for EC2 Instances when launching nodes as Spot Instances,
expressed in USD.
|
void |
setCreationDateTime(Date creationDateTime)
The date/time the instance group was created.
|
void |
setEndDateTime(Date endDateTime)
The date/time the instance group was terminated.
|
void |
setInstanceGroupId(String instanceGroupId)
Unique identifier for the instance group.
|
void |
setInstanceRequestCount(Integer instanceRequestCount)
Target number of instances to run in the instance group.
|
void |
setInstanceRole(InstanceRoleType instanceRole)
Instance group role in the cluster
|
void |
setInstanceRole(String instanceRole)
Instance group role in the cluster
|
void |
setInstanceRunningCount(Integer instanceRunningCount)
Actual count of running instances.
|
void |
setInstanceType(String instanceType)
Amazon EC2 Instance type.
|
void |
setLastStateChangeReason(String lastStateChangeReason)
Details regarding the state of 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 for the instance group.
|
void |
setReadyDateTime(Date readyDateTime)
The date/time the instance group was available to the cluster.
|
void |
setStartDateTime(Date startDateTime)
The date/time the instance group was started.
|
void |
setState(InstanceGroupState state)
State of instance group.
|
void |
setState(String state)
State of instance group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceGroupDetail |
withBidPrice(String bidPrice)
Bid price for EC2 Instances when launching nodes as Spot Instances,
expressed in USD.
|
InstanceGroupDetail |
withCreationDateTime(Date creationDateTime)
The date/time the instance group was created.
|
InstanceGroupDetail |
withEndDateTime(Date endDateTime)
The date/time the instance group was terminated.
|
InstanceGroupDetail |
withInstanceGroupId(String instanceGroupId)
Unique identifier for the instance group.
|
InstanceGroupDetail |
withInstanceRequestCount(Integer instanceRequestCount)
Target number of instances to run in the instance group.
|
InstanceGroupDetail |
withInstanceRole(InstanceRoleType instanceRole)
Instance group role in the cluster
|
InstanceGroupDetail |
withInstanceRole(String instanceRole)
Instance group role in the cluster
|
InstanceGroupDetail |
withInstanceRunningCount(Integer instanceRunningCount)
Actual count of running instances.
|
InstanceGroupDetail |
withInstanceType(String instanceType)
Amazon EC2 Instance type.
|
InstanceGroupDetail |
withLastStateChangeReason(String lastStateChangeReason)
Details regarding the state of the instance group.
|
InstanceGroupDetail |
withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
InstanceGroupDetail |
withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
|
InstanceGroupDetail |
withName(String name)
Friendly name for the instance group.
|
InstanceGroupDetail |
withReadyDateTime(Date readyDateTime)
The date/time the instance group was available to the cluster.
|
InstanceGroupDetail |
withStartDateTime(Date startDateTime)
The date/time the instance group was started.
|
InstanceGroupDetail |
withState(InstanceGroupState state)
State of instance group.
|
InstanceGroupDetail |
withState(String state)
State of instance group.
|
public InstanceGroupDetail()
public InstanceGroupDetail(String instanceRole, String instanceType, Integer instanceRequestCount, Integer instanceRunningCount, String state, Date creationDateTime)
instanceRole
- Instance group role in the clusterinstanceType
- Amazon EC2 Instance type.instanceRequestCount
- Target number of instances to run in the
instance group.instanceRunningCount
- Actual count of running instances.state
- State of instance group. The following values are
deprecated: STARTING, TERMINATED, and FAILED.creationDateTime
- The date/time the instance group was created.public InstanceGroupDetail(InstanceRoleType instanceRole, String instanceType, Integer instanceRequestCount, Integer instanceRunningCount, InstanceGroupState state, Date creationDateTime)
instanceRole
- Instance group role in the clusterinstanceType
- Amazon EC2 Instance type.instanceRequestCount
- Target number of instances to run in the
instance group.instanceRunningCount
- Actual count of running instances.state
- State of instance group. The following values are
deprecated: STARTING, TERMINATED, and FAILED.creationDateTime
- The date/time the instance group was created.public String getInstanceGroupId()
Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setInstanceGroupId(String instanceGroupId)
Constraints:
Length: 0 - 256
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
instanceGroupId
- Unique identifier for the instance group.public InstanceGroupDetail withInstanceGroupId(String instanceGroupId)
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]*
instanceGroupId
- Unique identifier 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 for the instance group.public InstanceGroupDetail 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 for 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
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public InstanceGroupDetail 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.MarketType
public void setMarket(MarketType market)
Constraints:
Allowed Values: ON_DEMAND, SPOT
market
- Market type of the Amazon EC2 instances used to create a cluster node.MarketType
public InstanceGroupDetail 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.MarketType
public String getInstanceRole()
Constraints:
Allowed Values: MASTER, CORE, TASK
InstanceRoleType
public void setInstanceRole(String instanceRole)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceRole
- Instance group role in the clusterInstanceRoleType
public InstanceGroupDetail withInstanceRole(String instanceRole)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceRole
- Instance group role in the clusterInstanceRoleType
public void setInstanceRole(InstanceRoleType instanceRole)
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceRole
- Instance group role in the clusterInstanceRoleType
public InstanceGroupDetail withInstanceRole(InstanceRoleType instanceRole)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: MASTER, CORE, TASK
instanceRole
- Instance group role in the clusterInstanceRoleType
public 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 EC2 Instances when launching nodes as Spot Instances,
expressed in USD.public InstanceGroupDetail 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 EC2 Instances 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
- Amazon EC2 Instance type.public InstanceGroupDetail 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
- Amazon EC2 Instance type.public Integer getInstanceRequestCount()
public void setInstanceRequestCount(Integer instanceRequestCount)
instanceRequestCount
- Target number of instances to run in the instance group.public InstanceGroupDetail withInstanceRequestCount(Integer instanceRequestCount)
Returns a reference to this object so that method calls can be chained together.
instanceRequestCount
- Target number of instances to run in the instance group.public Integer getInstanceRunningCount()
public void setInstanceRunningCount(Integer instanceRunningCount)
instanceRunningCount
- Actual count of running instances.public InstanceGroupDetail withInstanceRunningCount(Integer instanceRunningCount)
Returns a reference to this object so that method calls can be chained together.
instanceRunningCount
- Actual count of running instances.public String getState()
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
InstanceGroupState
public void setState(String state)
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- State of instance group. The following values are deprecated:
STARTING, TERMINATED, and FAILED.InstanceGroupState
public InstanceGroupDetail withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- State of instance group. The following values are deprecated:
STARTING, TERMINATED, and FAILED.InstanceGroupState
public void setState(InstanceGroupState state)
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- State of instance group. The following values are deprecated:
STARTING, TERMINATED, and FAILED.InstanceGroupState
public InstanceGroupDetail withState(InstanceGroupState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PROVISIONING, BOOTSTRAPPING, RUNNING, RESIZING, SUSPENDED, TERMINATING, TERMINATED, ARRESTED, SHUTTING_DOWN, ENDED
state
- State of instance group. The following values are deprecated:
STARTING, TERMINATED, and FAILED.InstanceGroupState
public String getLastStateChangeReason()
Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLastStateChangeReason(String lastStateChangeReason)
Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
lastStateChangeReason
- Details regarding the state of the instance group.public InstanceGroupDetail withLastStateChangeReason(String lastStateChangeReason)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 10280
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
lastStateChangeReason
- Details regarding the state of the instance group.public Date getCreationDateTime()
public void setCreationDateTime(Date creationDateTime)
creationDateTime
- The date/time the instance group was created.public InstanceGroupDetail withCreationDateTime(Date creationDateTime)
Returns a reference to this object so that method calls can be chained together.
creationDateTime
- The date/time the instance group was created.public Date getStartDateTime()
public void setStartDateTime(Date startDateTime)
startDateTime
- The date/time the instance group was started.public InstanceGroupDetail withStartDateTime(Date startDateTime)
Returns a reference to this object so that method calls can be chained together.
startDateTime
- The date/time the instance group was started.public Date getReadyDateTime()
public void setReadyDateTime(Date readyDateTime)
readyDateTime
- The date/time the instance group was available to the cluster.public InstanceGroupDetail withReadyDateTime(Date readyDateTime)
Returns a reference to this object so that method calls can be chained together.
readyDateTime
- The date/time the instance group was available to the cluster.public Date getEndDateTime()
public void setEndDateTime(Date endDateTime)
endDateTime
- The date/time the instance group was terminated.public InstanceGroupDetail withEndDateTime(Date endDateTime)
Returns a reference to this object so that method calls can be chained together.
endDateTime
- The date/time the instance group was terminated.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.