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 Event
clone()
boolean
equals(Object obj)
Date
getDate()
Specifies the date and time of the event.List<String>
getEventCategories()
Specifies the category for the event.String
getMessage()
Provides the text of this event.String
getSourceIdentifier()
Provides the identifier for the source of the event.String
getSourceType()
Specifies the source type for this event.int
hashCode()
void
setDate(Date dateValue)
Specifies the date and time of the event.void
setEventCategories(Collection<String> eventCategories)
Specifies the category for the event.void
setMessage(String message)
Provides the text of this event.void
setSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.void
setSourceType(SourceType sourceType)
Specifies the source type for this event.void
setSourceType(String sourceType)
Specifies the source type for this event.String
toString()
Returns a string representation of this object; useful for testing and debugging.Event
withDate(Date dateValue)
Specifies the date and time of the event.Event
withEventCategories(String... eventCategories)
Specifies the category for the event.Event
withEventCategories(Collection<String> eventCategories)
Specifies the category for the event.Event
withMessage(String message)
Provides the text of this event.Event
withSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.Event
withSourceType(SourceType sourceType)
Specifies the source type for this event.Event
withSourceType(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-