@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeEventsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeEventsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeEventsResult |
clone() |
boolean |
equals(Object obj) |
List<Event> |
getEvents()
A list of events.
|
String |
getNextToken()
An optional argument to pass in case the total number of records exceeds the value of MaxResults.
|
int |
hashCode() |
void |
setEvents(Collection<Event> events)
A list of events.
|
void |
setNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults.
|
String |
toString()
Returns a string representation of this object.
|
DescribeEventsResult |
withEvents(Collection<Event> events)
A list of events.
|
DescribeEventsResult |
withEvents(Event... events)
A list of events.
|
DescribeEventsResult |
withNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
nextToken
- An optional argument to pass in case the total number of records exceeds the value of MaxResults. If
nextToken is returned, there are more results available. The value of nextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page. Keep all
other arguments unchanged.public String getNextToken()
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
public DescribeEventsResult withNextToken(String nextToken)
An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
nextToken
- An optional argument to pass in case the total number of records exceeds the value of MaxResults. If
nextToken is returned, there are more results available. The value of nextToken is a unique pagination
token for each page. Make the call again using the returned token to retrieve the next page. Keep all
other arguments unchanged.public List<Event> getEvents()
A list of events. Each element in the list contains detailed information about one event.
public void setEvents(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(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 String toString()
toString
in class Object
Object.toString()
public DescribeEventsResult clone()