Class InstanceStatusEvent
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceStatusEvent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class InstanceStatusEvent extends Object implements Serializable, Cloneable
Describes a scheduled event for an instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceStatusEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceStatusEvent
clone()
boolean
equals(Object obj)
String
getCode()
The event code.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.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
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(EventCode code)
The event code.InstanceStatusEvent
withCode(String code)
The event code.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.
-
-
-
Method Detail
-
setCode
public void setCode(String code)
The event code.
- Parameters:
code
- The event code.- See Also:
EventCode
-
withCode
public InstanceStatusEvent withCode(String code)
The event code.
- Parameters:
code
- The event code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventCode
-
setCode
public void setCode(EventCode code)
The event code.
- Parameters:
code
- The event code.- See Also:
EventCode
-
withCode
public InstanceStatusEvent withCode(EventCode code)
The event code.
- Parameters:
code
- The event code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventCode
-
setDescription
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].
- Parameters:
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].
-
getDescription
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].
- Returns:
- 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].
-
withDescription
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].
- Parameters:
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].
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotBefore
public void setNotBefore(Date notBefore)
The earliest scheduled start time for the event.
- Parameters:
notBefore
- The earliest scheduled start time for the event.
-
getNotBefore
public Date getNotBefore()
The earliest scheduled start time for the event.
- Returns:
- The earliest scheduled start time for the event.
-
withNotBefore
public InstanceStatusEvent withNotBefore(Date notBefore)
The earliest scheduled start time for the event.
- Parameters:
notBefore
- The earliest scheduled start time for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotAfter
public void setNotAfter(Date notAfter)
The latest scheduled end time for the event.
- Parameters:
notAfter
- The latest scheduled end time for the event.
-
getNotAfter
public Date getNotAfter()
The latest scheduled end time for the event.
- Returns:
- The latest scheduled end time for the event.
-
withNotAfter
public InstanceStatusEvent withNotAfter(Date notAfter)
The latest scheduled end time for the event.
- Parameters:
notAfter
- The latest scheduled end time for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceStatusEvent clone()
-
-