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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListTrailsResponse.BuildernextToken(String nextToken)The token to use to get the next page of results after a previous API call.ListTrailsResponse.Buildertrails(Collection<TrailInfo> trails)Returns the name, ARN, and home Region of trails in the current account.ListTrailsResponse.Buildertrails(Consumer<TrailInfo.Builder>... trails)Returns the name, ARN, and home Region of trails in the current account.ListTrailsResponse.Buildertrails(TrailInfo... trails)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 Detail
-
trails
ListTrailsResponse.Builder trails(Collection<TrailInfo> 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
ListTrailsResponse.Builder trails(TrailInfo... 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
ListTrailsResponse.Builder trails(Consumer<TrailInfo.Builder>... 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.Builderavoiding the need to create one manually viaTrailInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#trails(List.) - 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:
#trails(java.util.Collection)
-
nextToken
ListTrailsResponse.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.
-
-