Class Event
- All Implemented Interfaces:
Serializable
,Cloneable
This data type is used as a response element in the DescribeEvents action.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getDate()
Specifies the date and time of the event.Specifies the category for the event.Provides the text of this event.Provides the identifier for the source of the event.Specifies the source type for this event.int
hashCode()
void
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.toString()
Returns a string representation of this object; useful for testing and debugging.Specifies the date and time of the event.withEventCategories
(String... eventCategories) Specifies the category for the event.withEventCategories
(Collection<String> eventCategories) Specifies the category for the event.withMessage
(String message) Provides the text of this event.withSourceIdentifier
(String sourceIdentifier) Provides the identifier for the source of the event.withSourceType
(SourceType sourceType) Specifies the source type for this event.withSourceType
(String sourceType) Specifies the source type for this event.
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
setSourceIdentifier
Provides the identifier for the source of the event.
- Parameters:
sourceIdentifier
- Provides the identifier for the source of the event.
-
getSourceIdentifier
Provides the identifier for the source of the event.
- Returns:
- Provides the identifier for the source of the event.
-
withSourceIdentifier
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
Specifies the source type for this event.
- Parameters:
sourceType
- Specifies the source type for this event.- See Also:
-
getSourceType
Specifies the source type for this event.
- Returns:
- Specifies the source type for this event.
- See Also:
-
withSourceType
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:
-
setSourceType
Specifies the source type for this event.
- Parameters:
sourceType
- Specifies the source type for this event.- See Also:
-
withSourceType
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:
-
setMessage
Provides the text of this event.
- Parameters:
message
- Provides the text of this event.
-
getMessage
Provides the text of this event.
- Returns:
- Provides the text of this event.
-
withMessage
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
Specifies the category for the event.
- Returns:
- Specifies the category for the event.
-
setEventCategories
Specifies the category for the event.
- Parameters:
eventCategories
- Specifies the category for the event.
-
withEventCategories
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
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
Specifies the date and time of the event.
- Parameters:
dateValue
- Specifies the date and time of the event.
-
getDate
Specifies the date and time of the event.
- Returns:
- Specifies the date and time of the event.
-
withDate
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-