Class Event
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
clone()
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 dateValue)
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 dateValue)
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.
-
-
-
Method Detail
-
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:
SourceType
-
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:
SourceType
-
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:
SourceType
-
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:
SourceType
-
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:
SourceType
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-