public class UploadDocumentsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to an UploadDocuments
request.
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
adds
The number of documents that were added to the search domain.
|
private java.lang.Long |
deletes
The number of documents that were deleted from the search domain.
|
private java.lang.String |
status
The status of an
UploadDocumentsRequest . |
private SdkInternalList<DocumentServiceWarning> |
warnings
Any warnings returned by the document service about the documents being
uploaded.
|
Constructor and Description |
---|
UploadDocumentsResult() |
Modifier and Type | Method and Description |
---|---|
UploadDocumentsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getAdds()
The number of documents that were added to the search domain.
|
java.lang.Long |
getDeletes()
The number of documents that were deleted from the search domain.
|
java.lang.String |
getStatus()
The status of an
UploadDocumentsRequest . |
java.util.List<DocumentServiceWarning> |
getWarnings()
Any warnings returned by the document service about the documents being
uploaded.
|
int |
hashCode() |
void |
setAdds(java.lang.Long adds)
The number of documents that were added to the search domain.
|
void |
setDeletes(java.lang.Long deletes)
The number of documents that were deleted from the search domain.
|
void |
setStatus(java.lang.String status)
The status of an
UploadDocumentsRequest . |
void |
setWarnings(java.util.Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being
uploaded.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadDocumentsResult |
withAdds(java.lang.Long adds)
The number of documents that were added to the search domain.
|
UploadDocumentsResult |
withDeletes(java.lang.Long deletes)
The number of documents that were deleted from the search domain.
|
UploadDocumentsResult |
withStatus(java.lang.String status)
The status of an
UploadDocumentsRequest . |
UploadDocumentsResult |
withWarnings(java.util.Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being
uploaded.
|
UploadDocumentsResult |
withWarnings(DocumentServiceWarning... warnings)
Any warnings returned by the document service about the documents being
uploaded.
|
private java.lang.String status
The status of an UploadDocumentsRequest
.
private java.lang.Long adds
The number of documents that were added to the search domain.
private java.lang.Long deletes
The number of documents that were deleted from the search domain.
private SdkInternalList<DocumentServiceWarning> warnings
Any warnings returned by the document service about the documents being uploaded.
public void setStatus(java.lang.String status)
The status of an UploadDocumentsRequest
.
status
- The status of an UploadDocumentsRequest
.public java.lang.String getStatus()
The status of an UploadDocumentsRequest
.
UploadDocumentsRequest
.public UploadDocumentsResult withStatus(java.lang.String status)
The status of an UploadDocumentsRequest
.
status
- The status of an UploadDocumentsRequest
.public void setAdds(java.lang.Long adds)
The number of documents that were added to the search domain.
adds
- The number of documents that were added to the search domain.public java.lang.Long getAdds()
The number of documents that were added to the search domain.
public UploadDocumentsResult withAdds(java.lang.Long adds)
The number of documents that were added to the search domain.
adds
- The number of documents that were added to the search domain.public void setDeletes(java.lang.Long deletes)
The number of documents that were deleted from the search domain.
deletes
- The number of documents that were deleted from the search domain.public java.lang.Long getDeletes()
The number of documents that were deleted from the search domain.
public UploadDocumentsResult withDeletes(java.lang.Long deletes)
The number of documents that were deleted from the search domain.
deletes
- The number of documents that were deleted from the search domain.public java.util.List<DocumentServiceWarning> getWarnings()
Any warnings returned by the document service about the documents being uploaded.
public void setWarnings(java.util.Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being uploaded.
warnings
- Any warnings returned by the document service about the documents
being uploaded.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)
or
withWarnings(java.util.Collection)
if you want to override the
existing values.
warnings
- Any warnings returned by the document service about the documents
being uploaded.public UploadDocumentsResult withWarnings(java.util.Collection<DocumentServiceWarning> warnings)
Any warnings returned by the document service about the documents being uploaded.
warnings
- Any warnings returned by the document service about the documents
being uploaded.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 UploadDocumentsResult clone()
clone
in class java.lang.Object