Class UploadDocumentsResult
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.UploadDocumentsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class UploadDocumentsResult extends Object implements Serializable, Cloneable
Contains the response to an
UploadDocuments
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadDocumentsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadDocumentsResult
clone()
boolean
equals(Object obj)
Long
getAdds()
The number of documents that were added to the search domain.Long
getDeletes()
The number of documents that were deleted from the search domain.String
getStatus()
The status of anUploadDocumentsRequest
.List<DocumentServiceWarning>
getWarnings()
Any warnings returned by the document service about the documents being uploaded.int
hashCode()
void
setAdds(Long adds)
The number of documents that were added to the search domain.void
setDeletes(Long deletes)
The number of documents that were deleted from the search domain.void
setStatus(String status)
The status of anUploadDocumentsRequest
.void
setWarnings(Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being uploaded.String
toString()
Returns a string representation of this object; useful for testing and debugging.UploadDocumentsResult
withAdds(Long adds)
The number of documents that were added to the search domain.UploadDocumentsResult
withDeletes(Long deletes)
The number of documents that were deleted from the search domain.UploadDocumentsResult
withStatus(String status)
The status of anUploadDocumentsRequest
.UploadDocumentsResult
withWarnings(DocumentServiceWarning... warnings)
Any warnings returned by the document service about the documents being uploaded.UploadDocumentsResult
withWarnings(Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being uploaded.
-
-
-
Method Detail
-
setStatus
public void setStatus(String status)
The status of an
UploadDocumentsRequest
.- Parameters:
status
- The status of anUploadDocumentsRequest
.
-
getStatus
public String getStatus()
The status of an
UploadDocumentsRequest
.- Returns:
- The status of an
UploadDocumentsRequest
.
-
withStatus
public UploadDocumentsResult withStatus(String status)
The status of an
UploadDocumentsRequest
.- Parameters:
status
- The status of anUploadDocumentsRequest
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAdds
public void setAdds(Long adds)
The number of documents that were added to the search domain.
- Parameters:
adds
- The number of documents that were added to the search domain.
-
getAdds
public Long getAdds()
The number of documents that were added to the search domain.
- Returns:
- The number of documents that were added to the search domain.
-
withAdds
public UploadDocumentsResult withAdds(Long adds)
The number of documents that were added to the search domain.
- Parameters:
adds
- The number of documents that were added to the search domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeletes
public void setDeletes(Long deletes)
The number of documents that were deleted from the search domain.
- Parameters:
deletes
- The number of documents that were deleted from the search domain.
-
getDeletes
public Long getDeletes()
The number of documents that were deleted from the search domain.
- Returns:
- The number of documents that were deleted from the search domain.
-
withDeletes
public UploadDocumentsResult withDeletes(Long deletes)
The number of documents that were deleted from the search domain.
- Parameters:
deletes
- The number of documents that were deleted from the search domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getWarnings
public List<DocumentServiceWarning> getWarnings()
Any warnings returned by the document service about the documents being uploaded.
- Returns:
- Any warnings returned by the document service about the documents being uploaded.
-
setWarnings
public void setWarnings(Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being uploaded.
- Parameters:
warnings
- Any warnings returned by the document service about the documents being uploaded.
-
withWarnings
public UploadDocumentsResult withWarnings(DocumentServiceWarning... warnings)
Any warnings returned by the document service about the documents being uploaded.
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)
orwithWarnings(java.util.Collection)
if you want to override the existing values.- Parameters:
warnings
- Any warnings returned by the document service about the documents being uploaded.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withWarnings
public UploadDocumentsResult withWarnings(Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being uploaded.
- Parameters:
warnings
- Any warnings returned by the document service about the documents being uploaded.- 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 UploadDocumentsResult clone()
-
-