java.lang.Object
com.amazonaws.services.elasticache.model.Event
All Implemented Interfaces:
Serializable, Cloneable

public class Event extends Object implements Serializable, Cloneable

Represents a single occurrence of something interesting within the system. Some examples of events are creating a cache cluster, adding or removing a cache node, or rebooting a node.

See Also:
  • Constructor Details

    • Event

      public Event()
  • Method Details

    • setSourceIdentifier

      public void setSourceIdentifier(String sourceIdentifier)

      The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

      Parameters:
      sourceIdentifier - The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.
    • getSourceIdentifier

      public String getSourceIdentifier()

      The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

      Returns:
      The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.
    • withSourceIdentifier

      public Event withSourceIdentifier(String sourceIdentifier)

      The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.

      Parameters:
      sourceIdentifier - The identifier for the source of the event. For example, if the event occurred at the cache cluster level, the identifier would be the name of the cache cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSourceType

      public void setSourceType(String sourceType)

      Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

      Parameters:
      sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
      See Also:
    • getSourceType

      public String getSourceType()

      Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

      Returns:
      Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
      See Also:
    • withSourceType

      public Event withSourceType(String sourceType)

      Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

      Parameters:
      sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setSourceType

      public void setSourceType(SourceType sourceType)

      Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

      Parameters:
      sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
      See Also:
    • withSourceType

      public Event withSourceType(SourceType sourceType)

      Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.

      Parameters:
      sourceType - Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setMessage

      public void setMessage(String message)

      The text of the event.

      Parameters:
      message - The text of the event.
    • getMessage

      public String getMessage()

      The text of the event.

      Returns:
      The text of the event.
    • withMessage

      public Event withMessage(String message)

      The text of the event.

      Parameters:
      message - The text of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDate

      public void setDate(Date dateValue)

      The date and time when the event occurred.

      Parameters:
      dateValue - The date and time when the event occurred.
    • getDate

      public Date getDate()

      The date and time when the event occurred.

      Returns:
      The date and time when the event occurred.
    • withDate

      public Event withDate(Date dateValue)

      The date and time when the event occurred.

      Parameters:
      dateValue - The date and time when the event occurred.
      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 Event clone()
      Overrides:
      clone in class Object