
com.mangofactory.swagger.models.dto.builder.OperationBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-models Show documentation
Show all versions of swagger-models Show documentation
This project integrates swagger with the Spring Web MVC framework
The newest version!
package com.mangofactory.swagger.models.dto.builder;
import com.mangofactory.swagger.models.dto.Authorization;
import com.mangofactory.swagger.models.dto.Operation;
import com.mangofactory.swagger.models.dto.Parameter;
import com.mangofactory.swagger.models.dto.ResponseMessage;
import java.util.List;
import java.util.Set;
public class OperationBuilder {
private String method;
private String summary;
private String notes;
private String responseClass;
private String nickname;
private int position;
private List produces;
private List consumes;
private List protocol;
private List authorizations;
private List parameters;
private Set responseMessages;
private String deprecated;
public OperationBuilder method(String method) {
this.method = method;
return this;
}
public OperationBuilder summary(String summary) {
this.summary = summary;
return this;
}
public OperationBuilder notes(String notes) {
this.notes = notes;
return this;
}
public OperationBuilder responseClass(String responseClass) {
this.responseClass = responseClass;
return this;
}
public OperationBuilder nickname(String nickname) {
this.nickname = nickname;
return this;
}
public OperationBuilder position(int position) {
this.position = position;
return this;
}
public OperationBuilder produces(List produces) {
this.produces = produces;
return this;
}
public OperationBuilder consumes(List consumes) {
this.consumes = consumes;
return this;
}
public OperationBuilder protocol(List protocol) {
this.protocol = protocol;
return this;
}
public OperationBuilder authorizations(List authorizations) {
this.authorizations = authorizations;
return this;
}
public OperationBuilder parameters(List parameters) {
this.parameters = parameters;
return this;
}
public OperationBuilder responseMessages(Set responseMessages) {
this.responseMessages = responseMessages;
return this;
}
public OperationBuilder deprecated(String deprecated) {
this.deprecated = deprecated;
return this;
}
public Operation build() {
return new Operation(method, summary, notes, responseClass, nickname, position, produces,
consumes, protocol, authorizations, parameters, responseMessages, deprecated);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy