@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
Describes an identifiable significant activity that affects a replication instance or task. This object can provide the message, the available event categories, the date and source of the event, and the DMS resource type.
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
clone() |
boolean |
equals(Object obj) |
Date |
getDate()
The date of the event.
|
List<String> |
getEventCategories()
The event categories available for the specified source type.
|
String |
getMessage()
The event message.
|
String |
getSourceIdentifier()
The identifier of an event source.
|
String |
getSourceType()
The type of DMS resource that generates events.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDate(Date date)
The date of the event.
|
void |
setEventCategories(Collection<String> eventCategories)
The event categories available for the specified source type.
|
void |
setMessage(String message)
The event message.
|
void |
setSourceIdentifier(String sourceIdentifier)
The identifier of an event source.
|
void |
setSourceType(SourceType sourceType)
The type of DMS resource that generates events.
|
void |
setSourceType(String sourceType)
The type of DMS resource that generates events.
|
String |
toString()
Returns a string representation of this object.
|
Event |
withDate(Date date)
The date of the event.
|
Event |
withEventCategories(Collection<String> eventCategories)
The event categories available for the specified source type.
|
Event |
withEventCategories(String... eventCategories)
The event categories available for the specified source type.
|
Event |
withMessage(String message)
The event message.
|
Event |
withSourceIdentifier(String sourceIdentifier)
The identifier of an event source.
|
Event |
withSourceType(SourceType sourceType)
The type of DMS resource that generates events.
|
Event |
withSourceType(String sourceType)
The type of DMS resource that generates events.
|
public void setSourceIdentifier(String sourceIdentifier)
The identifier of an event source.
sourceIdentifier - The identifier of an event source.public String getSourceIdentifier()
The identifier of an event source.
public Event withSourceIdentifier(String sourceIdentifier)
The identifier of an event source.
sourceIdentifier - The identifier of an event source.public void setSourceType(String sourceType)
The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
sourceType - The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
SourceTypepublic String getSourceType()
The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
Valid values: replication-instance | endpoint | replication-task
SourceTypepublic Event withSourceType(String sourceType)
The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
sourceType - The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
SourceTypepublic void setSourceType(SourceType sourceType)
The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
sourceType - The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
SourceTypepublic Event withSourceType(SourceType sourceType)
The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
sourceType - The type of DMS resource that generates events.
Valid values: replication-instance | endpoint | replication-task
SourceTypepublic void setMessage(String message)
The event message.
message - The event message.public String getMessage()
The event message.
public Event withMessage(String message)
The event message.
message - The event message.public List<String> getEventCategories()
The event categories available for the specified source type.
public void setEventCategories(Collection<String> eventCategories)
The event categories available for the specified source type.
eventCategories - The event categories available for the specified source type.public Event withEventCategories(String... eventCategories)
The event categories available for the specified source type.
NOTE: This method appends the values to the existing list (if any). Use
setEventCategories(java.util.Collection) or withEventCategories(java.util.Collection) if you
want to override the existing values.
eventCategories - The event categories available for the specified source type.public Event withEventCategories(Collection<String> eventCategories)
The event categories available for the specified source type.
eventCategories - The event categories available for the specified source type.public void setDate(Date date)
The date of the event.
date - The date of the event.public Date getDate()
The date of the event.
public Event withDate(Date date)
The date of the event.
date - The date of the event.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.