@Generated(value="software.amazon.awssdk:codegen") public final class BatchPutDocumentRequest extends KendraRequest implements ToCopyableBuilder<BatchPutDocumentRequest.Builder,BatchPutDocumentRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BatchPutDocumentRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static BatchPutDocumentRequest.Builder |
builder() |
List<Document> |
documents()
One or more documents to add to the index.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDocuments()
Returns true if the Documents 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 |
indexId()
The identifier of the index to add the documents to.
|
String |
roleArn()
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends BatchPutDocumentRequest.Builder> |
serializableBuilderClass() |
BatchPutDocumentRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String indexId()
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
public String roleArn()
The Amazon Resource Name (ARN) of a role that is allowed to run the BatchPutDocument operation. For
more information, see IAM Roles for Amazon
Kendra.
BatchPutDocument
operation. For more information, see IAM Roles for Amazon Kendra.public boolean hasDocuments()
public List<Document> documents()
One or more documents to add to the index.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDocuments() to see if a value was sent in this field.
Documents have the following file size limits.
5 MB total size for inline documents
50 MB total size for files from an S3 bucket
5 MB extracted text for any file
For more information about file size and transaction per second quotas, see Quotas.
public BatchPutDocumentRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BatchPutDocumentRequest.Builder,BatchPutDocumentRequest>toBuilder in class KendraRequestpublic static BatchPutDocumentRequest.Builder builder()
public static Class<? extends BatchPutDocumentRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.