Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class InstanceGroupDetail

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.InstanceGroupDetail
All Implemented Interfaces:
Serializable

public class InstanceGroupDetail
extends Object
implements Serializable

Detailed information about an instance group.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceGroupDetail

public InstanceGroupDetail()
Default constructor for a new InstanceGroupDetail object. Callers should use the setter or fluent setter (with...) methods to initialize this 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 cluster
instanceType - 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 cluster
instanceType - 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

getInstanceGroupId

public String getInstanceGroupId()
Unique identifier for the instance group.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
Unique identifier for the instance group.

setInstanceGroupId

public void setInstanceGroupId(String instanceGroupId)
Unique identifier for the instance group.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
instanceGroupId - Unique identifier for the instance group.

withInstanceGroupId

public InstanceGroupDetail withInstanceGroupId(String instanceGroupId)
Unique identifier for the instance group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
instanceGroupId - Unique identifier for the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.

getName

public String getName()
Friendly name for the instance group.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
Friendly name for the instance group.

setName

public void setName(String name)
Friendly name for the instance group.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
name - Friendly name for the instance group.

withName

public InstanceGroupDetail withName(String name)
Friendly name for the instance group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
name - Friendly name for the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.

getMarket

public String getMarket()
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Returns:
Market type of the Amazon EC2 instances used to create a cluster node.
See Also:
MarketType

setMarket

public void setMarket(String market)
Market type of the Amazon EC2 instances used to create a cluster node.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market - Market type of the Amazon EC2 instances used to create a cluster node.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: ON_DEMAND, SPOT

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: ON_DEMAND, SPOT

Parameters:
market - Market type of the Amazon EC2 instances used to create a cluster node.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
MarketType

getInstanceRole

public String getInstanceRole()
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

Returns:
Instance group role in the cluster
See Also:
InstanceRoleType

setInstanceRole

public void setInstanceRole(String instanceRole)
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole - Instance group role in the cluster
See Also:
InstanceRoleType

withInstanceRole

public InstanceGroupDetail withInstanceRole(String instanceRole)
Instance group role in the cluster

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole - Instance group role in the cluster
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceRoleType

setInstanceRole

public void setInstanceRole(InstanceRoleType instanceRole)
Instance group role in the cluster

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole - Instance group role in the cluster
See Also:
InstanceRoleType

withInstanceRole

public InstanceGroupDetail withInstanceRole(InstanceRoleType instanceRole)
Instance group role in the cluster

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: MASTER, CORE, TASK

Parameters:
instanceRole - Instance group role in the cluster
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceRoleType

getBidPrice

public String getBidPrice()
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

setBidPrice

public void setBidPrice(String bidPrice)
Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
bidPrice - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
bidPrice - Bid price for EC2 Instances when launching nodes as Spot Instances, expressed in USD.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceType

public String getInstanceType()
Amazon EC2 Instance type.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Returns:
Amazon EC2 Instance type.

setInstanceType

public void setInstanceType(String instanceType)
Amazon EC2 Instance type.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
instanceType - Amazon EC2 Instance type.

withInstanceType

public InstanceGroupDetail withInstanceType(String instanceType)
Amazon EC2 Instance type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 256
Pattern: [ -??-??-?\r\n\t]*

Parameters:
instanceType - Amazon EC2 Instance type.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withInstanceRequestCount

public InstanceGroupDetail withInstanceRequestCount(Integer instanceRequestCount)
Target number of instances to run in the instance group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceRequestCount - Target number of instances to run in the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceRunningCount

public Integer getInstanceRunningCount()
Actual count of running instances.

Returns:
Actual count of running instances.

setInstanceRunningCount

public void setInstanceRunningCount(Integer instanceRunningCount)
Actual count of running instances.

Parameters:
instanceRunningCount - Actual count of running instances.

withInstanceRunningCount

public InstanceGroupDetail withInstanceRunningCount(Integer instanceRunningCount)
Actual count of running instances.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceRunningCount - Actual count of running instances.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

public String getState()
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

Constraints:
Allowed Values: PROVISIONING, STARTING, BOOTSTRAPPING, RUNNING, RESIZING, ARRESTED, SHUTTING_DOWN, TERMINATED, FAILED, ENDED

Returns:
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
See Also:
InstanceGroupState

setState

public void setState(String state)
State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.

Constraints:
Allowed Values: PROVISIONING, STARTING, BOOTSTRAPPING, RUNNING, RESIZING, ARRESTED, SHUTTING_DOWN, TERMINATED, FAILED, ENDED

Parameters:
state - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PROVISIONING, STARTING, BOOTSTRAPPING, RUNNING, RESIZING, ARRESTED, SHUTTING_DOWN, TERMINATED, FAILED, ENDED

Parameters:
state - State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: PROVISIONING, STARTING, BOOTSTRAPPING, RUNNING, RESIZING, ARRESTED, SHUTTING_DOWN, TERMINATED, FAILED, ENDED

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: PROVISIONING, STARTING, BOOTSTRAPPING, RUNNING, RESIZING, ARRESTED, SHUTTING_DOWN, TERMINATED, FAILED, ENDED

Parameters:
state - State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
InstanceGroupState

getLastStateChangeReason

public String getLastStateChangeReason()
Details regarding the state of the instance group.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Returns:
Details regarding the state of the instance group.

setLastStateChangeReason

public void setLastStateChangeReason(String lastStateChangeReason)
Details regarding the state of the instance group.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
lastStateChangeReason - Details regarding the state of the instance group.

withLastStateChangeReason

public InstanceGroupDetail withLastStateChangeReason(String lastStateChangeReason)
Details regarding the state of the instance group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
lastStateChangeReason - Details regarding the state of the instance group.
Returns:
A reference to this updated object so that method calls can be chained together.

getCreationDateTime

public Date getCreationDateTime()
The date/time the instance group was created.

Returns:
The date/time the instance group was created.

setCreationDateTime

public void setCreationDateTime(Date creationDateTime)
The date/time the instance group was created.

Parameters:
creationDateTime - The date/time the instance group was created.

withCreationDateTime

public InstanceGroupDetail withCreationDateTime(Date creationDateTime)
The date/time the instance group was created.

Returns a reference to this object so that method calls can be chained together.

Parameters:
creationDateTime - The date/time the instance group was created.
Returns:
A reference to this updated object so that method calls can be chained together.

getStartDateTime

public Date getStartDateTime()
The date/time the instance group was started.

Returns:
The date/time the instance group was started.

setStartDateTime

public void setStartDateTime(Date startDateTime)
The date/time the instance group was started.

Parameters:
startDateTime - The date/time the instance group was started.

withStartDateTime

public InstanceGroupDetail withStartDateTime(Date startDateTime)
The date/time the instance group was started.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startDateTime - The date/time the instance group was started.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

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.

withReadyDateTime

public InstanceGroupDetail withReadyDateTime(Date readyDateTime)
The date/time the instance group was available to the cluster.

Returns a reference to this object so that method calls can be chained together.

Parameters:
readyDateTime - The date/time the instance group was available to the cluster.
Returns:
A reference to this updated object so that method calls can be chained together.

getEndDateTime

public Date getEndDateTime()
The date/time the instance group was terminated.

Returns:
The date/time the instance group was terminated.

setEndDateTime

public void setEndDateTime(Date endDateTime)
The date/time the instance group was terminated.

Parameters:
endDateTime - The date/time the instance group was terminated.

withEndDateTime

public InstanceGroupDetail withEndDateTime(Date endDateTime)
The date/time the instance group was terminated.

Returns a reference to this object so that method calls can be chained together.

Parameters:
endDateTime - The date/time the instance group was terminated.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.