public class InstanceStatusEvent
extends java.lang.Object
implements java.io.Serializable
Represents an event that affects the status of an Amazon EC2 instance.
| コンストラクタと説明 |
|---|
InstanceStatusEvent() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
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 クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object