8daac976683021a1235cb675db0e2be0d8018783
[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 java.io.Serializable;
13 import java.util.ArrayList;
14 import java.util.List;
15
16 import org.opendaylight.vtn.app.run.config.json.annotations.JsonArray;
17 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
18 import org.opendaylight.vtn.app.run.config.rest.enumgroups.RestURL;
19 /**
20  *VBridgeInterfaceList - bean which helps to map the response as java object.
21  */
22 @RestURL(vtnMgrUrl = "controller/nb/v2/vtn/ {containerName}/vtns/ {tenantName}/vbridges/ {bridgeName}/interfaces")
23 @JsonObject
24 public class VBridgeInterfaceList implements Serializable, Cloneable {
25
26     /**
27      * Searialized id for this class.
28      */
29     private static final long serialVersionUID = -7308643277891453481L;
30
31     /**
32      * Arry of interference references.
33      */
34     @JsonArray(name = "interface")
35     List<VBridgeInterface> interfaces = new ArrayList<VBridgeInterface>();
36
37     /**
38      * getInterfaces - function to get the interfaces values for this object.
39      *
40      * @return {@link List<VBridgeInterface>}
41      */
42     public List<VBridgeInterface> getInterfaces() {
43         return interfaces;
44     }
45
46     /**
47      * setInterfaces - function to set the interfaces values for this object.
48      *      * @param interfaces
49      */
50     public void setInterfaces(List<VBridgeInterface> interfaces) {
51         this.interfaces = interfaces;
52     }
53
54
55     /**
56      * Default Constructor.
57      */
58     public VBridgeInterfaceList() {}
59
60     /**
61      * String representation of the object.
62      *
63      */
64     @Override
65     public String toString() {
66         return "" + interfaces;
67     }
68 }