Interface ListContainersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListContainersResponse.Builder,
,ListContainersResponse> MediaStoreResponse.Builder
,SdkBuilder<ListContainersResponse.Builder,
,ListContainersResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListContainersResponse
@Mutable
@NotThreadSafe
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.NextToken
is the token to use in the next call toListContainers
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mediastore.model.MediaStoreResponse.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, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaContainer.builder()
.When the
Consumer
completes,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
NextToken
is the token to use in the next call toListContainers
. This token is returned only if you included theMaxResults
tag in the original command, and only if there are still containers to return.- Parameters:
nextToken
-NextToken
is the token to use in the next call toListContainers
. This token is returned only if you included theMaxResults
tag 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.
-