com.indeed.proctor.common.PayloadSpecification Maven / Gradle / Ivy
package com.indeed.proctor.common;
import com.fasterxml.jackson.annotation.JsonInclude;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import java.util.Map;
/**
* Models the payload specification part of a test specification.
*
* @author pwp
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PayloadSpecification {
@Nullable private String type;
@Nullable private String validator;
@Nullable private Map schema;
private boolean allowForce;
@CheckForNull
public String getType() {
return type;
}
public void setType(@Nullable final String type) {
this.type = type;
}
public Map getSchema() {
return schema;
}
public void setSchema(@Nullable final Map schema) {
this.schema = schema;
}
@CheckForNull
public String getValidator() {
return validator;
}
public void setValidator(@Nullable final String validator) {
this.validator = validator;
}
public boolean getAllowForce() {
return allowForce;
}
public void setAllowForce(final boolean allowForce) {
this.allowForce = allowForce;
}
}