Merge "Bug 809: Enhancements to the toaster example"
[controller.git] / opendaylight / md-sal / sal-rest-docgen / src / main / java / org / opendaylight / controller / sal / rest / doc / swagger / ResponseMessage.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#525-response-message-object">
13  *   https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#525-response-message-object</a>)
14  */
15 public class ResponseMessage {
16   private int code;
17   private String message;
18
19   public int getCode() {
20     return code;
21   }
22
23   public void setCode(int code) {
24     this.code = code;
25   }
26
27   public String getMessage() {
28     return message;
29   }
30
31   public void setMessage(String message) {
32     this.message = message;
33   }
34 }