@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 cluster, adding or removing a cache node, or rebooting a node.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and 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 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 cluster, a parameter group, a security group, etc.
|
void |
setSourceType(String sourceType)
Specifies the origin of this event - a 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 cluster, a parameter group, a security group, etc.
|
Event |
withSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
|
public void setSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.
sourceIdentifier
- The identifier for the source of the event. For example, if the event occurred at the cluster level, the
identifier would be the name of the cluster.public String getSourceIdentifier()
The identifier for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.
public Event withSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.
sourceIdentifier
- The identifier for the source of the event. For example, if the event occurred at the cluster level, the
identifier would be the name of the cluster.public void setSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cluster, a parameter group, a security group, etc.SourceType
public String getSourceType()
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
SourceType
public Event withSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cluster, a parameter group, a security group, etc.SourceType
public void setSourceType(SourceType sourceType)
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cluster, a parameter group, a security group, etc.SourceType
public Event withSourceType(SourceType sourceType)
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
sourceType
- Specifies the origin of this event - a cluster, a parameter group, a security group, etc.SourceType
public void setMessage(String message)
The text of the event.
message
- The text of the event.public String getMessage()
The text of the event.
public Event withMessage(String message)
The text of the event.
message
- The text of the event.public void setDate(Date date)
The date and time when the event occurred.
date
- The date and time when the event occurred.public Date getDate()
The date and time when the event occurred.
public Event withDate(Date date)
The date and time when the event occurred.
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.