public static interface Document.Builder extends SdkPojo, CopyableBuilder<Document.Builder,Document>
| Modifier and Type | Method and Description |
|---|---|
Document.Builder |
accessControlList(Collection<Principal> accessControlList)
Information to use for user context filtering.
|
Document.Builder |
accessControlList(Consumer<Principal.Builder>... accessControlList)
Information to use for user context filtering.
|
Document.Builder |
accessControlList(Principal... accessControlList)
Information to use for user context filtering.
|
Document.Builder |
attributes(Collection<DocumentAttribute> attributes)
Custom attributes to apply to the document.
|
Document.Builder |
attributes(Consumer<DocumentAttribute.Builder>... attributes)
Custom attributes to apply to the document.
|
Document.Builder |
attributes(DocumentAttribute... attributes)
Custom attributes to apply to the document.
|
Document.Builder |
blob(SdkBytes blob)
The contents of the document.
|
Document.Builder |
contentType(ContentType contentType)
The file type of the document in the
Blob field. |
Document.Builder |
contentType(String contentType)
The file type of the document in the
Blob field. |
Document.Builder |
id(String id)
A unique identifier of the document in the index.
|
default Document.Builder |
s3Path(Consumer<S3Path.Builder> s3Path)
Sets the value of the S3Path property for this object.
|
Document.Builder |
s3Path(S3Path s3Path)
Sets the value of the S3Path property for this object.
|
Document.Builder |
title(String title)
The title of the document.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDocument.Builder id(String id)
A unique identifier of the document in the index.
id - A unique identifier of the document in the index.Document.Builder title(String title)
The title of the document.
title - The title of the document.Document.Builder blob(SdkBytes blob)
The contents of the document.
Documents passed to the Blob parameter must be base64 encoded. Your code might not need to
encode the document file bytes if you're using an AWS SDK to call Amazon Kendra operations. If you are
calling the Amazon Kendra endpoint directly using REST, you must base64 encode the contents before sending.
blob - The contents of the document.
Documents passed to the Blob parameter must be base64 encoded. Your code might not need
to encode the document file bytes if you're using an AWS SDK to call Amazon Kendra operations. If you
are calling the Amazon Kendra endpoint directly using REST, you must base64 encode the contents before
sending.
Document.Builder s3Path(S3Path s3Path)
s3Path - The new value for the S3Path property for this object.default Document.Builder s3Path(Consumer<S3Path.Builder> s3Path)
S3Path.Builder avoiding the need to create one
manually via S3Path.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to s3Path(S3Path).s3Path - a consumer that will call methods on S3Path.Builders3Path(S3Path)Document.Builder attributes(Collection<DocumentAttribute> attributes)
Custom attributes to apply to the document. Use the custom attributes to provide additional information for searching, to provide facets for refining searches, and to provide additional information in the query response.
attributes - Custom attributes to apply to the document. Use the custom attributes to provide additional
information for searching, to provide facets for refining searches, and to provide additional
information in the query response.Document.Builder attributes(DocumentAttribute... attributes)
Custom attributes to apply to the document. Use the custom attributes to provide additional information for searching, to provide facets for refining searches, and to provide additional information in the query response.
attributes - Custom attributes to apply to the document. Use the custom attributes to provide additional
information for searching, to provide facets for refining searches, and to provide additional
information in the query response.Document.Builder attributes(Consumer<DocumentAttribute.Builder>... attributes)
Custom attributes to apply to the document. Use the custom attributes to provide additional information for searching, to provide facets for refining searches, and to provide additional information in the query response.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #attributes(List) .attributes - a consumer that will call methods on List.Builder #attributes(List) Document.Builder accessControlList(Collection<Principal> accessControlList)
Information to use for user context filtering.
accessControlList - Information to use for user context filtering.Document.Builder accessControlList(Principal... accessControlList)
Information to use for user context filtering.
accessControlList - Information to use for user context filtering.Document.Builder accessControlList(Consumer<Principal.Builder>... accessControlList)
Information to use for user context filtering.
This is a convenience that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #accessControlList(List) .accessControlList - a consumer that will call methods on List.Builder #accessControlList(List) Document.Builder contentType(String contentType)
The file type of the document in the Blob field.
contentType - The file type of the document in the Blob field.ContentType,
ContentTypeDocument.Builder contentType(ContentType contentType)
The file type of the document in the Blob field.
contentType - The file type of the document in the Blob field.ContentType,
ContentTypeCopyright © 2020. All rights reserved.