package com.blackduck.integration.detect.lifecycle.exit;

import com.blackduck.integration.detect.configuration.enumeration.ExitCodeType;
import com.blackduck.integration.util.Stringable;

public class ExitResult extends Stringable {
    private final ExitCodeType exitCodeType;
    private final boolean forceSuccess;
    private final boolean performExit;

    public ExitResult(ExitCodeType exitCodeType, boolean forceSuccess, boolean performExit) {
        this.exitCodeType = exitCodeType;
        this.forceSuccess = forceSuccess;
        this.performExit = performExit;
    }

    public ExitCodeType getExitCodeType() {
        return exitCodeType;
    }

    public boolean shouldForceSuccess() {
        return forceSuccess;
    }

    public boolean shouldPerformExit() {
        return performExit;
    }
}
