Class DeleteResult
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.documents.DeleteResult
-
public class DeleteResult extends Object
Represents the result of a document delete operation
-
-
Constructor Summary
Constructors Constructor Description DeleteResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetId()The id of the deleted documentinthashCode()booleanisDeleted()Whether the document was successfully deletedDeleteResultsetDeleted(boolean deleted)Whether the document was successfully deletedDeleteResultsetId(String id)The id of the deleted documentStringtoString()
-
-
-
Method Detail
-
getId
public String getId()
The id of the deleted document- Returns:
- the document id
-
isDeleted
public boolean isDeleted()
Whether the document was successfully deleted- Returns:
- true if the document was deleted, otherwise false
-
setId
public DeleteResult setId(String id)
The id of the deleted document- Parameters:
id- the document id- Returns:
this.
-
setDeleted
public DeleteResult setDeleted(boolean deleted)
Whether the document was successfully deleted- Parameters:
deleted- whether the document was deleted- Returns:
this.
-
-