Class InstanceStatusEvent
- All Implemented Interfaces:
Serializable,Cloneable
Describes a scheduled event for an instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetCode()The event code.A description of the event.The latest scheduled end time for the event.The earliest scheduled start time for the event.inthashCode()voidThe event code.voidThe event code.voidsetDescription(String description) A description of the event.voidsetNotAfter(Date notAfter) The latest scheduled end time for the event.voidsetNotBefore(Date notBefore) The earliest scheduled start time for the event.toString()Returns a string representation of this object; useful for testing and debugging.The event code.The event code.withDescription(String description) A description of the event.withNotAfter(Date notAfter) The latest scheduled end time for the event.withNotBefore(Date notBefore) The earliest scheduled start time for the event.
-
Constructor Details
-
InstanceStatusEvent
public InstanceStatusEvent()
-
-
Method Details
-
setCode
The event code.
- Parameters:
code- The event code.- See Also:
-
getCode
The event code.
- Returns:
- The event code.
- See Also:
-
withCode
The event code.
- Parameters:
code- The event code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCode
The event code.
- Parameters:
code- The event code.- See Also:
-
withCode
The event code.
- Parameters:
code- The event code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setDescription
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
- Parameters:
description- A description of the event.After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
-
getDescription
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
- Returns:
- A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
-
withDescription
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
- Parameters:
description- A description of the event.After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotBefore
The earliest scheduled start time for the event.
- Parameters:
notBefore- The earliest scheduled start time for the event.
-
getNotBefore
The earliest scheduled start time for the event.
- Returns:
- The earliest scheduled start time for the event.
-
withNotBefore
The earliest scheduled start time for the event.
- Parameters:
notBefore- The earliest scheduled start time for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotAfter
The latest scheduled end time for the event.
- Parameters:
notAfter- The latest scheduled end time for the event.
-
getNotAfter
The latest scheduled end time for the event.
- Returns:
- The latest scheduled end time for the event.
-
withNotAfter
The latest scheduled end time for the event.
- Parameters:
notAfter- The latest scheduled end time for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-