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

io.fabric8.swagger.model.Api Maven / Gradle / Ivy


package io.fabric8.swagger.model;

import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "path",
    "description",
    "operations"
})
@ToString
@EqualsAndHashCode
public class Api {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("path")
    @Pattern(regexp = "^/")
    @NotNull
    private String path;
    @JsonProperty("description")
    private String description;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("operations")
    @Valid
    @NotNull
    private List operations = new ArrayList();

    /**
     * 
     * (Required)
     * 
     * @return
     *     The path
     */
    @JsonProperty("path")
    public String getPath() {
        return path;
    }

    /**
     * 
     * (Required)
     * 
     * @param path
     *     The path
     */
    @JsonProperty("path")
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 
     * @return
     *     The description
     */
    @JsonProperty("description")
    public String getDescription() {
        return description;
    }

    /**
     * 
     * @param description
     *     The description
     */
    @JsonProperty("description")
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The operations
     */
    @JsonProperty("operations")
    public List getOperations() {
        return operations;
    }

    /**
     * 
     * (Required)
     * 
     * @param operations
     *     The operations
     */
    @JsonProperty("operations")
    public void setOperations(List operations) {
        this.operations = operations;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy