public class HistoryRecord extends Object implements Serializable, Cloneable
Describes an event in the history of the Spot fleet request.
Constructor and Description |
---|
HistoryRecord() |
Modifier and Type | Method and 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).
|
public Date getTimestamp()
public void setTimestamp(Date timestamp)
timestamp
- The date and time of the event, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public HistoryRecord withTimestamp(Date timestamp)
Returns a reference to this object so that method calls can be chained together.
timestamp
- The date and time of the event, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).public String getEventType()
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.
Constraints:
Allowed Values: instanceChange, fleetRequestChange, error
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.
EventType
public void setEventType(String eventType)
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.
Constraints:
Allowed Values: instanceChange, fleetRequestChange, error
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.
EventType
public HistoryRecord withEventType(String eventType)
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 a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: instanceChange, fleetRequestChange, error
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.
EventType
public void setEventType(EventType eventType)
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.
Constraints:
Allowed Values: instanceChange, fleetRequestChange, error
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.
EventType
public HistoryRecord withEventType(EventType eventType)
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 a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: instanceChange, fleetRequestChange, error
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.
EventType
public EventInformation getEventInformation()
public void setEventInformation(EventInformation eventInformation)
eventInformation
- Information about the event.public HistoryRecord withEventInformation(EventInformation eventInformation)
Returns a reference to this object so that method calls can be chained together.
eventInformation
- Information about the event.public String toString()
toString
in class Object
Object.toString()
public HistoryRecord clone()
Copyright © 2015. All rights reserved.