br.com.moip.resource.ErrorBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
package br.com.moip.resource;
public class ErrorBuilder {
private final Error error = new Error();
public ErrorBuilder code(final String code) {
error.setCode(code);
return this;
}
public ErrorBuilder path(final String path) {
error.setPath(path);
return this;
}
public ErrorBuilder description(final String description) {
error.setDescription(description);
return this;
}
public Error build() {
return error;
}
}