Fix FindBugs violations
[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.util.List;
12 import javax.xml.bind.annotation.XmlElement;
13
14 public final class NeutronL2gatewayDevice extends NeutronID {
15
16     private static final long serialVersionUID = 1L;
17
18     @XmlElement(name = "interfaces")
19     List<NeutronL2gatewayDeviceInterface> l2gatewayDeviceInterfaces;
20
21     @XmlElement(name = "device_name")
22     String deviceName;
23
24     public String getDeviceName() {
25         return deviceName;
26     }
27
28     public void setDeviceName(String deviceName) {
29         this.deviceName = deviceName;
30     }
31
32     public List<NeutronL2gatewayDeviceInterface> getNeutronL2gatewayDeviceInterfaces() {
33         return l2gatewayDeviceInterfaces;
34     }
35
36     public void setNeutronL2gatewayDeviceInterfaces(
37             List<NeutronL2gatewayDeviceInterface> newL2gatewayDeviceInterfaces) {
38         this.l2gatewayDeviceInterfaces = newL2gatewayDeviceInterfaces;
39     }
40
41     @Override
42     public String toString() {
43         return "NeutronL2gatewayDevice [" + "id=" + uuid + ", l2gwDeviceInterfaces="
44                 + l2gatewayDeviceInterfaces + ", deviceName=" + deviceName + "]";
45     }
46 }