Class EventCategoriesMap
- java.lang.Object
-
- com.amazonaws.services.redshift.model.EventCategoriesMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EventCategoriesMap extends Object implements Serializable, Cloneable
Describes event categories.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventCategoriesMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventCategoriesMap
clone()
boolean
equals(Object obj)
List<EventInfoMap>
getEvents()
The events in the event category.String
getSourceType()
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.int
hashCode()
void
setEvents(Collection<EventInfoMap> events)
The events in the event category.void
setSourceType(String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.String
toString()
Returns a string representation of this object; useful for testing and debugging.EventCategoriesMap
withEvents(EventInfoMap... events)
The events in the event category.EventCategoriesMap
withEvents(Collection<EventInfoMap> events)
The events in the event category.EventCategoriesMap
withSourceType(String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
-
-
-
Method Detail
-
setSourceType
public void setSourceType(String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
- Parameters:
sourceType
- The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
-
getSourceType
public String getSourceType()
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
- Returns:
- The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
-
withSourceType
public EventCategoriesMap withSourceType(String sourceType)
The source type, such as cluster or cluster-snapshot, that the returned categories belong to.
- Parameters:
sourceType
- The source type, such as cluster or cluster-snapshot, that the returned categories belong to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEvents
public List<EventInfoMap> getEvents()
The events in the event category.
- Returns:
- The events in the event category.
-
setEvents
public void setEvents(Collection<EventInfoMap> events)
The events in the event category.
- Parameters:
events
- The events in the event category.
-
withEvents
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)
orwithEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
events
- The events in the event category.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvents
public EventCategoriesMap withEvents(Collection<EventInfoMap> events)
The events in the event category.
- Parameters:
events
- The events in the event category.- 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()
-
clone
public EventCategoriesMap clone()
-
-