Interface RetrieveResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<RetrieveResponse.Builder,,RetrieveResponse> QConnectResponse.Builder,SdkBuilder<RetrieveResponse.Builder,,RetrieveResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
RetrieveResponse
-
Method Summary
Modifier and TypeMethodDescriptionerrors(Collection<RetrieveError> errors) The per-association errors returned when one or more knowledge base associations fail during aRetrieveoperation that spans multiple assistant associations.errors(Consumer<RetrieveError.Builder>... errors) The per-association errors returned when one or more knowledge base associations fail during aRetrieveoperation that spans multiple assistant associations.errors(RetrieveError... errors) The per-association errors returned when one or more knowledge base associations fail during aRetrieveoperation that spans multiple assistant associations.results(Collection<RetrieveResult> results) The results of the content retrieval operation.results(Consumer<RetrieveResult.Builder>... results) The results of the content retrieval operation.results(RetrieveResult... results) The results of the content retrieval operation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectResponse.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
-
results
The results of the content retrieval operation.
- Parameters:
results- The results of the content retrieval operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The results of the content retrieval operation.
- Parameters:
results- The results of the content retrieval operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The results of the content retrieval operation.
This is a convenience method that creates an instance of theRetrieveResult.Builderavoiding the need to create one manually viaRetrieveResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresults(List<RetrieveResult>).- Parameters:
results- a consumer that will call methods onRetrieveResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
The per-association errors returned when one or more knowledge base associations fail during a
Retrieveoperation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.- Parameters:
errors- The per-association errors returned when one or more knowledge base associations fail during aRetrieveoperation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
The per-association errors returned when one or more knowledge base associations fail during a
Retrieveoperation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.- Parameters:
errors- The per-association errors returned when one or more knowledge base associations fail during aRetrieveoperation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
The per-association errors returned when one or more knowledge base associations fail during a
This is a convenience method that creates an instance of theRetrieveoperation that spans multiple assistant associations. The overall operation still succeeds and returns the results from the associations that were queried successfully. This list contains one entry for each association that failed, up to a maximum of five.RetrieveError.Builderavoiding the need to create one manually viaRetrieveError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<RetrieveError>).- Parameters:
errors- a consumer that will call methods onRetrieveError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-