public class UploadDocumentsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Container for the parameters to the UploadDocuments
request.
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
contentLength |
private java.lang.String |
contentType
The format of the batch you are uploading.
|
private java.io.InputStream |
documents
A batch of documents formatted in JSON or HTML.
|
NOOP
Constructor and Description |
---|
UploadDocumentsRequest() |
Modifier and Type | Method and Description |
---|---|
UploadDocumentsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getContentLength() |
java.lang.String |
getContentType()
The format of the batch you are uploading.
|
java.io.InputStream |
getDocuments()
A batch of documents formatted in JSON or HTML.
|
int |
hashCode() |
void |
setContentLength(java.lang.Long contentLength) |
void |
setContentType(ContentType contentType)
The format of the batch you are uploading.
|
void |
setContentType(java.lang.String contentType)
The format of the batch you are uploading.
|
void |
setDocuments(java.io.InputStream documents)
A batch of documents formatted in JSON or HTML.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadDocumentsRequest |
withContentLength(java.lang.Long contentLength) |
UploadDocumentsRequest |
withContentType(ContentType contentType)
The format of the batch you are uploading.
|
UploadDocumentsRequest |
withContentType(java.lang.String contentType)
The format of the batch you are uploading.
|
UploadDocumentsRequest |
withDocuments(java.io.InputStream documents)
A batch of documents formatted in JSON or HTML.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.io.InputStream documents
A batch of documents formatted in JSON or HTML.
private java.lang.String contentType
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
private java.lang.Long contentLength
public void setDocuments(java.io.InputStream documents)
A batch of documents formatted in JSON or HTML.
documents
- A batch of documents formatted in JSON or HTML.public java.io.InputStream getDocuments()
A batch of documents formatted in JSON or HTML.
public UploadDocumentsRequest withDocuments(java.io.InputStream documents)
A batch of documents formatted in JSON or HTML.
documents
- A batch of documents formatted in JSON or HTML.public void setContentType(java.lang.String contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
contentType
- The format of the batch you are uploading. Amazon CloudSearch
supports two document batch formats:
ContentType
public java.lang.String getContentType()
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
ContentType
public UploadDocumentsRequest withContentType(java.lang.String contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
contentType
- The format of the batch you are uploading. Amazon CloudSearch
supports two document batch formats:
ContentType
public void setContentType(ContentType contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
contentType
- The format of the batch you are uploading. Amazon CloudSearch
supports two document batch formats:
ContentType
public UploadDocumentsRequest withContentType(ContentType contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
contentType
- The format of the batch you are uploading. Amazon CloudSearch
supports two document batch formats:
ContentType
public void setContentLength(java.lang.Long contentLength)
contentLength
- public java.lang.Long getContentLength()
public UploadDocumentsRequest withContentLength(java.lang.Long contentLength)
contentLength
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UploadDocumentsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()