4f4d3016cc53723583e33e7b4a42e70a5ae0de1e
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / openapi / SwaggerObject.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netconf.sal.rest.doc.openapi;
9
10 import com.fasterxml.jackson.databind.node.ArrayNode;
11 import com.fasterxml.jackson.databind.node.ObjectNode;
12 import java.util.List;
13
14 public class SwaggerObject implements CommonApiObject {
15     private String swagger;
16     private Info info;
17     private List<String> schemes;
18     private String host;
19     private String basePath;
20     private List<String> produces;
21     private ObjectNode paths;
22     private ObjectNode definitions;
23     private SecurityDefinitions securityDefinitions;
24     private ArrayNode security;
25
26     public ObjectNode getDefinitions() {
27         return definitions;
28     }
29
30     public void setDefinitions(ObjectNode definitions) {
31         this.definitions = definitions;
32     }
33
34     public String getBasePath() {
35         return basePath;
36     }
37
38     public void setBasePath(String basePath) {
39         this.basePath = basePath;
40     }
41
42     public List<String> getProduces() {
43         return produces;
44     }
45
46     public void setProduces(List<String> produces) {
47         this.produces = produces;
48     }
49
50     public List<String> getSchemes() {
51         return schemes;
52     }
53
54     public void setSchemes(List<String> schemes) {
55         this.schemes = schemes;
56     }
57
58     public String getHost() {
59         return host;
60     }
61
62     public void setHost(String host) {
63         this.host = host;
64     }
65
66     public void setPaths(ObjectNode paths) {
67         this.paths = paths;
68     }
69
70     public ObjectNode getPaths() {
71         return paths;
72     }
73
74     public Info getInfo() {
75         return info;
76     }
77
78     public void setInfo(Info info) {
79         this.info = info;
80     }
81
82     public String getSwagger() {
83         return swagger;
84     }
85
86     public void setSwagger(String swagger) {
87         this.swagger = swagger;
88     }
89
90     public SecurityDefinitions getSecurityDefinitions() {
91         return securityDefinitions;
92     }
93
94     public void setSecurityDefinitions(SecurityDefinitions securityDefinitions) {
95         this.securityDefinitions = securityDefinitions;
96     }
97
98     public ArrayNode getSecurity() {
99         return security;
100     }
101
102     public void setSecurity(ArrayNode security) {
103         this.security = security;
104     }
105 }