2 * Copyright (c) 2014 NEC Corporation
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
10 package org.opendaylight.vtn.app.run.config.rest.response.beans;
12 import java.io.Serializable;
13 import java.util.ArrayList;
14 import java.util.List;
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;
20 *VBridgeInterfaceList - bean which helps to map the response as java object.
22 @RestURL(vtnMgrUrl = "controller/nb/v2/vtn/ {containerName}/vtns/ {tenantName}/vbridges/ {bridgeName}/interfaces")
24 public class VBridgeInterfaceList implements Serializable, Cloneable {
27 * Searialized id for this class.
29 private static final long serialVersionUID = -7308643277891453481L;
32 * Arry of interference references.
34 @JsonArray(name = "interface")
35 List<VBridgeInterface> interfaces = new ArrayList<VBridgeInterface>();
38 * getInterfaces - function to get the interfaces values for this object.
40 * @return {@link List<VBridgeInterface>}
42 public List<VBridgeInterface> getInterfaces() {
47 * setInterfaces - function to set the interfaces values for this object.
50 public void setInterfaces(List<VBridgeInterface> interfaces) {
51 this.interfaces = interfaces;
56 * Default Constructor.
58 public VBridgeInterfaceList() {}
61 * String representation of the object.
65 public String toString() {
66 return "" + interfaces;