Class SpotInstanceStateFault

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

public class SpotInstanceStateFault extends Object implements Serializable, Cloneable

Describes a Spot instance state change.

See Also:
  • Constructor Details

    • SpotInstanceStateFault

      public SpotInstanceStateFault()
  • Method Details

    • setCode

      public void setCode(String code)

      The reason code for the Spot instance state change.

      Parameters:
      code - The reason code for the Spot instance state change.
    • getCode

      public String getCode()

      The reason code for the Spot instance state change.

      Returns:
      The reason code for the Spot instance state change.
    • withCode

      public SpotInstanceStateFault withCode(String code)

      The reason code for the Spot instance state change.

      Parameters:
      code - The reason code for the Spot instance state change.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMessage

      public void setMessage(String message)

      The message for the Spot instance state change.

      Parameters:
      message - The message for the Spot instance state change.
    • getMessage

      public String getMessage()

      The message for the Spot instance state change.

      Returns:
      The message for the Spot instance state change.
    • withMessage

      public SpotInstanceStateFault withMessage(String message)

      The message for the Spot instance state change.

      Parameters:
      message - The message for the Spot instance state change.
      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 SpotInstanceStateFault clone()
      Overrides:
      clone in class Object