d1150fd0bd426b6d0ba51a3d2c2417ce18d1ffc6
[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
14  * (see <a href="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-operation-object</a>)
16  */
17 public class Operation {
18   private String method;
19   private String summary;
20   private String notes;
21   private String type;
22   private String nickname;
23   private List<String> consumes;
24   private List<Parameter> parameters;
25   private List<ResponseMessage> responseMessages;
26
27   public String getMethod() {
28     return method;
29   }
30
31   public void setMethod(String method) {
32     this.method = method;
33   }
34
35   public String getSummary() {
36     return summary;
37   }
38
39   public void setSummary(String summary) {
40     this.summary = summary;
41   }
42
43   public String getNotes() {
44     return notes;
45   }
46
47   public void setNotes(String notes) {
48     this.notes = notes;
49   }
50
51   public String getType() {
52     return type;
53   }
54
55   public void setType(String type) {
56     this.type = type;
57   }
58
59   public String getNickname() {
60     return nickname;
61   }
62
63   public void setNickname(String nickname) {
64     this.nickname = nickname;
65   }
66
67   public List<String> getConsumes() {
68     return consumes;
69   }
70
71   public void setConsumes(List<String> consumes) {
72     this.consumes = consumes;
73   }
74
75   public List<Parameter> getParameters() {
76     return parameters;
77   }
78
79   public void setParameters(List<Parameter> parameters) {
80     this.parameters = parameters;
81   }
82
83   public List<ResponseMessage> getResponseMessages() {
84     return responseMessages;
85   }
86
87   public void setResponseMessages(List<ResponseMessage> responseMessages) {
88     this.responseMessages = responseMessages;
89   }
90 }