Class LookupEventsResult
- java.lang.Object
-
- com.amazonaws.services.cloudtrail.model.LookupEventsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class LookupEventsResult extends Object implements Serializable, Cloneable
Contains a response to a LookupEvents action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LookupEventsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Event... events)
A list of events returned based on the lookup attributes specified and the CloudTrail event.LookupEventsResult
withEvents(Collection<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.
-
-
-
Method Detail
-
getEvents
public List<Event> getEvents()
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.
- Returns:
- 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.
-
setEvents
public void setEvents(Collection<Event> 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.
- Parameters:
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.
-
withEvents
public LookupEventsResult withEvents(Event... 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.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection)
orwithEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvents
public LookupEventsResult withEvents(Collection<Event> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String 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.
- Parameters:
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.
-
getNextToken
public String getNextToken()
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.
- Returns:
- 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.
-
withNextToken
public LookupEventsResult withNextToken(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public LookupEventsResult clone()
-
-