@Generated(value="software.amazon.awssdk:codegen") public final class Document extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Document.Builder,Document>
A document in an index.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Document.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<Principal> |
accessControlList()
Information to use for user context filtering.
|
List<DocumentAttribute> |
attributes()
Custom attributes to apply to the document.
|
SdkBytes |
blob()
The contents of the document.
|
static Document.Builder |
builder() |
ContentType |
contentType()
The file type of the document in the
Blob field. |
String |
contentTypeAsString()
The file type of the document in the
Blob field. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccessControlList()
Returns true if the AccessControlList property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasAttributes()
Returns true if the Attributes property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
String |
id()
A unique identifier of the document in the index.
|
S3Path |
s3Path()
Returns the value of the S3Path property for this object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Document.Builder> |
serializableBuilderClass() |
String |
title()
The title of the document.
|
Document.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String id()
A unique identifier of the document in the index.
public String title()
The title of the document.
public 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.
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.
public S3Path s3Path()
public boolean hasAttributes()
public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAttributes() to see if a value was sent in this field.
public boolean hasAccessControlList()
public List<Principal> accessControlList()
Information to use for user context filtering.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAccessControlList() to see if a value was sent in this field.
public ContentType contentType()
The file type of the document in the Blob field.
If the service returns an enum value that is not available in the current SDK version, contentType will
return ContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
contentTypeAsString().
Blob field.ContentTypepublic String contentTypeAsString()
The file type of the document in the Blob field.
If the service returns an enum value that is not available in the current SDK version, contentType will
return ContentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
contentTypeAsString().
Blob field.ContentTypepublic Document.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Document.Builder,Document>public static Document.Builder builder()
public static Class<? extends Document.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.