
com.coveo.pushapiclient.DeleteDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of push-api-client.java Show documentation
Show all versions of push-api-client.java Show documentation
Coveo Push API client. See more on https://github.com/coveo/push-api-client.java
The newest version!
package com.coveo.pushapiclient;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
public class DeleteDocument {
/**
* The documentId of the document.
*/
public String documentId;
/**
* Flag to delete children of the document.
*/
public boolean deleteChildren;
public DeleteDocument(String documentId) {
this.documentId = documentId;
this.deleteChildren = false;
}
public DeleteDocument(String documentId, boolean deleteChildren) {
this.documentId = documentId;
this.deleteChildren = deleteChildren;
}
public JsonObject marshalJsonObject() {
return new Gson().toJsonTree(this).getAsJsonObject();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy