io.swagger.parser.util.SwaggerDeserializationResult Maven / Gradle / Ivy
package io.swagger.parser.util;
import io.swagger.models.Swagger;
import java.util.ArrayList;
import java.util.List;
public class SwaggerDeserializationResult {
private Swagger swagger;
private List messages;
public Swagger getSwagger() {
return swagger;
}
public List getMessages() {
return messages;
}
public void setMessages(List messages) {
this.messages = messages;
}
public void setSwagger(Swagger swagger) {
this.swagger = swagger;
}
public SwaggerDeserializationResult message(String message) {
if(messages == null) {
messages = new ArrayList();
}
messages.add(message);
return this;
}
}