Interface ListItemsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListItemsResponse.Builder,,ListItemsResponse> MediaStoreDataResponse.Builder,SdkBuilder<ListItemsResponse.Builder,,ListItemsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListItemsResponse
public static interface ListItemsResponse.Builder
extends MediaStoreDataResponse.Builder, SdkPojo, CopyableBuilder<ListItemsResponse.Builder,ListItemsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionitems(Collection<Item> items) The metadata entries for the folders and objects at the requested path.items(Consumer<Item.Builder>... items) The metadata entries for the folders and objects at the requested path.The metadata entries for the folders and objects at the requested path.The token that can be used in a request to view the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mediastoredata.model.MediaStoreDataResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
items
The metadata entries for the folders and objects at the requested path.
- Parameters:
items- The metadata entries for the folders and objects at the requested path.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The metadata entries for the folders and objects at the requested path.
- Parameters:
items- The metadata entries for the folders and objects at the requested path.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
The metadata entries for the folders and objects at the requested path.
This is a convenience method that creates an instance of theItem.Builderavoiding the need to create one manually viaItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toitems(List<Item>).- Parameters:
items- a consumer that will call methods onItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token that can be used in a request to view the next set of results. For example, you submit a
ListItemsrequest that matches 2,000 items withMaxResultsset at 500. The service returns the first batch of results (up to 500) and aNextTokenvalue that can be used to fetch the next batch of results.- Parameters:
nextToken- The token that can be used in a request to view the next set of results. For example, you submit aListItemsrequest that matches 2,000 items withMaxResultsset at 500. The service returns the first batch of results (up to 500) and aNextTokenvalue that can be used to fetch the next batch of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-