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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HistoryRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoryRecord
clone()
boolean
equals(Object obj)
EventInformation
getEventInformation()
Information about the event.String
getEventType()
The event type.Date
getTimestamp()
The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).int
hashCode()
void
setEventInformation(EventInformation eventInformation)
Information about the event.void
setEventType(EventType eventType)
The event type.void
setEventType(String eventType)
The event type.void
setTimestamp(Date timestamp)
The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).String
toString()
Returns a string representation of this object; useful for testing and debugging.HistoryRecord
withEventInformation(EventInformation eventInformation)
Information about the event.HistoryRecord
withEventType(EventType eventType)
The event type.HistoryRecord
withEventType(String eventType)
The event type.HistoryRecord
withTimestamp(Date timestamp)
The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
-
-
-
Method Detail
-
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:
EventType
-
-
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:
EventType
-
-
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:
EventType
-
-
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:
EventType
-
-
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:
EventType
-
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HistoryRecord clone()
-
-