public class InstanceStatusEvent
extends java.lang.Object
implements java.io.Serializable
Describes a scheduled event for an instance.
Constructor and Description |
---|
InstanceStatusEvent() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getCode()
Constraints:
Allowed Values: instance-reboot, system-reboot, system-maintenance, instance-retirement, instance-stop
EventCode
public void setCode(java.lang.String code)
Constraints:
Allowed Values: instance-reboot, system-reboot, system-maintenance, instance-retirement, instance-stop
code
- The event code.EventCode
public InstanceStatusEvent withCode(java.lang.String code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: instance-reboot, system-reboot, system-maintenance, instance-retirement, instance-stop
code
- The event code.EventCode
public void setCode(EventCode code)
Constraints:
Allowed Values: instance-reboot, system-reboot, system-maintenance, instance-retirement, instance-stop
code
- The event code.EventCode
public InstanceStatusEvent withCode(EventCode code)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: instance-reboot, system-reboot, system-maintenance, instance-retirement, instance-stop
code
- The event code.EventCode
public java.lang.String getDescription()
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 void setDescription(java.lang.String description)
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 InstanceStatusEvent withDescription(java.lang.String description)
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 reference to this object so that method calls can be chained together.
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.util.Date getNotBefore()
public void setNotBefore(java.util.Date notBefore)
notBefore
- The earliest scheduled start time for the event.public InstanceStatusEvent withNotBefore(java.util.Date notBefore)
Returns a reference to this object so that method calls can be chained together.
notBefore
- The earliest scheduled start time for the event.public java.util.Date getNotAfter()
public void setNotAfter(java.util.Date notAfter)
notAfter
- The latest scheduled end time for the event.public InstanceStatusEvent withNotAfter(java.util.Date notAfter)
Returns a reference to this object so that method calls can be chained together.
notAfter
- The latest scheduled end time for the event.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.