Interface LookupEventsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudTrailResponse.Builder,CopyableBuilder<LookupEventsResponse.Builder,LookupEventsResponse>,SdkBuilder<LookupEventsResponse.Builder,LookupEventsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- LookupEventsResponse
public static interface LookupEventsResponse.Builder extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<LookupEventsResponse.Builder,LookupEventsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LookupEventsResponse.Builderevents(Collection<Event> events)A list of events returned based on the lookup attributes specified and the CloudTrail event.LookupEventsResponse.Builderevents(Consumer<Event.Builder>... events)A list of events returned based on the lookup attributes specified and the CloudTrail event.LookupEventsResponse.Builderevents(Event... events)A list of events returned based on the lookup attributes specified and the CloudTrail event.LookupEventsResponse.BuildernextToken(String nextToken)The token to use to get the next page of results after a previous API call.-
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
events
LookupEventsResponse.Builder events(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.
-
events
LookupEventsResponse.Builder events(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.
-
events
LookupEventsResponse.Builder events(Consumer<Event.Builder>... 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.
This is a convenience method that creates an instance of theEvent.Builderavoiding the need to create one manually viaEvent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#events(List.) - Parameters:
events- a consumer that will call methods onEvent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#events(java.util.Collection)
-
nextToken
LookupEventsResponse.Builder nextToken(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.
-
-