@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the result of a successful invocation of the DescribeEvents
action.
Constructor and Description |
---|
DescribeEventsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEventsResult |
clone() |
boolean |
equals(Object obj) |
List<Event> |
getEvents()
A list of
Event instances. |
String |
getMarker()
An optional pagination token provided by a previous Events request.
|
int |
hashCode() |
void |
setEvents(Collection<Event> events)
A list of
Event instances. |
void |
setMarker(String marker)
An optional pagination token provided by a previous Events request.
|
String |
toString()
Returns a string representation of this object.
|
DescribeEventsResult |
withEvents(Collection<Event> events)
A list of
Event instances. |
DescribeEventsResult |
withEvents(Event... events)
A list of
Event instances. |
DescribeEventsResult |
withMarker(String marker)
An optional pagination token provided by a previous Events request.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setMarker(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 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(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 List<Event> getEvents()
A list of Event
instances.
Event
instances.public void setEvents(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(Collection<Event> events)
A list of Event
instances.
events
- A list of Event
instances.public String toString()
toString
in class Object
Object.toString()
public DescribeEventsResult clone()