@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceStatusEvent extends Object implements Serializable, Cloneable
Describes a scheduled event for an instance.
Constructor and Description |
---|
InstanceStatusEvent() |
Modifier and Type | Method and Description |
---|---|
InstanceStatusEvent |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The event code.
|
String |
getDescription()
A description of the event.
|
String |
getInstanceEventId()
The ID of the event.
|
Date |
getNotAfter()
The latest scheduled end time for the event.
|
Date |
getNotBefore()
The earliest scheduled start time for the event.
|
Date |
getNotBeforeDeadline()
The deadline for starting the event.
|
int |
hashCode() |
void |
setCode(EventCode code)
The event code.
|
void |
setCode(String code)
The event code.
|
void |
setDescription(String description)
A description of the event.
|
void |
setInstanceEventId(String instanceEventId)
The ID 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.
|
void |
setNotBeforeDeadline(Date notBeforeDeadline)
The deadline for starting the event.
|
String |
toString()
Returns a string representation of this object.
|
InstanceStatusEvent |
withCode(EventCode code)
The event code.
|
InstanceStatusEvent |
withCode(String code)
The event code.
|
InstanceStatusEvent |
withDescription(String description)
A description of the event.
|
InstanceStatusEvent |
withInstanceEventId(String instanceEventId)
The ID 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.
|
InstanceStatusEvent |
withNotBeforeDeadline(Date notBeforeDeadline)
The deadline for starting the event.
|
public void setInstanceEventId(String instanceEventId)
The ID of the event.
instanceEventId
- The ID of the event.public String getInstanceEventId()
The ID of the event.
public InstanceStatusEvent withInstanceEventId(String instanceEventId)
The ID of the event.
instanceEventId
- The ID of the event.public void setCode(String code)
The event code.
code
- The event code.EventCode
public InstanceStatusEvent withCode(String code)
The event code.
code
- The event code.EventCode
public void setCode(EventCode code)
The event code.
code
- The event code.EventCode
public InstanceStatusEvent withCode(EventCode code)
The event code.
code
- The event code.EventCode
public void setDescription(String 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].
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 String getDescription()
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].
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(String 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].
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 void setNotAfter(Date notAfter)
The latest scheduled end time for the event.
notAfter
- The latest scheduled end time for the event.public Date getNotAfter()
The latest scheduled end time for the event.
public InstanceStatusEvent withNotAfter(Date notAfter)
The latest scheduled end time for the event.
notAfter
- The latest scheduled end time for the event.public void setNotBefore(Date notBefore)
The earliest scheduled start time for the event.
notBefore
- The earliest scheduled start time for the event.public Date getNotBefore()
The earliest scheduled start time for the event.
public InstanceStatusEvent withNotBefore(Date notBefore)
The earliest scheduled start time for the event.
notBefore
- The earliest scheduled start time for the event.public void setNotBeforeDeadline(Date notBeforeDeadline)
The deadline for starting the event.
notBeforeDeadline
- The deadline for starting the event.public Date getNotBeforeDeadline()
The deadline for starting the event.
public InstanceStatusEvent withNotBeforeDeadline(Date notBeforeDeadline)
The deadline for starting the event.
notBeforeDeadline
- The deadline for starting the event.public String toString()
toString
in class Object
Object.toString()
public InstanceStatusEvent clone()