Class UploadDocumentsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudsearchdomain.model.UploadDocumentsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class UploadDocumentsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Container for the parameters to the
UploadDocuments
request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UploadDocumentsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadDocumentsRequest
clone()
Creates a shallow clone of this request.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; useful for testing and debugging.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setDocuments
public void setDocuments(InputStream documents)
A batch of documents formatted in JSON or HTML.
- Parameters:
documents
- A batch of documents formatted in JSON or HTML.
-
getDocuments
public InputStream getDocuments()
A batch of documents formatted in JSON or HTML.
- Returns:
- A batch of documents formatted in JSON or HTML.
-
withDocuments
public UploadDocumentsRequest withDocuments(InputStream documents)
A batch of documents formatted in JSON or HTML.
- Parameters:
documents
- A batch of documents formatted in JSON or HTML.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContentType
public void setContentType(String contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
- Parameters:
contentType
- The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:- application/json
- application/xml
- See Also:
ContentType
-
getContentType
public String getContentType()
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
- Returns:
- The format of the batch you are uploading. Amazon CloudSearch
supports two document batch formats:
- application/json
- application/xml
- See Also:
ContentType
-
withContentType
public UploadDocumentsRequest withContentType(String contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
- Parameters:
contentType
- The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:- application/json
- application/xml
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContentType
-
setContentType
public void setContentType(ContentType contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
- Parameters:
contentType
- The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:- application/json
- application/xml
- See Also:
ContentType
-
withContentType
public UploadDocumentsRequest withContentType(ContentType contentType)
The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:
- application/json
- application/xml
- Parameters:
contentType
- The format of the batch you are uploading. Amazon CloudSearch supports two document batch formats:- application/json
- application/xml
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ContentType
-
setContentLength
public void setContentLength(Long contentLength)
- Parameters:
contentLength
-
-
getContentLength
public Long getContentLength()
- Returns:
-
withContentLength
public UploadDocumentsRequest withContentLength(Long contentLength)
- Parameters:
contentLength
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UploadDocumentsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-