public class EventCategoriesMap
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the results of a successful invocation of the DescribeEventCategories action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
eventCategories
The event categories for the specified source type
|
private java.lang.String |
sourceType
The source type 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<java.lang.String> |
getEventCategories()
The event categories for the specified source type
|
java.lang.String |
getSourceType()
The source type that the returned categories belong to
|
int |
hashCode() |
void |
setEventCategories(java.util.Collection<java.lang.String> eventCategories)
The event categories for the specified source type
|
void |
setSourceType(java.lang.String sourceType)
The source type that the returned categories belong to
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventCategoriesMap |
withEventCategories(java.util.Collection<java.lang.String> eventCategories)
The event categories for the specified source type
|
EventCategoriesMap |
withEventCategories(java.lang.String... eventCategories)
The event categories for the specified source type
|
EventCategoriesMap |
withSourceType(java.lang.String sourceType)
The source type that the returned categories belong to
|
private java.lang.String sourceType
The source type that the returned categories belong to
private SdkInternalList<java.lang.String> eventCategories
The event categories for the specified source type
public void setSourceType(java.lang.String sourceType)
The source type that the returned categories belong to
sourceType
- The source type that the returned categories belong topublic java.lang.String getSourceType()
The source type that the returned categories belong to
public EventCategoriesMap withSourceType(java.lang.String sourceType)
The source type that the returned categories belong to
sourceType
- The source type that the returned categories belong topublic java.util.List<java.lang.String> getEventCategories()
The event categories for the specified source type
public void setEventCategories(java.util.Collection<java.lang.String> eventCategories)
The event categories for the specified source type
eventCategories
- The event categories for the specified source typepublic EventCategoriesMap withEventCategories(java.lang.String... eventCategories)
The event categories for the specified source type
NOTE: This method appends the values to the existing list (if
any). Use setEventCategories(java.util.Collection)
or
withEventCategories(java.util.Collection)
if you want to
override the existing values.
eventCategories
- The event categories for the specified source typepublic EventCategoriesMap withEventCategories(java.util.Collection<java.lang.String> eventCategories)
The event categories for the specified source type
eventCategories
- The event categories for the specified source typepublic 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