@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventCategoriesMap extends Object implements Serializable, Cloneable
Contains the results of a successful invocation of the DescribeEventCategories action.
Constructor and Description |
---|
EventCategoriesMap() |
Modifier and Type | Method and Description |
---|---|
EventCategoriesMap |
clone() |
boolean |
equals(Object obj) |
List<String> |
getEventCategories()
The event categories for the specified source type
|
String |
getSourceType()
The source type that the returned categories belong to
|
int |
hashCode() |
void |
setEventCategories(Collection<String> eventCategories)
The event categories for the specified source type
|
void |
setSourceType(String sourceType)
The source type that the returned categories belong to
|
String |
toString()
Returns a string representation of this object.
|
EventCategoriesMap |
withEventCategories(Collection<String> eventCategories)
The event categories for the specified source type
|
EventCategoriesMap |
withEventCategories(String... eventCategories)
The event categories for the specified source type
|
EventCategoriesMap |
withSourceType(String sourceType)
The source type that the returned categories belong to
|
public void setSourceType(String sourceType)
The source type that the returned categories belong to
sourceType
- The source type that the returned categories belong topublic String getSourceType()
The source type that the returned categories belong to
public EventCategoriesMap withSourceType(String sourceType)
The source type that the returned categories belong to
sourceType
- The source type that the returned categories belong topublic List<String> getEventCategories()
The event categories for the specified source type
public void setEventCategories(Collection<String> eventCategories)
The event categories for the specified source type
eventCategories
- The event categories for the specified source typepublic EventCategoriesMap withEventCategories(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(Collection<String> eventCategories)
The event categories for the specified source type
eventCategories
- The event categories for the specified source typepublic String toString()
toString
in class Object
Object.toString()
public EventCategoriesMap clone()