public class DescribeEventsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the result of a successful invocation of the DescribeEvents action.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Event> |
events
A list of Event instances.
|
private java.lang.String |
marker
An optional pagination token provided by a previous Events request.
|
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 Event instances.
|
java.lang.String |
getMarker()
An optional pagination token provided by a previous Events request.
|
int |
hashCode() |
void |
setEvents(java.util.Collection<Event> events)
A list of Event instances.
|
void |
setMarker(java.lang.String marker)
An optional pagination token provided by a previous Events request.
|
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 Event instances.
|
DescribeEventsResult |
withEvents(Event... events)
A list of Event instances.
|
DescribeEventsResult |
withMarker(java.lang.String marker)
An optional pagination token provided by a previous Events request.
|
private java.lang.String marker
An optional pagination token provided by a previous Events request. If
this parameter is specified, the response includes only records beyond
the marker, up to the value specified by MaxRecords
.
private SdkInternalList<Event> events
A list of Event instances.
public void setMarker(java.lang.String marker)
An optional pagination token provided by a previous Events request. If
this parameter is specified, the response includes only records beyond
the marker, up to the value specified by MaxRecords
.
marker
- An optional pagination token provided by a previous Events
request. If this parameter is specified, the response includes
only records beyond the marker, up to the value specified by
MaxRecords
.public java.lang.String getMarker()
An optional pagination token provided by a previous Events request. If
this parameter is specified, the response includes only records beyond
the marker, up to the value specified by MaxRecords
.
MaxRecords
.public DescribeEventsResult withMarker(java.lang.String marker)
An optional pagination token provided by a previous Events request. If
this parameter is specified, the response includes only records beyond
the marker, up to the value specified by MaxRecords
.
marker
- An optional pagination token provided by a previous Events
request. If this parameter is specified, the response includes
only records beyond the marker, up to the value specified by
MaxRecords
.public java.util.List<Event> getEvents()
A list of Event instances.
public void setEvents(java.util.Collection<Event> events)
A list of Event instances.
events
- A list of Event instances.public DescribeEventsResult withEvents(Event... events)
A list of Event instances.
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 Event instances.public DescribeEventsResult withEvents(java.util.Collection<Event> events)
A list of Event instances.
events
- A list of Event instances.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