Interface SourceDocument.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SourceDocument.Builder,,SourceDocument> SdkBuilder<SourceDocument.Builder,,SourceDocument> SdkPojo
- Enclosing class:
SourceDocument
-
Method Summary
Modifier and TypeMethodDescriptionadditionalAttributes(Collection<DocumentAttribute> additionalAttributes) The additional fields/attributes to include in the response.additionalAttributes(Consumer<DocumentAttribute.Builder>... additionalAttributes) The additional fields/attributes to include in the response.additionalAttributes(DocumentAttribute... additionalAttributes) The additional fields/attributes to include in the response.documentId(String documentId) The identifier of the document used for a query suggestion.suggestionAttributes(String... suggestionAttributes) The document fields/attributes used for a query suggestion.suggestionAttributes(Collection<String> suggestionAttributes) The document fields/attributes used for a query suggestion.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
documentId
The identifier of the document used for a query suggestion.
- Parameters:
documentId- The identifier of the document used for a query suggestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionAttributes
The document fields/attributes used for a query suggestion.
- Parameters:
suggestionAttributes- The document fields/attributes used for a query suggestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
suggestionAttributes
The document fields/attributes used for a query suggestion.
- Parameters:
suggestionAttributes- The document fields/attributes used for a query suggestion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalAttributes
The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
- Parameters:
additionalAttributes- The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalAttributes
The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
- Parameters:
additionalAttributes- The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalAttributes
SourceDocument.Builder additionalAttributes(Consumer<DocumentAttribute.Builder>... additionalAttributes) The additional fields/attributes to include in the response. You can use additional fields to provide extra information in the response. Additional fields are not used to based suggestions on.
This is a convenience method that creates an instance of theDocumentAttribute.Builderavoiding the need to create one manually viaDocumentAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadditionalAttributes(List<DocumentAttribute>).- Parameters:
additionalAttributes- a consumer that will call methods onDocumentAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-