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
UploadDocumentsrequest.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadDocumentsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadDocumentsResultclone()booleanequals(Object obj)LonggetAdds()The number of documents that were added to the search domain.LonggetDeletes()The number of documents that were deleted from the search domain.StringgetStatus()The status of anUploadDocumentsRequest.List<DocumentServiceWarning>getWarnings()Any warnings returned by the document service about the documents being uploaded.inthashCode()voidsetAdds(Long adds)The number of documents that were added to the search domain.voidsetDeletes(Long deletes)The number of documents that were deleted from the search domain.voidsetStatus(String status)The status of anUploadDocumentsRequest.voidsetWarnings(Collection<DocumentServiceWarning> warnings)Any warnings returned by the document service about the documents being uploaded.StringtoString()Returns a string representation of this object; useful for testing and debugging.UploadDocumentsResultwithAdds(Long adds)The number of documents that were added to the search domain.UploadDocumentsResultwithDeletes(Long deletes)The number of documents that were deleted from the search domain.UploadDocumentsResultwithStatus(String status)The status of anUploadDocumentsRequest.UploadDocumentsResultwithWarnings(DocumentServiceWarning... warnings)Any warnings returned by the document service about the documents being uploaded.UploadDocumentsResultwithWarnings(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UploadDocumentsResult clone()
-
-