Class DeleteResponse
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.documents.DeleteResponse
-
- All Implemented Interfaces:
ErrorableResponse
public class DeleteResponse extends Object implements ErrorableResponse
Represents a response from the delete operation
-
-
Constructor Summary
Constructors Constructor Description DeleteResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<DeleteResult>getDocuments()The resultsList<DeleteResult>getErrors()Get the errors from the responseinthashCode()booleanisError()Is the response and error repsonseDeleteResponsesetDocuments(List<DeleteResult> documents)The resultsStringtoString()
-
-
-
Method Detail
-
isError
public boolean isError()
Is the response and error repsonse- Specified by:
isErrorin interfaceErrorableResponse- Returns:
- true if 1 or more errors are returned, otherwise false
-
getErrors
public List<DeleteResult> getErrors()
Get the errors from the response- Returns:
- The errors from the response
-
getDocuments
public List<DeleteResult> getDocuments()
The results- Returns:
- the results
-
setDocuments
public DeleteResponse setDocuments(List<DeleteResult> documents)
The results- Parameters:
documents- the results- Returns:
this.
-
-