public class Event
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an event.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
dateValue
The date and time of the event.
|
private SdkInternalList<java.lang.String> |
eventCategories
A list of the event categories.
|
private java.lang.String |
eventId
The identifier of the event.
|
private java.lang.String |
message
The text of this event.
|
private java.lang.String |
severity
The severity of the event.
|
private java.lang.String |
sourceIdentifier
The identifier for the source of the event.
|
private java.lang.String |
sourceType
The source type for this event.
|
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDate()
The date and time of the event.
|
java.util.List<java.lang.String> |
getEventCategories()
A list of the event categories.
|
java.lang.String |
getEventId()
The identifier of the event.
|
java.lang.String |
getMessage()
The text of this event.
|
java.lang.String |
getSeverity()
The severity of the event.
|
java.lang.String |
getSourceIdentifier()
The identifier for the source of the event.
|
java.lang.String |
getSourceType()
The source type for this event.
|
int |
hashCode() |
void |
setDate(java.util.Date dateValue)
The date and time of the event.
|
void |
setEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of the event categories.
|
void |
setEventId(java.lang.String eventId)
The identifier of the event.
|
void |
setMessage(java.lang.String message)
The text of this event.
|
void |
setSeverity(java.lang.String severity)
The severity of the event.
|
void |
setSourceIdentifier(java.lang.String sourceIdentifier)
The identifier for the source of the event.
|
void |
setSourceType(SourceType sourceType)
The source type for this event.
|
void |
setSourceType(java.lang.String sourceType)
The source type for this event.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withDate(java.util.Date dateValue)
The date and time of the event.
|
Event |
withEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of the event categories.
|
Event |
withEventCategories(java.lang.String... eventCategories)
A list of the event categories.
|
Event |
withEventId(java.lang.String eventId)
The identifier of the event.
|
Event |
withMessage(java.lang.String message)
The text of this event.
|
Event |
withSeverity(java.lang.String severity)
The severity of the event.
|
Event |
withSourceIdentifier(java.lang.String sourceIdentifier)
The identifier for the source of the event.
|
Event |
withSourceType(SourceType sourceType)
The source type for this event.
|
Event |
withSourceType(java.lang.String sourceType)
The source type for this event.
|
private java.lang.String sourceIdentifier
The identifier for the source of the event.
private java.lang.String sourceType
The source type for this event.
private java.lang.String message
The text of this event.
private SdkInternalList<java.lang.String> eventCategories
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
private java.lang.String severity
The severity of the event.
Values: ERROR, INFO
private java.util.Date dateValue
The date and time of the event.
private java.lang.String eventId
The identifier of the event.
public void setSourceIdentifier(java.lang.String sourceIdentifier)
The identifier for the source of the event.
sourceIdentifier
- The identifier for the source of the event.public java.lang.String getSourceIdentifier()
The identifier for the source of the event.
public Event withSourceIdentifier(java.lang.String sourceIdentifier)
The identifier for the source of the event.
sourceIdentifier
- The identifier for the source of the event.public void setSourceType(java.lang.String sourceType)
The source type for this event.
sourceType
- The source type for this event.SourceType
public java.lang.String getSourceType()
The source type for this event.
SourceType
public Event withSourceType(java.lang.String sourceType)
The source type for this event.
sourceType
- The source type for this event.SourceType
public void setSourceType(SourceType sourceType)
The source type for this event.
sourceType
- The source type for this event.SourceType
public Event withSourceType(SourceType sourceType)
The source type for this event.
sourceType
- The source type for this event.SourceType
public void setMessage(java.lang.String message)
The text of this event.
message
- The text of this event.public java.lang.String getMessage()
The text of this event.
public Event withMessage(java.lang.String message)
The text of this event.
message
- The text of this event.public java.util.List<java.lang.String> getEventCategories()
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
Values: Configuration, Management, Monitoring, Security
public void setEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
eventCategories
- A list of the event categories.
Values: Configuration, Management, Monitoring, Security
public Event withEventCategories(java.lang.String... eventCategories)
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
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
- A list of the event categories.
Values: Configuration, Management, Monitoring, Security
public Event withEventCategories(java.util.Collection<java.lang.String> eventCategories)
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
eventCategories
- A list of the event categories.
Values: Configuration, Management, Monitoring, Security
public void setSeverity(java.lang.String severity)
The severity of the event.
Values: ERROR, INFO
severity
- The severity of the event.
Values: ERROR, INFO
public java.lang.String getSeverity()
The severity of the event.
Values: ERROR, INFO
Values: ERROR, INFO
public Event withSeverity(java.lang.String severity)
The severity of the event.
Values: ERROR, INFO
severity
- The severity of the event.
Values: ERROR, INFO
public void setDate(java.util.Date dateValue)
The date and time of the event.
dateValue
- The date and time of the event.public java.util.Date getDate()
The date and time of the event.
public Event withDate(java.util.Date dateValue)
The date and time of the event.
dateValue
- The date and time of the event.public void setEventId(java.lang.String eventId)
The identifier of the event.
eventId
- The identifier of the event.public java.lang.String getEventId()
The identifier of the event.
public Event withEventId(java.lang.String eventId)
The identifier of the event.
eventId
- The identifier of the event.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Event clone()
clone
in class java.lang.Object