Bug 931, Bug 910 - Enhance Restconf Swagger Documentation
[controller.git] / opendaylight / md-sal / sal-rest-docgen / src / main / java / org / opendaylight / controller / sal / rest / doc / swagger / Operation.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.sal.rest.doc.swagger;
9
10 import java.util.List;
11
12 /**
13  * Implementation of swagger spec (see <a href=
14  * "https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#523-operation-object"
15  * > https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#523-
16  * operation-object</a>)
17  */
18 public class Operation {
19     private String method;
20     private String summary;
21     private String notes;
22     private String type;
23     private String nickname;
24     private List<String> consumes;
25     private List<Parameter> parameters;
26     private List<ResponseMessage> responseMessages;
27
28     public String getMethod() {
29         return method;
30     }
31
32     public void setMethod(String method) {
33         this.method = method;
34     }
35
36     public String getSummary() {
37         return summary;
38     }
39
40     public void setSummary(String summary) {
41         this.summary = summary;
42     }
43
44     public String getNotes() {
45         return notes;
46     }
47
48     public void setNotes(String notes) {
49         this.notes = notes;
50     }
51
52     public String getType() {
53         return type;
54     }
55
56     public void setType(String type) {
57         this.type = type;
58     }
59
60     public String getNickname() {
61         return nickname;
62     }
63
64     public void setNickname(String nickname) {
65         this.nickname = nickname;
66     }
67
68     public List<String> getConsumes() {
69         return consumes;
70     }
71
72     public void setConsumes(List<String> consumes) {
73         this.consumes = consumes;
74     }
75
76     public List<Parameter> getParameters() {
77         return parameters;
78     }
79
80     public void setParameters(List<Parameter> parameters) {
81         this.parameters = parameters;
82     }
83
84     public List<ResponseMessage> getResponseMessages() {
85         return responseMessages;
86     }
87
88     public void setResponseMessages(List<ResponseMessage> responseMessages) {
89         this.responseMessages = responseMessages;
90     }
91 }