|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.InstanceStatusEvent
public class InstanceStatusEvent
Represents an event that affects the status of an Amazon EC2 instance.
Constructor Summary | |
---|---|
InstanceStatusEvent()
|
Method Summary | |
---|---|
String |
getCode()
The associated code of the event. |
String |
getDescription()
A description of the event. |
Date |
getNotAfter()
The latest scheduled end time for the event. |
Date |
getNotBefore()
The earliest scheduled start time for the event. |
void |
setCode(String code)
The associated code of the event. |
void |
setDescription(String description)
A description of the event. |
void |
setNotAfter(Date notAfter)
The latest scheduled end time for the event. |
void |
setNotBefore(Date notBefore)
The earliest scheduled start time for the event. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
InstanceStatusEvent |
withCode(String code)
The associated code of the event. |
InstanceStatusEvent |
withDescription(String description)
A description of the event. |
InstanceStatusEvent |
withNotAfter(Date notAfter)
The latest scheduled end time for the event. |
InstanceStatusEvent |
withNotBefore(Date notBefore)
The earliest scheduled start time for the event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceStatusEvent()
Method Detail |
---|
public String getCode()
public void setCode(String code)
code
- The associated code of the event. Valid values: instance-reboot,
system-reboot, instance-retirementpublic InstanceStatusEvent withCode(String code)
Returns a reference to this object so that method calls can be chained together.
code
- The associated code of the event. Valid values: instance-reboot,
system-reboot, instance-retirement
public String getDescription()
public void setDescription(String description)
description
- A description of the event.public InstanceStatusEvent withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description of the event.
public Date getNotBefore()
public void setNotBefore(Date notBefore)
notBefore
- The earliest scheduled start time for the event.public InstanceStatusEvent withNotBefore(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 Date getNotAfter()
public void setNotAfter(Date notAfter)
notAfter
- The latest scheduled end time for the event.public InstanceStatusEvent withNotAfter(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 String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |