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

com.github.switcherapi.client.model.criteria.SwitchersCheck Maven / Gradle / Ivy

package com.github.switcherapi.client.model.criteria;

import java.util.Arrays;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.github.switcherapi.client.remote.ClientWS;

/**
 * Request/Response model to use with {@link ClientWS#checkSwitchers(Set, String)}
 * 
 * @author Roger Floriano (petruki)
 * @since 2021-03-09
 */
public class SwitchersCheck {
	
	/**
	 * Request field
	 */
	private String[] switchers;
	
	/**
	 * Response field
	 */
	@JsonAlias("not_found")
	private String[] notFound;
	
	public SwitchersCheck() {}
	
	public SwitchersCheck(final Set switchers) {
		this.switchers = switchers.toArray(new String[0]);
	}

	public String[] getSwitchers() {
		return switchers;
	}

	public void setSwitchers(String[] switchers) {
		this.switchers = switchers;
	}

	public String[] getNotFound() {
		return notFound;
	}

	public void setNotFound(String[] notFound) {
		this.notFound = notFound;
	}

	@Override
	public String toString() {
		return "SwitchersCheck [switchers=" + Arrays.toString(switchers) + 
				", notFound=" + Arrays.toString(notFound) + "]";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy