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

com.inteligr8.solr.model.core.SwapRequest 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 SwapRequest extends JsonFormattedResponseRequest {
	
	private static final String ACTION = "SWAP";
	
	@QueryParam("action")
	@DefaultValue(ACTION)
	@Nonnull
	private String action = ACTION;
	
	@QueryParam("core")
	@Nonnull
	private String core;
	
	@QueryParam("other")
	@Nonnull
	private String newCore;
	
	@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 SwapRequest withCore(String core) {
		this.core = core;
		return this;
	}
	
	public String getNewCore() {
		return newCore;
	}
	
	public void setNewCore(String newCore) {
		this.newCore = newCore;
	}
	
	public SwapRequest withNewCore(String newCore) {
		this.newCore = newCore;
		return this;
	}
	
	public String getRequestId() {
		return requestId;
	}
	
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	
	public SwapRequest withRequestId(String requestId) {
		this.requestId = requestId;
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy