|
|||||||
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
Describes an instance event.
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(EventCode code)
The associated code of the event. |
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(EventCode code)
The associated code of the event. |
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()
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 associated code of the event.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 associated code of the event.
EventCode
public void setCode(EventCode code)
Constraints:
Allowed Values: instance-reboot, system-reboot, system-maintenance, instance-retirement, instance-stop
code
- The associated code of the event.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 associated code of the event.
EventCode
public 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 |