Interface ListContainersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListContainersResponse.Builder,,ListContainersResponse> MediaStoreResponse.Builder,SdkBuilder<ListContainersResponse.Builder,,ListContainersResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListContainersResponse
public static interface ListContainersResponse.Builder
extends MediaStoreResponse.Builder, SdkPojo, CopyableBuilder<ListContainersResponse.Builder,ListContainersResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontainers(Collection<Container> containers) The names of the containers.containers(Consumer<Container.Builder>... containers) The names of the containers.containers(Container... containers) The names of the containers.NextTokenis the token to use in the next call toListContainers.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mediastore.model.MediaStoreResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
containers
The names of the containers.
- Parameters:
containers- The names of the containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
The names of the containers.
- Parameters:
containers- The names of the containers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containers
The names of the containers.
This is a convenience method that creates an instance of theContainer.Builderavoiding the need to create one manually viaContainer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainers(List<Container>).- Parameters:
containers- a consumer that will call methods onContainer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
NextTokenis the token to use in the next call toListContainers. This token is returned only if you included theMaxResultstag in the original command, and only if there are still containers to return.- Parameters:
nextToken-NextTokenis the token to use in the next call toListContainers. This token is returned only if you included theMaxResultstag in the original command, and only if there are still containers to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-