com.amazonaws.services.ec2.model
Class InstanceStatusEvent

java.lang.Object
  extended by com.amazonaws.services.ec2.model.InstanceStatusEvent

public class InstanceStatusEvent
extends Object

Represents an event that affects the status of an Amazon EC2 instance.


Constructor Summary
InstanceStatusEvent()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCode()
          The associated code of the event.
 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(String code)
          The associated code of the event.
 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(String code)
          The associated code of the event.
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceStatusEvent

public InstanceStatusEvent()
Method Detail

getCode

public String getCode()
The associated code of the event. Valid values: instance-reboot, system-reboot, instance-retirement

Returns:
The associated code of the event. Valid values: instance-reboot, system-reboot, instance-retirement

setCode

public void setCode(String code)
The associated code of the event. Valid values: instance-reboot, system-reboot, instance-retirement

Parameters:
code - The associated code of the event. Valid values: instance-reboot, system-reboot, instance-retirement

withCode

public InstanceStatusEvent withCode(String code)
The associated code of the event. Valid values: instance-reboot, system-reboot, instance-retirement

Returns a reference to this object so that method calls can be chained together.

Parameters:
code - The associated code of the event. Valid values: instance-reboot, system-reboot, instance-retirement
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
A description of the event.

Returns:
A description of the event.

setDescription

public void setDescription(String description)
A description of the event.

Parameters:
description - A description of the event.

withDescription

public InstanceStatusEvent withDescription(String description)
A description of the event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - A description of the event.
Returns:
A reference to this updated object so that method calls can be chained together.

getNotBefore

public Date getNotBefore()
The earliest scheduled start time for the event.

Returns:
The earliest scheduled start time for the event.

setNotBefore

public void setNotBefore(Date notBefore)
The earliest scheduled start time for the event.

Parameters:
notBefore - The earliest scheduled start time for the event.

withNotBefore

public InstanceStatusEvent withNotBefore(Date notBefore)
The earliest scheduled start time for the event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
notBefore - The earliest scheduled start time for the event.
Returns:
A reference to this updated object so that method calls can be chained together.

getNotAfter

public Date getNotAfter()
The latest scheduled end time for the event.

Returns:
The latest scheduled end time for the event.

setNotAfter

public void setNotAfter(Date notAfter)
The latest scheduled end time for the event.

Parameters:
notAfter - The latest scheduled end time for the event.

withNotAfter

public InstanceStatusEvent withNotAfter(Date notAfter)
The latest scheduled end time for the event.

Returns a reference to this object so that method calls can be chained together.

Parameters:
notAfter - The latest scheduled end time for the event.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.