Interface ListDocumentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListDocumentsResponse.Builder,,ListDocumentsResponse> QBusinessResponse.Builder,SdkBuilder<ListDocumentsResponse.Builder,,ListDocumentsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListDocumentsResponse
public static interface ListDocumentsResponse.Builder
extends QBusinessResponse.Builder, SdkPojo, CopyableBuilder<ListDocumentsResponse.Builder,ListDocumentsResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondocumentDetailList(Collection<DocumentDetails> documentDetailList) A list of document details.documentDetailList(Consumer<DocumentDetails.Builder>... documentDetailList) A list of document details.documentDetailList(DocumentDetails... documentDetailList) A list of document details.If themaxResultsresponse was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.qbusiness.model.QBusinessResponse.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
-
documentDetailList
A list of document details.
- Parameters:
documentDetailList- A list of document details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentDetailList
A list of document details.
- Parameters:
documentDetailList- A list of document details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentDetailList
ListDocumentsResponse.Builder documentDetailList(Consumer<DocumentDetails.Builder>... documentDetailList) A list of document details.
This is a convenience method that creates an instance of theDocumentDetails.Builderavoiding the need to create one manually viaDocumentDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todocumentDetailList(List<DocumentDetails>).- Parameters:
documentDetailList- a consumer that will call methods onDocumentDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the
maxResultsresponse was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of documents.- Parameters:
nextToken- If themaxResultsresponse was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of documents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-