dd56b9e854cb20e7d269e6006e14f326a7c0d010
[controller.git] / opendaylight / md-sal / sal-rest-docgen / src / main / java / org / opendaylight / controller / sal / rest / doc / swagger / Parameter.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 /**
11  * Implementation of swagger spec
12  * (see <a href="https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#524-parameter-object">
13  *   https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#524-parameter-object</a>)
14  */
15 public class Parameter {
16   private String name;
17   private String description;
18   private boolean required;
19   private String type;
20   private String paramType;
21
22   public String getName() {
23     return name;
24   }
25
26   public void setName(String name) {
27     this.name = name;
28   }
29
30   public String getDescription() {
31     return description;
32   }
33
34   public void setDescription(String description) {
35     this.description = description;
36   }
37
38   public boolean isRequired() {
39     return required;
40   }
41
42   public void setRequired(boolean required) {
43     this.required = required;
44   }
45
46   public String getType() {
47     return type;
48   }
49
50   public void setType(String type) {
51     this.type = type;
52   }
53
54   public String getParamType() {
55     return paramType;
56   }
57
58   public void setParamType(String paramType) {
59     this.paramType = paramType;
60   }
61 }