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

com.bebound.spring.model.Failure Maven / Gradle / Ivy

The newest version!
package com.bebound.spring.model;

/**
 * Created by mbiamont on 09/01/2016.
 */
public class Failure implements Response {

    private String errorStatus;

    public Failure(String errorStatus) {
        this.errorStatus = errorStatus;
    }

    public String getErrorStatus() {
        return errorStatus;
    }

    public void setErrorStatus(String errorStatus) {
        this.errorStatus = errorStatus;
    }

    public static class Builder {
        private String errorStatus = "";

        public Builder withErrorStatus(String errorStatus) {
            this.errorStatus = errorStatus;
            return this;
        }

        public Failure build() {
            return new Failure(errorStatus);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy