@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListEventsResult() |
Modifier and Type | Method and Description |
---|---|
ListEventsResult |
clone() |
boolean |
equals(Object obj) |
List<Event> |
getEvents()
A list of the requested events.
|
String |
getNextToken()
The pagination token to use to retrieve the next page of results for this operation.
|
int |
hashCode() |
void |
setEvents(Collection<Event> events)
A list of the requested events.
|
void |
setNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation.
|
String |
toString()
Returns a string representation of this object.
|
ListEventsResult |
withEvents(Collection<Event> events)
A list of the requested events.
|
ListEventsResult |
withEvents(Event... events)
A list of the requested events.
|
ListEventsResult |
withNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Event> getEvents()
A list of the requested events.
public void setEvents(Collection<Event> events)
A list of the requested events.
events
- A list of the requested events.public ListEventsResult withEvents(Event... events)
A list of the requested events.
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 the requested events.public ListEventsResult withEvents(Collection<Event> events)
A list of the requested events.
events
- A list of the requested events.public void setNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If there are no more
pages, this value is null.public String getNextToken()
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
public ListEventsResult withNextToken(String nextToken)
The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null.
nextToken
- The pagination token to use to retrieve the next page of results for this operation. If there are no more
pages, this value is null.public String toString()
toString
in class Object
Object.toString()
public ListEventsResult clone()