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

io.swagger.models.apideclaration.ApiDeclaration Maven / Gradle / Ivy

There is a newer version: 1.0.71
Show newest version
package io.swagger.models.apideclaration;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.models.AuthorizationScope;
import io.swagger.models.SwaggerBaseModel;
import io.swagger.models.resourcelisting.ApiListingReference;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ApiDeclaration extends SwaggerBaseModel {
    private String swaggerVersion = null;
    private String apiVersion = null;
    private String basePath = null;
    private String resourcePath = null;
    private List apis = new ArrayList<>();
    private Map models = new HashMap<>();
    private List produces = new ArrayList<>();
    private List consumes = new ArrayList<>();
    private Map> authorizations = new HashMap<>();
    @JsonIgnore
    private ApiListingReference apiListingRef;

    public String getSwaggerVersion() {
        return swaggerVersion;
    }

    public void setSwaggerVersion(String swaggerVersion) {
        this.swaggerVersion = swaggerVersion;
    }

    public String getApiVersion() {
        return apiVersion;
    }

    public void setApiVersion(String apiVersion) {
        this.apiVersion = apiVersion;
    }

    public String getBasePath() {
        return basePath;
    }

    public void setBasePath(String basePath) {
        this.basePath = basePath;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }

    public List getApis() {
        return apis;
    }

    public void setApis(List apis) {
        this.apis = apis;
    }

    public Map getModels() {
        return models;
    }

    public void setModels(Map models) {
        this.models = models;
    }

    public List getProduces() {
        return produces;
    }

    public void setProduces(List produces) {
        this.produces = produces;
    }

    public List getConsumes() {
        return consumes;
    }

    public void setConsumes(List consumes) {
        this.consumes = consumes;
    }

    public Map> getAuthorizations() {
        return authorizations;
    }

    public void setAuthorizations(Map> authorizations) {
        this.authorizations = authorizations;
    }

    public ApiListingReference getApiListingRef() {
        return this.apiListingRef;
    }

    public void setApiListingRef(ApiListingReference ref) {
        this.apiListingRef = ref;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ApiDescription {\n");
        sb.append("  swaggerVersion: ").append(swaggerVersion).append("\n");
        sb.append("  apiVersion: ").append(apiVersion).append("\n");
        sb.append("  basePath: ").append(basePath).append("\n");
        sb.append("  resourcePath: ").append(resourcePath).append("\n");
        sb.append("  apis: ").append(apis).append("\n");
        sb.append("  models: ").append(models).append("\n");
        sb.append("  produces: ").append(produces).append("\n");
        sb.append("  consumes: ").append(consumes).append("\n");
        sb.append("  authorizations: ").append(authorizations).append("\n");
        sb.append("  extraFields: ").append(getExtraFields()).append("\n");
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy