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:
  • Constructor Details

    • 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 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 Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • setInstanceRole

      public void setInstanceRole(String instanceRole)

      Instance group role in the cluster

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

      public String getInstanceRole()

      Instance group role in the cluster

      Returns:
      Instance group role in the cluster
      See Also:
    • 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:
    • setInstanceRole

      public void setInstanceRole(InstanceRoleType instanceRole)

      Instance group role in the cluster

      Parameters:
      instanceRole - Instance group role in the cluster
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceGroupDetail clone()
      Overrides:
      clone in class Object