@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 cluster or adding or removing 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 |
getSourceName()
The name 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 |
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)
The text of the event.
|
void |
setSourceName(String sourceName)
The name for the source of the event.
|
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.
|
Event |
withDate(Date date)
The date and time when the event occurred.
|
Event |
withMessage(String message)
The text of the event.
|
Event |
withSourceName(String sourceName)
The name 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 setSourceName(String sourceName)
The name 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.
sourceName
- The name 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 getSourceName()
The name 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 withSourceName(String sourceName)
The name 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.
sourceName
- The name 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 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.