public class LookupEventsResult extends Object implements Serializable, Cloneable
Contains a response to a LookupEvents action.
Constructor and Description |
---|
LookupEventsResult() |
Modifier and Type | Method and Description |
---|---|
LookupEventsResult |
clone() |
boolean |
equals(Object obj) |
List<Event> |
getEvents()
A list of events returned based on the lookup attributes specified and
the CloudTrail event.
|
String |
getNextToken()
The token to use to get the next page of results after a previous API
call.
|
int |
hashCode() |
void |
setEvents(Collection<Event> events)
A list of events returned based on the lookup attributes specified and
the CloudTrail event.
|
void |
setNextToken(String nextToken)
The token to use to get the next page of results after a previous API
call.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LookupEventsResult |
withEvents(Collection<Event> events)
A list of events returned based on the lookup attributes specified and
the CloudTrail event.
|
LookupEventsResult |
withEvents(Event... events)
A list of events returned based on the lookup attributes specified and
the CloudTrail event.
|
LookupEventsResult |
withNextToken(String nextToken)
The token to use to get the next page of results after a previous API
call.
|
public List<Event> getEvents()
public void setEvents(Collection<Event> events)
events
- A list of events returned based on the lookup attributes specified and
the CloudTrail event. The events list is sorted by time. The most
recent event is listed first.public LookupEventsResult withEvents(Event... 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.
Returns a reference to this object so that method calls can be chained together.
events
- A list of events returned based on the lookup attributes specified and
the CloudTrail event. The events list is sorted by time. The most
recent event is listed first.public LookupEventsResult withEvents(Collection<Event> events)
Returns a reference to this object so that method calls can be chained together.
events
- A list of events returned based on the lookup attributes specified and
the CloudTrail event. The events list is sorted by time. The most
recent event is listed first.public String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The token to use to get the next page of results after a previous API
call. If the token does not appear, there are no more results to
return. The token must be passed in with the same parameters as the
previous call. For example, if the original call specified an
AttributeKey of 'Username' with a value of 'root', the call with
NextToken should include those same parameters.public LookupEventsResult withNextToken(String nextToken)
Returns a reference to this object so that method calls can be chained together.
nextToken
- The token to use to get the next page of results after a previous API
call. If the token does not appear, there are no more results to
return. The token must be passed in with the same parameters as the
previous call. For example, if the original call specified an
AttributeKey of 'Username' with a value of 'root', the call with
NextToken should include those same parameters.public String toString()
toString
in class Object
Object.toString()
public LookupEventsResult clone()
Copyright © 2015. All rights reserved.