Class HistoryRecord

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

public class HistoryRecord extends Object implements Serializable, Cloneable

Describes an event in the history of the Spot fleet request.

See Also:
  • Constructor Details

    • HistoryRecord

      public HistoryRecord()
  • Method Details

    • setTimestamp

      public void setTimestamp(Date timestamp)

      The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      timestamp - The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
    • getTimestamp

      public Date getTimestamp()

      The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Returns:
      The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
    • withTimestamp

      public HistoryRecord withTimestamp(Date timestamp)

      The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      timestamp - The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setEventType

      public void setEventType(String eventType)

      The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Parameters:
      eventType - The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      See Also:
    • getEventType

      public String getEventType()

      The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Returns:
      The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      See Also:
    • withEventType

      public HistoryRecord withEventType(String eventType)

      The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Parameters:
      eventType - The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setEventType

      public void setEventType(EventType eventType)

      The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Parameters:
      eventType - The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      See Also:
    • withEventType

      public HistoryRecord withEventType(EventType eventType)

      The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Parameters:
      eventType - The event type.

      • error - Indicates an error with the Spot fleet request.

      • fleetRequestChange - Indicates a change in the status or configuration of the Spot fleet request.

      • instanceChange - Indicates that an instance was launched or terminated.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setEventInformation

      public void setEventInformation(EventInformation eventInformation)

      Information about the event.

      Parameters:
      eventInformation - Information about the event.
    • getEventInformation

      public EventInformation getEventInformation()

      Information about the event.

      Returns:
      Information about the event.
    • withEventInformation

      public HistoryRecord withEventInformation(EventInformation eventInformation)

      Information about the event.

      Parameters:
      eventInformation - Information about the event.
      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 HistoryRecord clone()
      Overrides:
      clone in class Object