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 HistoryRecordclone()booleanequals(Object obj)EventInformationgetEventInformation()Information about the event.StringgetEventType()The event type.DategetTimestamp()The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).inthashCode()voidsetEventInformation(EventInformation eventInformation)Information about the event.voidsetEventType(EventType eventType)The event type.voidsetEventType(String eventType)The event type.voidsetTimestamp(Date timestamp)The date and time of the event, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).StringtoString()Returns a string representation of this object; useful for testing and debugging.HistoryRecordwithEventInformation(EventInformation eventInformation)Information about the event.HistoryRecordwithEventType(EventType eventType)The event type.HistoryRecordwithEventType(String eventType)The event type.HistoryRecordwithTimestamp(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public HistoryRecord clone()
-
-