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

com.spotinst.sdkjava.model.RepoGenericResponse Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model;

import com.spotinst.sdkjava.exception.HttpError;

import java.util.List;

/**
 * Created by aharontwizer on 8/24/15.
 */
public class RepoGenericResponse {

    private boolean requestSucceed;
    private T value;
    private List httpErrors;

    public RepoGenericResponse(T value) {
        this.value = value;
        this.requestSucceed = true;
    }

    public RepoGenericResponse(boolean requestSucceed) {
        this.requestSucceed = requestSucceed;
    }

    public RepoGenericResponse(List httpErrors) {
        this.requestSucceed = false;
        this.httpErrors = httpErrors;
    }

    public boolean isRequestSucceed() {
        return requestSucceed;
    }

    public T getValue() {
        return value;
    }

    public List getHttpExceptions() {
        return httpErrors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy