All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.inteligr8.solr.model.core.UnloadRequest Maven / Gradle / Ivy

The newest version!
package com.inteligr8.solr.model.core;

import com.inteligr8.solr.model.JsonFormattedResponseRequest;

import jakarta.annotation.Nonnull;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.QueryParam;

public class UnloadRequest extends JsonFormattedResponseRequest {
	
	private static final String ACTION = "UNLOAD";
	
	@QueryParam("action")
	@DefaultValue(ACTION)
	@Nonnull
	private String action = ACTION;
	
	@QueryParam("core")
	@Nonnull
	private String core;
	
	@QueryParam("deleteIndex")
	private Boolean deleteIndex;
	
	@QueryParam("deleteDataDir")
	private Boolean deleteDataDirectory;
	
	@QueryParam("deleteInstanceDir")
	private Boolean deleteInstanceDirectory;
	
	@QueryParam("async")
	private String requestId;
	
	public String getAction() {
		return action;
	}
	
	public void setAction(String action) {
		this.action = action;
	}
	
	public String getCore() {
		return core;
	}
	
	public void setCore(String core) {
		this.core = core;
	}
	
	public UnloadRequest withCore(String core) {
		this.core = core;
		return this;
	}
	
	public Boolean getDeleteIndex() {
		return this.deleteIndex;
	}
	
	public void setDeleteIndex(Boolean deleteIndex) {
		this.deleteIndex = deleteIndex;
	}
	
	public UnloadRequest deleteIndex(boolean deleteIndex) {
		this.deleteIndex = deleteIndex;
		return this;
	}
	
	public Boolean getDeleteDataDirectory() {
		return deleteDataDirectory;
	}
	
	public void setDeleteDataDirectory(Boolean deleteDataDirectory) {
		this.deleteDataDirectory = deleteDataDirectory;
	}
	
	public UnloadRequest deleteDataDirectory(boolean deleteDataDirectory) {
		this.deleteDataDirectory = deleteDataDirectory;
		return this;
	}
	
	public Boolean getDeleteInstanceDirectory() {
		return deleteInstanceDirectory;
	}
	
	public void setDeleteInstanceDirectory(Boolean deleteInstanceDirectory) {
		this.deleteInstanceDirectory = deleteInstanceDirectory;
	}
	
	public UnloadRequest deleteInstanceDirectory(boolean deleteInstanceDirectory) {
		this.deleteInstanceDirectory = deleteInstanceDirectory;
		return this;
	}
	
	public String getRequestId() {
		return requestId;
	}
	
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	
	public UnloadRequest withRequestId(String requestId) {
		this.requestId = requestId;
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy