Class ActiveInstance

java.lang.Object
com.amazonaws.services.ec2.model.ActiveInstance
All Implemented Interfaces:
Serializable, Cloneable

public class ActiveInstance extends Object implements Serializable, Cloneable

Describes a running instance in a Spot fleet.

See Also:
  • Constructor Details

    • ActiveInstance

      public ActiveInstance()
  • Method Details

    • setInstanceType

      public void setInstanceType(String instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
    • getInstanceType

      public String getInstanceType()

      The instance type.

      Returns:
      The instance type.
    • withInstanceType

      public ActiveInstance withInstanceType(String instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceId

      public void setInstanceId(String instanceId)

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
    • getInstanceId

      public String getInstanceId()

      The ID of the instance.

      Returns:
      The ID of the instance.
    • withInstanceId

      public ActiveInstance withInstanceId(String instanceId)

      The ID of the instance.

      Parameters:
      instanceId - The ID of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSpotInstanceRequestId

      public void setSpotInstanceRequestId(String spotInstanceRequestId)

      The ID of the Spot instance request.

      Parameters:
      spotInstanceRequestId - The ID of the Spot instance request.
    • getSpotInstanceRequestId

      public String getSpotInstanceRequestId()

      The ID of the Spot instance request.

      Returns:
      The ID of the Spot instance request.
    • withSpotInstanceRequestId

      public ActiveInstance withSpotInstanceRequestId(String spotInstanceRequestId)

      The ID of the Spot instance request.

      Parameters:
      spotInstanceRequestId - The ID of the Spot instance request.
      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 ActiveInstance clone()
      Overrides:
      clone in class Object