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

com.yoti.api.client.sandbox.docs.request.check.SandboxDocumentFaceMatchCheck Maven / Gradle / Ivy

The newest version!
package com.yoti.api.client.sandbox.docs.request.check;

import static com.yoti.api.client.spi.remote.util.Validation.notNull;

import com.yoti.api.client.sandbox.docs.request.SandboxDocumentFilter;
import com.yoti.api.client.sandbox.docs.request.check.report.SandboxCheckReport;

public class SandboxDocumentFaceMatchCheck extends SandboxDocumentCheck {

    SandboxDocumentFaceMatchCheck(SandboxCheckResult result, SandboxDocumentFilter documentFilter) {
        super(result, documentFilter);
    }

    public static Builder builder() {
        return new Builder();
    }

    /**
     * Builder for {@link SandboxDocumentFaceMatchCheck}
     */
    public static class Builder extends SandboxDocumentCheck.Builder {

        private Builder() {
        }

        @Override
        protected Builder self() {
            return this;
        }

        @Override
        public SandboxDocumentFaceMatchCheck build() {
            notNull(recommendation, "recommendation");

            SandboxCheckReport report = new SandboxCheckReport(recommendation, breakdown);
            SandboxCheckResult result = new SandboxCheckResult(report);

            return new SandboxDocumentFaceMatchCheck(result, documentFilter);
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy