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
copy
Methods inherited from interface software.amazon.awssdk.services.mediastoredata.model.MediaStoreDataResponse.Builder
build, responseMetadata, responseMetadata
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
-
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.Builder
avoiding the need to create one manually viaItem.builder()
.When the
Consumer
completes,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
ListItems
request that matches 2,000 items withMaxResults
set at 500. The service returns the first batch of results (up to 500) and aNextToken
value 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 aListItems
request that matches 2,000 items withMaxResults
set at 500. The service returns the first batch of results (up to 500) and aNextToken
value 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.
-