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

com.indeed.proctor.common.PayloadSpecification Maven / Gradle / Ivy

There is a newer version: 1.9.118-1950c8a
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy