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

pub.codex.apix.build.ApiDescriptionBuilder Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package pub.codex.apix.build;

import pub.codex.apix.schema.ApiDescription;
import pub.codex.apix.schema.Operation;

import java.util.List;


/**
 * API描述信息构建
 */
public class ApiDescriptionBuilder {

    private String path;
    private String methodName;
    private List operations;


    public ApiDescriptionBuilder setPath(String path) {
        this.path = path;
        return this;
    }

    public ApiDescriptionBuilder setMethodName(String methodName) {
        this.methodName = methodName;
        return this;
    }

    public ApiDescriptionBuilder setOperations(List operations) {
        this.operations = operations;
        return this;
    }

    public ApiDescription build() {
        return new ApiDescription(path, methodName, operations);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy