@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable
Describes an event.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(Object obj) |
Date |
getDate()
The date and time of the event.
|
List<String> |
getEventCategories()
A list of the event categories.
|
String |
getEventId()
The identifier of the event.
|
String |
getMessage()
The text of this event.
|
String |
getSeverity()
The severity of the event.
|
String |
getSourceIdentifier()
The identifier for the source of the event.
|
String |
getSourceType()
The source type for this event.
|
int |
hashCode() |
void |
setDate(Date date)
The date and time of the event.
|
void |
setEventCategories(Collection<String> eventCategories)
A list of the event categories.
|
void |
setEventId(String eventId)
The identifier of the event.
|
void |
setMessage(String message)
The text of this event.
|
void |
setSeverity(String severity)
The severity of the event.
|
void |
setSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.
|
void |
setSourceType(SourceType sourceType)
The source type for this event.
|
void |
setSourceType(String sourceType)
The source type for this event.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Event |
withDate(Date date)
The date and time of the event.
|
Event |
withEventCategories(Collection<String> eventCategories)
A list of the event categories.
|
Event |
withEventCategories(String... eventCategories)
A list of the event categories.
|
Event |
withEventId(String eventId)
The identifier of the event.
|
Event |
withMessage(String message)
The text of this event.
|
Event |
withSeverity(String severity)
The severity of the event.
|
Event |
withSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.
|
Event |
withSourceType(SourceType sourceType)
The source type for this event.
|
Event |
withSourceType(String sourceType)
The source type for this event.
|
public void setSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.
sourceIdentifier
- The identifier for the source of the event.public String getSourceIdentifier()
The identifier for the source of the event.
public Event withSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.
sourceIdentifier
- The identifier for the source of the event.public void setSourceType(String sourceType)
The source type for this event.
sourceType
- The source type for this event.SourceType
public String getSourceType()
The source type for this event.
SourceType
public Event withSourceType(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(String message)
The text of this event.
message
- The text of this event.public String getMessage()
The text of this event.
public Event withMessage(String message)
The text of this event.
message
- The text of this event.public List<String> getEventCategories()
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
Values: Configuration, Management, Monitoring, Security
public void setEventCategories(Collection<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(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(Collection<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(String severity)
The severity of the event.
Values: ERROR, INFO
severity
- The severity of the event.
Values: ERROR, INFO
public String getSeverity()
The severity of the event.
Values: ERROR, INFO
Values: ERROR, INFO
public Event withSeverity(String severity)
The severity of the event.
Values: ERROR, INFO
severity
- The severity of the event.
Values: ERROR, INFO
public void setDate(Date date)
The date and time of the event.
date
- The date and time of the event.public Date getDate()
The date and time of the event.
public Event withDate(Date date)
The date and time of the event.
date
- The date and time of the event.public void setEventId(String eventId)
The identifier of the event.
eventId
- The identifier of the event.public String getEventId()
The identifier of the event.
public Event withEventId(String eventId)
The identifier of the event.
eventId
- The identifier of the event.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.