neutorn-spi: more remove neutron prefix of field
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronL2gatewayDevice.java
1 /*
2  * Copyright (c) 2015 Hewlett-Packard Development Company, L.P. 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
9 package org.opendaylight.neutron.spi;
10
11 import java.io.Serializable;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlElement;
14
15 public final class NeutronL2gatewayDevice extends NeutronID implements Serializable {
16
17     private static final long serialVersionUID = 1L;
18
19     @XmlElement(name = "interfaces")
20     List<NeutronL2gatewayDeviceInterface> l2gatewayDeviceInterfaces;
21
22     @XmlElement(name = "device_name")
23     String deviceName;
24
25     public String getDeviceName() {
26         return deviceName;
27     }
28
29     public void setDeviceName(String deviceName) {
30         this.deviceName = deviceName;
31     }
32
33     public List<NeutronL2gatewayDeviceInterface> getNeutronL2gatewayDeviceInterfaces() {
34         return l2gatewayDeviceInterfaces;
35     }
36
37     public void setNeutronL2gatewayDeviceInterfaces(
38             List<NeutronL2gatewayDeviceInterface> l2gatewayDeviceInterfaces) {
39         this.l2gatewayDeviceInterfaces = l2gatewayDeviceInterfaces;
40     }
41
42     @Override
43     public String toString() {
44         return "NeutronL2gatewayDevice [" + "id=" + uuid + ", l2gwDeviceInterfaces="
45                 + l2gatewayDeviceInterfaces + ", deviceName=" + deviceName + "]";
46     }
47 }