Class Event
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getDate()
The date and time when the event occurred.The text of the event.The identifier for the source of the event.Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.int
hashCode()
void
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.toString()
Returns a string representation of this object; useful for testing and debugging.The date and time when the event occurred.withMessage
(String message) The text of the event.withSourceIdentifier
(String sourceIdentifier) The identifier for the source of the event.withSourceType
(SourceType sourceType) Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.withSourceType
(String sourceType) Specifies the origin of this event - a cache cluster, a parameter group, a security group, etc.
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setSourceIdentifier
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
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
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
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
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
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
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
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
The text of the event.
- Parameters:
message
- The text of the event.
-
getMessage
The text of the event.
- Returns:
- The text of the event.
-
withMessage
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
The date and time when the event occurred.
- Parameters:
dateValue
- The date and time when the event occurred.
-
getDate
The date and time when the event occurred.
- Returns:
- The date and time when the event occurred.
-
withDate
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-