Class InstanceGroupDetail
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.InstanceGroupDetail
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceGroupDetail extends Object implements Serializable, Cloneable
Detailed information about an instance group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceGroupDetail()
Default constructor for 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceGroupDetail
clone()
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 clusterInteger
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 clustervoid
setInstanceRole(String instanceRole)
Instance group role in the clustervoid
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 clusterInstanceGroupDetail
withInstanceRole(String instanceRole)
Instance group role in the clusterInstanceGroupDetail
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.
-
-
-
Constructor Detail
-
InstanceGroupDetail
public InstanceGroupDetail()
Default constructor for InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
InstanceGroupDetail
public InstanceGroupDetail(String instanceRole, String instanceType, Integer instanceRequestCount, Integer instanceRunningCount, String state, Date creationDateTime)
Constructs a new InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
InstanceGroupDetail
public InstanceGroupDetail(InstanceRoleType instanceRole, String instanceType, Integer instanceRequestCount, Integer instanceRunningCount, InstanceGroupState state, Date creationDateTime)
Constructs a new InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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.
-
-
Method Detail
-
setInstanceGroupId
public void setInstanceGroupId(String instanceGroupId)
Unique identifier for the instance group.
- Parameters:
instanceGroupId
- Unique identifier for the instance group.
-
getInstanceGroupId
public String getInstanceGroupId()
Unique identifier for the instance group.
- Returns:
- Unique identifier for the instance group.
-
withInstanceGroupId
public InstanceGroupDetail withInstanceGroupId(String instanceGroupId)
Unique identifier for the instance group.
- Parameters:
instanceGroupId
- Unique identifier for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
Friendly name for the instance group.
- Parameters:
name
- Friendly name for the instance group.
-
getName
public String getName()
Friendly name for the instance group.
- Returns:
- Friendly name for the instance group.
-
withName
public InstanceGroupDetail withName(String name)
Friendly name for the instance group.
- Parameters:
name
- Friendly name for the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMarket
public void setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market
- Market type of the Amazon EC2 instances used to create a cluster node.- See Also:
MarketType
-
getMarket
public String getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.
- Returns:
- Market type of the Amazon EC2 instances used to create a cluster node.
- See Also:
MarketType
-
withMarket
public InstanceGroupDetail withMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market
- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType
-
setMarket
public void setMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market
- Market type of the Amazon EC2 instances used to create a cluster node.- See Also:
MarketType
-
withMarket
public InstanceGroupDetail withMarket(MarketType market)
Market type of the Amazon EC2 instances used to create a cluster node.
- Parameters:
market
- Market type of the Amazon EC2 instances used to create a cluster node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType
-
setInstanceRole
public void setInstanceRole(String instanceRole)
Instance group role in the cluster
- Parameters:
instanceRole
- Instance group role in the cluster- See Also:
InstanceRoleType
-
getInstanceRole
public String getInstanceRole()
Instance group role in the cluster
- Returns:
- Instance group role in the cluster
- See Also:
InstanceRoleType
-
withInstanceRole
public InstanceGroupDetail withInstanceRole(String instanceRole)
Instance group role in the cluster
- Parameters:
instanceRole
- Instance group role in the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceRoleType
-
setInstanceRole
public void setInstanceRole(InstanceRoleType instanceRole)
Instance group role in the cluster
- Parameters:
instanceRole
- Instance group role in the cluster- See Also:
InstanceRoleType
-
withInstanceRole
public InstanceGroupDetail withInstanceRole(InstanceRoleType instanceRole)
Instance group role in the cluster
- Parameters:
instanceRole
- Instance group role in the cluster- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceRoleType
-
setBidPrice
public void setBidPrice(String bidPrice)
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
- Parameters:
bidPrice
- Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
-
getBidPrice
public String getBidPrice()
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
- Returns:
- Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
-
withBidPrice
public InstanceGroupDetail withBidPrice(String bidPrice)
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
- Parameters:
bidPrice
- Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceType
public void setInstanceType(String instanceType)
Amazon EC2 Instance type.
- Parameters:
instanceType
- Amazon EC2 Instance type.
-
getInstanceType
public String getInstanceType()
Amazon EC2 Instance type.
- Returns:
- Amazon EC2 Instance type.
-
withInstanceType
public InstanceGroupDetail withInstanceType(String instanceType)
Amazon EC2 Instance type.
- Parameters:
instanceType
- Amazon EC2 Instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceRequestCount
public void setInstanceRequestCount(Integer instanceRequestCount)
Target number of instances to run in the instance group.
- Parameters:
instanceRequestCount
- Target number of instances to run in the instance group.
-
getInstanceRequestCount
public Integer getInstanceRequestCount()
Target number of instances to run in the instance group.
- Returns:
- Target number of instances to run in the instance group.
-
withInstanceRequestCount
public InstanceGroupDetail withInstanceRequestCount(Integer instanceRequestCount)
Target number of instances to run in the instance group.
- Parameters:
instanceRequestCount
- Target number of instances to run in the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceRunningCount
public void setInstanceRunningCount(Integer instanceRunningCount)
Actual count of running instances.
- Parameters:
instanceRunningCount
- Actual count of running instances.
-
getInstanceRunningCount
public Integer getInstanceRunningCount()
Actual count of running instances.
- Returns:
- Actual count of running instances.
-
withInstanceRunningCount
public InstanceGroupDetail withInstanceRunningCount(Integer instanceRunningCount)
Actual count of running instances.
- Parameters:
instanceRunningCount
- Actual count of running instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
- Parameters:
state
- State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.- See Also:
InstanceGroupState
-
getState
public String getState()
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
- Returns:
- State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
- See Also:
InstanceGroupState
-
withState
public InstanceGroupDetail withState(String state)
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
- Parameters:
state
- State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceGroupState
-
setState
public void setState(InstanceGroupState state)
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
- Parameters:
state
- State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.- See Also:
InstanceGroupState
-
withState
public InstanceGroupDetail withState(InstanceGroupState state)
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
- Parameters:
state
- State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InstanceGroupState
-
setLastStateChangeReason
public void setLastStateChangeReason(String lastStateChangeReason)
Details regarding the state of the instance group.
- Parameters:
lastStateChangeReason
- Details regarding the state of the instance group.
-
getLastStateChangeReason
public String getLastStateChangeReason()
Details regarding the state of the instance group.
- Returns:
- Details regarding the state of the instance group.
-
withLastStateChangeReason
public InstanceGroupDetail withLastStateChangeReason(String lastStateChangeReason)
Details regarding the state of the instance group.
- Parameters:
lastStateChangeReason
- Details regarding the state of the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationDateTime
public void setCreationDateTime(Date creationDateTime)
The date/time the instance group was created.
- Parameters:
creationDateTime
- The date/time the instance group was created.
-
getCreationDateTime
public Date getCreationDateTime()
The date/time the instance group was created.
- Returns:
- The date/time the instance group was created.
-
withCreationDateTime
public InstanceGroupDetail withCreationDateTime(Date creationDateTime)
The date/time the instance group was created.
- Parameters:
creationDateTime
- The date/time the instance group was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartDateTime
public void setStartDateTime(Date startDateTime)
The date/time the instance group was started.
- Parameters:
startDateTime
- The date/time the instance group was started.
-
getStartDateTime
public Date getStartDateTime()
The date/time the instance group was started.
- Returns:
- The date/time the instance group was started.
-
withStartDateTime
public InstanceGroupDetail withStartDateTime(Date startDateTime)
The date/time the instance group was started.
- Parameters:
startDateTime
- The date/time the instance group was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReadyDateTime
public void setReadyDateTime(Date readyDateTime)
The date/time the instance group was available to the cluster.
- Parameters:
readyDateTime
- The date/time the instance group was available to the cluster.
-
getReadyDateTime
public Date getReadyDateTime()
The date/time the instance group was available to the cluster.
- Returns:
- The date/time the instance group was available to the cluster.
-
withReadyDateTime
public InstanceGroupDetail withReadyDateTime(Date readyDateTime)
The date/time the instance group was available to the cluster.
- Parameters:
readyDateTime
- The date/time the instance group was available to the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEndDateTime
public void setEndDateTime(Date endDateTime)
The date/time the instance group was terminated.
- Parameters:
endDateTime
- The date/time the instance group was terminated.
-
getEndDateTime
public Date getEndDateTime()
The date/time the instance group was terminated.
- Returns:
- The date/time the instance group was terminated.
-
withEndDateTime
public InstanceGroupDetail withEndDateTime(Date endDateTime)
The date/time the instance group was terminated.
- Parameters:
endDateTime
- The date/time the instance group was terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceGroupDetail clone()
-
-