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 Eventclone()booleanequals(Object obj)DategetDate()The date and time of the event.List<String>getEventCategories()A list of the event categories.StringgetEventId()The identifier of the event.StringgetMessage()The text of this event.StringgetSeverity()The severity of the event.StringgetSourceIdentifier()The identifier for the source of the event.StringgetSourceType()The source type for this event.inthashCode()voidsetDate(Date dateValue)The date and time of the event.voidsetEventCategories(Collection<String> eventCategories)A list of the event categories.voidsetEventId(String eventId)The identifier of the event.voidsetMessage(String message)The text of this event.voidsetSeverity(String severity)The severity of the event.voidsetSourceIdentifier(String sourceIdentifier)The identifier for the source of the event.voidsetSourceType(SourceType sourceType)The source type for this event.voidsetSourceType(String sourceType)The source type for this event.StringtoString()Returns a string representation of this object; useful for testing and debugging.EventwithDate(Date dateValue)The date and time of the event.EventwithEventCategories(String... eventCategories)A list of the event categories.EventwithEventCategories(Collection<String> eventCategories)A list of the event categories.EventwithEventId(String eventId)The identifier of the event.EventwithMessage(String message)The text of this event.EventwithSeverity(String severity)The severity of the event.EventwithSourceIdentifier(String sourceIdentifier)The identifier for the source of the event.EventwithSourceType(SourceType sourceType)The source type for this event.EventwithSourceType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-