@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchPutDocumentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
BatchPutDocumentRequest() |
Modifier and Type | Method and Description |
---|---|
BatchPutDocumentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<Document> |
getDocuments()
One or more documents to add to the index.
|
String |
getIndexId()
The identifier of the index to add the documents to.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
int |
hashCode() |
void |
setDocuments(Collection<Document> documents)
One or more documents to add to the index.
|
void |
setIndexId(String indexId)
The identifier of the index to add the documents to.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
String |
toString()
Returns a string representation of this object.
|
BatchPutDocumentRequest |
withDocuments(Collection<Document> documents)
One or more documents to add to the index.
|
BatchPutDocumentRequest |
withDocuments(Document... documents)
One or more documents to add to the index.
|
BatchPutDocumentRequest |
withIndexId(String indexId)
The identifier of the index to add the documents to.
|
BatchPutDocumentRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of a role that is allowed to run the
BatchPutDocument operation. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIndexId(String indexId)
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
indexId
- The identifier of the index to add the documents to. You need to create the index first using the
CreateIndex operation.public String getIndexId()
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
public BatchPutDocumentRequest withIndexId(String indexId)
The identifier of the index to add the documents to. You need to create the index first using the CreateIndex operation.
indexId
- The identifier of the index to add the documents to. You need to create the index first using the
CreateIndex operation.public void setRoleArn(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.
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.public String getRoleArn()
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 BatchPutDocumentRequest withRoleArn(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.
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.public List<Document> getDocuments()
One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
public void setDocuments(Collection<Document> documents)
One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
documents
- One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
public BatchPutDocumentRequest withDocuments(Document... documents)
One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
NOTE: This method appends the values to the existing list (if any). Use
setDocuments(java.util.Collection)
or withDocuments(java.util.Collection)
if you want to
override the existing values.
documents
- One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
public BatchPutDocumentRequest withDocuments(Collection<Document> documents)
One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
documents
- One or more documents to add to the index.
Each document is limited to 5 Mb, the total size of the list is limited to 50 Mb.
public String toString()
toString
in class Object
Object.toString()
public BatchPutDocumentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.