public class EventCategoriesMap
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes event categories.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<EventInfoMap> |
events
The events in the event category.
|
private java.lang.String |
sourceType
The source type, such as cluster or cluster-snapshot, that the returned
categories belong to.
|
Constructor and Description |
---|
EventCategoriesMap() |
Modifier and Type | Method and Description |
---|---|
EventCategoriesMap |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<EventInfoMap> |
getEvents()
The events in the event category.
|
java.lang.String |
getSourceType()
The source type, such as cluster or cluster-snapshot, that the returned
categories belong to.
|
int |
hashCode() |
void |
setEvents(java.util.Collection<EventInfoMap> events)
The events in the event category.
|
void |
setSourceType(java.lang.String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned
categories belong to.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventCategoriesMap |
withEvents(java.util.Collection<EventInfoMap> events)
The events in the event category.
|
EventCategoriesMap |
withEvents(EventInfoMap... events)
The events in the event category.
|
EventCategoriesMap |
withSourceType(java.lang.String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned
categories belong to.
|
private java.lang.String sourceType
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
private SdkInternalList<EventInfoMap> events
The events in the event category.
public void setSourceType(java.lang.String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
sourceType
- The source type, such as cluster or cluster-snapshot, that the
returned categories belong to.public java.lang.String getSourceType()
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
public EventCategoriesMap withSourceType(java.lang.String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
sourceType
- The source type, such as cluster or cluster-snapshot, that the
returned categories belong to.public java.util.List<EventInfoMap> getEvents()
The events in the event category.
public void setEvents(java.util.Collection<EventInfoMap> events)
The events in the event category.
events
- The events in the event category.public EventCategoriesMap withEvents(EventInfoMap... events)
The events in the event category.
NOTE: This method appends the values to the existing list (if
any). Use setEvents(java.util.Collection)
or
withEvents(java.util.Collection)
if you want to override the
existing values.
events
- The events in the event category.public EventCategoriesMap withEvents(java.util.Collection<EventInfoMap> events)
The events in the event category.
events
- The events in the event category.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EventCategoriesMap clone()
clone
in class java.lang.Object