ef36e9dfa3f36885701a185fcbaf4cb2cbd4f23a
[vtn.git] /
1 /**
2  * Copyright (c) 2015 NEC Corporation
3  * All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this
7  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.vtn.app.run.config.rest.response.beans;
11
12 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
13 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
14
15 /**
16  * Tpsrc - Bean Representaion for Tpsrc object from the JSON Response.
17  *
18  */
19 @JsonObject
20 public class Tpsrc {
21
22     /**
23      * priority for Port
24      */
25     @JsonElement(name = "port")
26     private int port = 0;
27     /**
28      * Default Constructor
29      */
30     public Tpsrc() {}
31
32     /**
33      * getDscp - function to get the dscp value for this object.
34      *
35      * @return {@link int}
36      */
37     public int getPort() {
38         return port;
39     }
40
41     /**
42      * setPort - function to set the port value for this object.
43      *
44      * @param port
45      */
46     public void setPort(int port) {
47         this.port = port;
48     }
49
50     /**
51      * String representation of the object.
52      *
53      */
54     @Override
55     public String toString() {
56         return "port:" + port;
57     }
58 }