Class Event
- java.lang.Object
-
- com.amazonaws.services.redshift.model.Event
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Event extends Object implements Serializable, Cloneable
Describes an event.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 dateValue)
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 dateValue)
The date and time of the event.Event
withEventCategories(String... eventCategories)
A list of the event categories.Event
withEventCategories(Collection<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.
-
-
-
Method Detail
-
setSourceIdentifier
public void setSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.
- Parameters:
sourceIdentifier
- The identifier for the source of the event.
-
getSourceIdentifier
public String getSourceIdentifier()
The identifier for the source of the event.
- Returns:
- The identifier for the source of the event.
-
withSourceIdentifier
public Event withSourceIdentifier(String sourceIdentifier)
The identifier for the source of the event.
- Parameters:
sourceIdentifier
- The identifier for the source of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceType
public void setSourceType(String sourceType)
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- See Also:
SourceType
-
getSourceType
public String getSourceType()
The source type for this event.
- Returns:
- The source type for this event.
- See Also:
SourceType
-
withSourceType
public Event withSourceType(String sourceType)
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SourceType
-
setSourceType
public void setSourceType(SourceType sourceType)
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- See Also:
SourceType
-
withSourceType
public Event withSourceType(SourceType sourceType)
The source type for this event.
- Parameters:
sourceType
- The source type for this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SourceType
-
setMessage
public void setMessage(String message)
The text of this event.
- Parameters:
message
- The text of this event.
-
getMessage
public String getMessage()
The text of this event.
- Returns:
- The text of this event.
-
withMessage
public Event withMessage(String message)
The text of this event.
- Parameters:
message
- The text of this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEventCategories
public List<String> getEventCategories()
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
- Returns:
- A list of the event categories.
Values: Configuration, Management, Monitoring, Security
-
setEventCategories
public void setEventCategories(Collection<String> eventCategories)
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
- Parameters:
eventCategories
- A list of the event categories.Values: Configuration, Management, Monitoring, Security
-
withEventCategories
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)
orwithEventCategories(java.util.Collection)
if you want to override the existing values.- Parameters:
eventCategories
- A list of the event categories.Values: Configuration, Management, Monitoring, Security
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEventCategories
public Event withEventCategories(Collection<String> eventCategories)
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
- Parameters:
eventCategories
- A list of the event categories.Values: Configuration, Management, Monitoring, Security
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSeverity
public void setSeverity(String severity)
The severity of the event.
Values: ERROR, INFO
- Parameters:
severity
- The severity of the event.Values: ERROR, INFO
-
getSeverity
public String getSeverity()
The severity of the event.
Values: ERROR, INFO
- Returns:
- The severity of the event.
Values: ERROR, INFO
-
withSeverity
public Event withSeverity(String severity)
The severity of the event.
Values: ERROR, INFO
- Parameters:
severity
- The severity of the event.Values: ERROR, INFO
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDate
public void setDate(Date dateValue)
The date and time of the event.
- Parameters:
dateValue
- The date and time of the event.
-
getDate
public Date getDate()
The date and time of the event.
- Returns:
- The date and time of the event.
-
withDate
public Event withDate(Date dateValue)
The date and time of the event.
- Parameters:
dateValue
- The date and time of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventId
public void setEventId(String eventId)
The identifier of the event.
- Parameters:
eventId
- The identifier of the event.
-
getEventId
public String getEventId()
The identifier of the event.
- Returns:
- The identifier of the event.
-
withEventId
public Event withEventId(String eventId)
The identifier of the event.
- Parameters:
eventId
- The identifier of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-