Class CancelledSpotInstanceRequest

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

public class CancelledSpotInstanceRequest extends Object implements Serializable, Cloneable

Describes a request to cancel a Spot instance.

See Also:
  • Constructor Details

    • CancelledSpotInstanceRequest

      public CancelledSpotInstanceRequest()
  • Method Details

    • 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 CancelledSpotInstanceRequest 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.
    • setState

      public void setState(String state)

      The state of the Spot instance request.

      Parameters:
      state - The state of the Spot instance request.
      See Also:
    • getState

      public String getState()

      The state of the Spot instance request.

      Returns:
      The state of the Spot instance request.
      See Also:
    • withState

      public CancelledSpotInstanceRequest withState(String state)

      The state of the Spot instance request.

      Parameters:
      state - The state of the Spot instance request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(CancelSpotInstanceRequestState state)

      The state of the Spot instance request.

      Parameters:
      state - The state of the Spot instance request.
      See Also:
    • withState

      The state of the Spot instance request.

      Parameters:
      state - The state of the Spot instance request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      Overrides:
      clone in class Object