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

com.inteligr8.solr.model.core.StatusRequest 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 StatusRequest extends JsonFormattedResponseRequest {
	
	private static final String ACTION = "STATUS";
	
	@QueryParam("action")
	@DefaultValue(ACTION)
	@Nonnull
	private String action = ACTION;
	
	@QueryParam("core")
	private String core;
	
	@QueryParam("indexInfo")
	private Boolean includeIndexInformation;
	
	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 StatusRequest withCore(String core) {
		this.core = core;
		return this;
	}
	
	public Boolean getIncludeIndexInformation() {
		return includeIndexInformation;
	}
	
	public void setIncludeIndexInformation(Boolean includeIndexInformation) {
		this.includeIndexInformation = includeIndexInformation;
	}
	
	public StatusRequest includeIndexInformation(boolean includeIndexInformation) {
		this.includeIndexInformation = includeIndexInformation;
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy