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

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

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

import io.swagger.models.SwaggerBaseModel;

import java.util.List;
import java.util.Map;

public class Model extends SwaggerBaseModel {
    private String id = null;
    private String description = null;
    private List required = null;
    private Map properties = null;
    private String discriminator = null;
    private List subTypes = null;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List getRequired() {
        return required;
    }

    public void setRequired(List required) {
        this.required = required;
    }

    public Map getProperties() {
        return properties;
    }

    public void setProperties(Map properties) {
        this.properties = properties;
    }

    public String getDiscriminator() {
        return discriminator;
    }

    public void setDiscriminator(String discriminator) {
        this.discriminator = discriminator;
    }

    public List getSubTypes() {
        return subTypes;
    }

    public void setSubTypes(List subTypes) {
        this.subTypes = subTypes;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Model {\n");
        sb.append("  id: ").append(id).append("\n");
        sb.append("  description: ").append(description).append("\n");
        sb.append("  required: ").append(required).append("\n");
        sb.append("  properties: ").append(properties).append("\n");
        sb.append("  discriminator: ").append(discriminator).append("\n");
        sb.append("  subTypes: ").append(subTypes).append("\n");
        sb.append("  extraFields: ").append(getExtraFields()).append("\n");
        sb.append("}\n");
        return sb.toString();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy