Interface SourceDocument.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SourceDocument.Builder,SourceDocument>,SdkBuilder<SourceDocument.Builder,SourceDocument>,SdkPojo
- Enclosing class:
- SourceDocument
public static interface SourceDocument.Builder extends SdkPojo, CopyableBuilder<SourceDocument.Builder,SourceDocument>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SourceDocument.BuilderadditionalAttributes(Collection<DocumentAttribute> additionalAttributes)The additional fields/attributes to include in the response.SourceDocument.BuilderadditionalAttributes(Consumer<DocumentAttribute.Builder>... additionalAttributes)The additional fields/attributes to include in the response.SourceDocument.BuilderadditionalAttributes(DocumentAttribute... additionalAttributes)The additional fields/attributes to include in the response.SourceDocument.BuilderdocumentId(String documentId)The identifier of the document used for a query suggestion.SourceDocument.BuildersuggestionAttributes(String... suggestionAttributes)The document fields/attributes used for a query suggestion.SourceDocument.BuildersuggestionAttributes(Collection<String> suggestionAttributes)The document fields/attributes used for a query suggestion.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
documentId
SourceDocument.Builder documentId(String 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
SourceDocument.Builder suggestionAttributes(Collection<String> 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
SourceDocument.Builder suggestionAttributes(String... 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
SourceDocument.Builder additionalAttributes(Collection<DocumentAttribute> 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(DocumentAttribute... 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 to#additionalAttributes(List.) - 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:
#additionalAttributes(java.util.Collection)
-
-