Class Event
- java.lang.Object
-
- com.amazonaws.services.rds.model.Event
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Event extends Object implements Serializable, Cloneable
This data type is used as a response element in the DescribeEvents action.
- 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()Specifies the date and time of the event.List<String>getEventCategories()Specifies the category for the event.StringgetMessage()Provides the text of this event.StringgetSourceIdentifier()Provides the identifier for the source of the event.StringgetSourceType()Specifies the source type for this event.inthashCode()voidsetDate(Date dateValue)Specifies the date and time of the event.voidsetEventCategories(Collection<String> eventCategories)Specifies the category for the event.voidsetMessage(String message)Provides the text of this event.voidsetSourceIdentifier(String sourceIdentifier)Provides the identifier for the source of the event.voidsetSourceType(SourceType sourceType)Specifies the source type for this event.voidsetSourceType(String sourceType)Specifies the source type for this event.StringtoString()Returns a string representation of this object; useful for testing and debugging.EventwithDate(Date dateValue)Specifies the date and time of the event.EventwithEventCategories(String... eventCategories)Specifies the category for the event.EventwithEventCategories(Collection<String> eventCategories)Specifies the category for the event.EventwithMessage(String message)Provides the text of this event.EventwithSourceIdentifier(String sourceIdentifier)Provides the identifier for the source of the event.EventwithSourceType(SourceType sourceType)Specifies the source type for this event.EventwithSourceType(String sourceType)Specifies the source type for this event.
-
-
-
Method Detail
-
setSourceIdentifier
public void setSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.
- Parameters:
sourceIdentifier- Provides the identifier for the source of the event.
-
getSourceIdentifier
public String getSourceIdentifier()
Provides the identifier for the source of the event.
- Returns:
- Provides the identifier for the source of the event.
-
withSourceIdentifier
public Event withSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.
- Parameters:
sourceIdentifier- Provides 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)
Specifies the source type for this event.
- Parameters:
sourceType- Specifies the source type for this event.- See Also:
SourceType
-
getSourceType
public String getSourceType()
Specifies the source type for this event.
- Returns:
- Specifies the source type for this event.
- See Also:
SourceType
-
withSourceType
public Event withSourceType(String sourceType)
Specifies the source type for this event.
- Parameters:
sourceType- Specifies 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)
Specifies the source type for this event.
- Parameters:
sourceType- Specifies the source type for this event.- See Also:
SourceType
-
withSourceType
public Event withSourceType(SourceType sourceType)
Specifies the source type for this event.
- Parameters:
sourceType- Specifies 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)
Provides the text of this event.
- Parameters:
message- Provides the text of this event.
-
getMessage
public String getMessage()
Provides the text of this event.
- Returns:
- Provides the text of this event.
-
withMessage
public Event withMessage(String message)
Provides the text of this event.
- Parameters:
message- Provides 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()
Specifies the category for the event.
- Returns:
- Specifies the category for the event.
-
setEventCategories
public void setEventCategories(Collection<String> eventCategories)
Specifies the category for the event.
- Parameters:
eventCategories- Specifies the category for the event.
-
withEventCategories
public Event withEventCategories(String... eventCategories)
Specifies the category for the event.
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- Specifies the category for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEventCategories
public Event withEventCategories(Collection<String> eventCategories)
Specifies the category for the event.
- Parameters:
eventCategories- Specifies the category for the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDate
public void setDate(Date dateValue)
Specifies the date and time of the event.
- Parameters:
dateValue- Specifies the date and time of the event.
-
getDate
public Date getDate()
Specifies the date and time of the event.
- Returns:
- Specifies the date and time of the event.
-
withDate
public Event withDate(Date dateValue)
Specifies the date and time of the event.
- Parameters:
dateValue- Specifies the date and time 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()
-
-