public class DescribeEventsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of a DescribeEvents action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Event> |
events
A list of events.
|
private java.lang.String |
marker
Provides an identifier to allow retrieval of paginated results.
|
Constructor and Description |
---|
DescribeEventsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEventsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Event> |
getEvents()
A list of events.
|
java.lang.String |
getMarker()
Provides an identifier to allow retrieval of paginated results.
|
int |
hashCode() |
void |
setEvents(java.util.Collection<Event> events)
A list of events.
|
void |
setMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeEventsResult |
withEvents(java.util.Collection<Event> events)
A list of events.
|
DescribeEventsResult |
withEvents(Event... events)
A list of events.
|
DescribeEventsResult |
withMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
|
private java.lang.String marker
Provides an identifier to allow retrieval of paginated results.
private SdkInternalList<Event> events
A list of events. Each element in the list contains detailed information about one event.
public void setMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
marker
- Provides an identifier to allow retrieval of paginated results.public java.lang.String getMarker()
Provides an identifier to allow retrieval of paginated results.
public DescribeEventsResult withMarker(java.lang.String marker)
Provides an identifier to allow retrieval of paginated results.
marker
- Provides an identifier to allow retrieval of paginated results.public java.util.List<Event> getEvents()
A list of events. Each element in the list contains detailed information about one event.
public void setEvents(java.util.Collection<Event> events)
A list of events. Each element in the list contains detailed information about one event.
events
- A list of events. Each element in the list contains detailed
information about one event.public DescribeEventsResult withEvents(Event... events)
A list of events. Each element in the list contains detailed information about one event.
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
- A list of events. Each element in the list contains detailed
information about one event.public DescribeEventsResult withEvents(java.util.Collection<Event> events)
A list of events. Each element in the list contains detailed information about one event.
events
- A list of events. Each element in the list contains detailed
information about one event.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 DescribeEventsResult clone()
clone
in class java.lang.Object