Interface ListTrailsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudTrailResponse.Builder
,CopyableBuilder<ListTrailsResponse.Builder,
,ListTrailsResponse> SdkBuilder<ListTrailsResponse.Builder,
,ListTrailsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListTrailsResponse
public static interface ListTrailsResponse.Builder
extends CloudTrailResponse.Builder, SdkPojo, CopyableBuilder<ListTrailsResponse.Builder,ListTrailsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to get the next page of results after a previous API call.trails
(Collection<TrailInfo> trails) Returns the name, ARN, and home Region of trails in the current account.trails
(Consumer<TrailInfo.Builder>... trails) Returns the name, ARN, and home Region of trails in the current account.Returns the name, ARN, and home Region of trails in the current account.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 Details
-
trails
Returns the name, ARN, and home Region of trails in the current account.
- Parameters:
trails
- Returns the name, ARN, and home Region of trails in the current account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trails
Returns the name, ARN, and home Region of trails in the current account.
- Parameters:
trails
- Returns the name, ARN, and home Region of trails in the current account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trails
Returns the name, ARN, and home Region of trails in the current account.
This is a convenience method that creates an instance of theTrailInfo.Builder
avoiding the need to create one manually viaTrailInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totrails(List<TrailInfo>)
.- Parameters:
trails
- a consumer that will call methods onTrailInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-