|
Did this page help you?Yes No Tell us about it... |
||||||
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 | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getCode()
The associated code of the event. |
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(java.lang.String code)
The associated code of the event. |
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(java.lang.String code)
The associated code of the event. |
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InstanceStatusEvent()
Method Detail |
---|
public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- The associated code of the event. Valid values: instance-reboot,
system-reboot, instance-retirementpublic InstanceStatusEvent withCode(java.lang.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-retirementpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description of the event.public InstanceStatusEvent withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description
- A description of the event.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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |