@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
Represents a single occurrence of something interesting within the system. Some examples of events are creating a DAX cluster, adding or removing a 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()
A user-defined message associated with the event.
|
String |
getSourceName()
The source of the event.
|
String |
getSourceType()
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDate(Date date)
The date and time when the event occurred.
|
void |
setMessage(String message)
A user-defined message associated with the event.
|
void |
setSourceName(String sourceName)
The source of the event.
|
void |
setSourceType(SourceType sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
void |
setSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
String |
toString()
Returns a string representation of this object.
|
Event |
withDate(Date date)
The date and time when the event occurred.
|
Event |
withMessage(String message)
A user-defined message associated with the event.
|
Event |
withSourceName(String sourceName)
The source of the event.
|
Event |
withSourceType(SourceType sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
Event |
withSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
public void setSourceName(String sourceName)
The source of the event. For example, if the event occurred at the node level, the source would be the node ID.
sourceName - The source of the event. For example, if the event occurred at the node level, the source would be the
node ID.public String getSourceName()
The source of the event. For example, if the event occurred at the node level, the source would be the node ID.
public Event withSourceName(String sourceName)
The source of the event. For example, if the event occurred at the node level, the source would be the node ID.
sourceName - The source of the event. For example, if the event occurred at the node level, the source would be the
node ID.public void setSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
sourceType - Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.SourceTypepublic String getSourceType()
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
SourceTypepublic Event withSourceType(String sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
sourceType - Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.SourceTypepublic void setSourceType(SourceType sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
sourceType - Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.SourceTypepublic Event withSourceType(SourceType sourceType)
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
sourceType - Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.SourceTypepublic void setMessage(String message)
A user-defined message associated with the event.
message - A user-defined message associated with the event.public String getMessage()
A user-defined message associated with the event.
public Event withMessage(String message)
A user-defined message associated with the event.
message - A user-defined message associated with 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 ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.