public class Event extends Object implements Serializable
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.
Constructor and Description |
---|
Event()
Default constructor for a new Event object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getDate()
The date and time when the event occurred.
|
String |
getMessage()
The text of the event.
|
String |
getSourceIdentifier()
The identifier for the source of the event.
|
String |
getSourceType()
Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.
|
int |
hashCode() |
void |
setDate(Date date)
The date and time when the event occurred.
|
void |
setMessage(String message)
The text of the event.
|
void |
setSourceIdentifier(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(String sourceType)
Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withDate(Date date)
The date and time when the event occurred.
|
Event |
withMessage(String message)
The text of the event.
|
Event |
withSourceIdentifier(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(String sourceType)
Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.
|
public Event()
public String getSourceIdentifier()
public void setSourceIdentifier(String sourceIdentifier)
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 Event withSourceIdentifier(String sourceIdentifier)
Returns a reference to this object so that method calls can be chained together.
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 String getSourceType()
Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group
SourceType
public void setSourceType(String sourceType)
Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public Event withSourceType(String sourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public void setSourceType(SourceType sourceType)
Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public Event withSourceType(SourceType sourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: cache-cluster, cache-parameter-group, cache-security-group, cache-subnet-group
sourceType
- Specifies the origin of this event - a cache cluster, a parameter
group, a security group, etc.SourceType
public String getMessage()
public void setMessage(String message)
message
- The text of the event.public Event withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- The text of the event.public Date getDate()
public void setDate(Date date)
date
- The date and time when the event occurred.public Event withDate(Date date)
Returns a reference to this object so that method calls can be chained together.
date
- The date and time when the event occurred.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.