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:
  • Constructor Details

    • InstanceStatusEvent

      public InstanceStatusEvent()
  • Method Details

    • setCode

      public void setCode(String code)

      The event code.

      Parameters:
      code - The event code.
      See Also:
    • getCode

      public String getCode()

      The event code.

      Returns:
      The event code.
      See Also:
    • 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:
    • setCode

      public void setCode(EventCode code)

      The event code.

      Parameters:
      code - The event code.
      See Also:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public InstanceStatusEvent clone()
      Overrides:
      clone in class Object