7b8ba58c4400b5b590cffb1dea420d9da7e1191f
[vtn.git] /
1 /**
2  * Copyright (c) 2014 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 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObjectRef;
15
16 /**
17  * VlanNorthBound - Bean Representaion for VlanNorthBound object from the JSON Response.
18  *
19  */
20 @JsonObject
21 public class VlanNorthBound {
22
23     /**
24      *unique id for this object.
25      */
26     @JsonElement(name = "id")
27     private String id = null;
28
29     /**
30      * vlan for this object.
31      */
32     @JsonElement(name = "vlan")
33     private int vlan = 0;
34
35     /**
36      * Reference of NodeDetails for this object.
37      */
38     @JsonObjectRef(name = "node")
39     NodeDetails node = new NodeDetails();
40     /**
41      * Default Constructor.
42      */
43     public VlanNorthBound() {}
44
45     /**
46      * getId - function to get the id for this object.
47      *
48      * @return {@link int}
49      */
50     public String getId() {
51         return id;
52     }
53
54     /**
55      * setId - function to set the id for this object.
56      *
57      * @param id
58      */
59     public void setId(String id) {
60         this.id = id;
61     }
62
63     /**
64      * getVlan - function to get the vlan for this object.
65      *
66      * @return {@link int}
67      */
68     public int getVlan() {
69         return vlan;
70     }
71
72     /**
73      * setVlan - function to set the vlan for this object.
74      *
75      * @param vlan.
76      */
77     public void setVlan(int vlan) {
78         this.vlan = vlan;
79     }
80
81     /**
82      * getNode - function to get the Node obj for this object.
83      *
84      * @return {@link NodeDetails}
85      */
86     public NodeDetails getNode() {
87         return node;
88     }
89
90     /**
91      * setNode - function to set the node for this object.
92      *
93      * @param node.
94      */
95     public void setNode(NodeDetails node) {
96         this.node = node;
97     }
98
99     /**
100      * String representation of the object.
101      *
102      */
103     @Override
104     public String toString() {
105         return "";
106     }
107 }