public class Event
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
dateValue
The date and time when the event occurred.
|
private java.lang.String |
message
The text of the event.
|
private java.lang.String |
sourceIdentifier
The identifier for the source of the event.
|
private java.lang.String |
sourceType
Specifies the origin of this event - a cache cluster, a parameter group,
a security group, etc.
|
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDate()
The date and time when the event occurred.
|
java.lang.String |
getMessage()
The text of the event.
|
java.lang.String |
getSourceIdentifier()
The identifier for the source of the event.
|
java.lang.String |
getSourceType()
Specifies the origin of this event - a cache cluster, a parameter group,
a security group, etc.
|
int |
hashCode() |
void |
setDate(java.util.Date dateValue)
The date and time when the event occurred.
|
void |
setMessage(java.lang.String message)
The text of the event.
|
void |
setSourceIdentifier(java.lang.String sourceIdentifier)
The identifier for the source of the event.
|
void |
setSourceType(SourceType sourceType)
Specifies the origin of this event - a cache cluster, a parameter group,
a security group, etc.
|
void |
setSourceType(java.lang.String sourceType)
Specifies the origin of this event - a cache cluster, a parameter group,
a security group, etc.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withDate(java.util.Date dateValue)
The date and time when the event occurred.
|
Event |
withMessage(java.lang.String message)
The text of the event.
|
Event |
withSourceIdentifier(java.lang.String sourceIdentifier)
The identifier for the source of the event.
|
Event |
withSourceType(SourceType sourceType)
Specifies the origin of this event - a cache cluster, a parameter group,
a security group, etc.
|
Event |
withSourceType(java.lang.String sourceType)
Specifies the origin of this event - a cache cluster, a parameter group,
a security group, etc.
|
private java.lang.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.
private java.lang.String sourceType
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
private java.lang.String message
The text of the event.
private java.util.Date dateValue
The date and time when the event occurred.
public void setSourceIdentifier(java.lang.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.
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.public java.lang.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.
public Event withSourceIdentifier(java.lang.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.
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.public void setSourceType(java.lang.String sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public java.lang.String getSourceType()
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
SourceType
public Event withSourceType(java.lang.String sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public void setSourceType(SourceType sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public Event withSourceType(SourceType sourceType)
Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public void setMessage(java.lang.String message)
The text of the event.
message
- The text of the event.public java.lang.String getMessage()
The text of the event.
public Event withMessage(java.lang.String message)
The text of the event.
message
- The text of the event.public void setDate(java.util.Date dateValue)
The date and time when the event occurred.
dateValue
- The date and time when the event occurred.public java.util.Date getDate()
The date and time when the event occurred.
public Event withDate(java.util.Date dateValue)
The date and time when the event occurred.
dateValue
- The date and time when the event occurred.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Event clone()
clone
in class java.lang.Object