io.searchbox.indices.DeleteIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jest-common Show documentation
Show all versions of jest-common Show documentation
ElasticSearch Java REST client - shared library package
package io.searchbox.indices;
import io.searchbox.action.GenericResultAbstractAction;
/**
* @author Dogukan Sonmez
* @author cihat keser
*/
public class DeleteIndex extends GenericResultAbstractAction {
protected DeleteIndex(Builder builder) {
super(builder);
indexName = builder.index;
typeName = builder.type;
setURI(buildURI());
}
@Override
public String getRestMethodName() {
return "DELETE";
}
public static class Builder extends GenericResultAbstractAction.Builder {
private String index;
private String type;
public Builder(String index) {
this.index = index;
}
public Builder type(String type) {
this.type = type;
return this;
}
@Override
public DeleteIndex build() {
return new DeleteIndex(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy