public class InstanceStatusEvent
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a scheduled event for an instance.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
The event code.
|
private java.lang.String |
description
A description of the event.
|
private java.util.Date |
notAfter
The latest scheduled end time for the event.
|
private java.util.Date |
notBefore
The earliest scheduled start time for the event.
|
Constructor and Description |
---|
InstanceStatusEvent() |
Modifier and Type | Method and Description |
---|---|
InstanceStatusEvent |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The event code.
|
java.lang.String |
getDescription()
A description of the event.
|
java.util.Date |
getNotAfter()
The latest scheduled end time for the event.
|
java.util.Date |
getNotBefore()
The earliest scheduled start time for the event.
|
int |
hashCode() |
void |
setCode(EventCode code)
The event code.
|
void |
setCode(java.lang.String code)
The event code.
|
void |
setDescription(java.lang.String description)
A description of the event.
|
void |
setNotAfter(java.util.Date notAfter)
The latest scheduled end time for the event.
|
void |
setNotBefore(java.util.Date notBefore)
The earliest scheduled start time for the event.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceStatusEvent |
withCode(EventCode code)
The event code.
|
InstanceStatusEvent |
withCode(java.lang.String code)
The event code.
|
InstanceStatusEvent |
withDescription(java.lang.String description)
A description of the event.
|
InstanceStatusEvent |
withNotAfter(java.util.Date notAfter)
The latest scheduled end time for the event.
|
InstanceStatusEvent |
withNotBefore(java.util.Date notBefore)
The earliest scheduled start time for the event.
|
private java.lang.String code
The event code.
private java.lang.String 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].
private java.util.Date notBefore
The earliest scheduled start time for the event.
private java.util.Date notAfter
The latest scheduled end time for the event.
public void setCode(java.lang.String code)
The event code.
code
- The event code.EventCode
public java.lang.String getCode()
The event code.
EventCode
public InstanceStatusEvent withCode(java.lang.String code)
The event code.
code
- The event code.EventCode
public void setCode(EventCode code)
The event code.
code
- The event code.EventCode
public InstanceStatusEvent withCode(EventCode code)
The event code.
code
- The event code.EventCode
public void setDescription(java.lang.String 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].
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].
public java.lang.String 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].
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].
public InstanceStatusEvent withDescription(java.lang.String 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].
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].
public void setNotBefore(java.util.Date notBefore)
The earliest scheduled start time for the event.
notBefore
- The earliest scheduled start time for the event.public java.util.Date getNotBefore()
The earliest scheduled start time for the event.
public InstanceStatusEvent withNotBefore(java.util.Date notBefore)
The earliest scheduled start time for the event.
notBefore
- The earliest scheduled start time for the event.public void setNotAfter(java.util.Date notAfter)
The latest scheduled end time for the event.
notAfter
- The latest scheduled end time for the event.public java.util.Date getNotAfter()
The latest scheduled end time for the event.
public InstanceStatusEvent withNotAfter(java.util.Date notAfter)
The latest scheduled end time for the event.
notAfter
- The latest scheduled end time for the event.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceStatusEvent clone()
clone
in class java.lang.Object