@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UploadDocumentsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Container for the parameters to the UploadDocuments
request.
NOOP
Constructor and Description |
---|
UploadDocumentsRequest() |
Modifier and Type | Method and Description |
---|---|
UploadDocumentsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getContentLength() |
String |
getContentType()
The format of the batch you are uploading.
|
InputStream |
getDocuments()
A batch of documents formatted in JSON or HTML.
|
int |
hashCode() |
void |
setContentLength(Long contentLength) |
void |
setContentType(ContentType contentType)
The format of the batch you are uploading.
|
void |
setContentType(String contentType)
The format of the batch you are uploading.
|
void |
setDocuments(InputStream documents)
A batch of documents formatted in JSON or HTML.
|
String |
toString()
Returns a string representation of this object.
|
UploadDocumentsRequest |
withContentLength(Long contentLength) |
UploadDocumentsRequest |
withContentType(ContentType contentType)
The format of the batch you are uploading.
|
UploadDocumentsRequest |
withContentType(String contentType)
The format of the batch you are uploading.
|
UploadDocumentsRequest |
withDocuments(InputStream documents)
A batch of documents formatted in JSON or HTML.
|
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 setDocuments(InputStream documents)
A batch of documents formatted in JSON or HTML.
documents
- A batch of documents formatted in JSON or HTML.public InputStream getDocuments()
A batch of documents formatted in JSON or HTML.
public UploadDocumentsRequest withDocuments(InputStream documents)
A batch of documents formatted in JSON or HTML.
documents
- A batch of documents formatted in JSON or HTML.public void setContentType(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 String getContentType()
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
ContentType
public UploadDocumentsRequest withContentType(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(Long contentLength)
contentLength
- public Long getContentLength()
public UploadDocumentsRequest withContentLength(Long contentLength)
contentLength
- public String toString()
toString
in class Object
Object.toString()
public UploadDocumentsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()