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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListContainersResponse.Buildercontainers(Collection<Container> containers)The names of the containers.ListContainersResponse.Buildercontainers(Consumer<Container.Builder>... containers)The names of the containers.ListContainersResponse.Buildercontainers(Container... containers)The names of the containers.ListContainersResponse.BuildernextToken(String nextToken)NextTokenis 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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
containers
ListContainersResponse.Builder containers(Collection<Container> 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
ListContainersResponse.Builder containers(Container... 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
ListContainersResponse.Builder containers(Consumer<Container.Builder>... 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 to#containers(List.) - 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:
#containers(java.util.Collection)
-
nextToken
ListContainersResponse.Builder nextToken(String 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.
-
-