BUG-7185 NeutronLoadBalancerListener has wrong xmlElement name
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronL2gatewayDeviceInterface.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 NeutronL2gatewayDeviceInterface implements Serializable {
16
17     private static final long serialVersionUID = 1L;
18
19     @XmlElement(name = "name")
20     String interfaceName;
21
22     @XmlElement(name = "segmentation_id")
23     List<Integer> segmentationId;
24
25     public String getInterfaceName() {
26         return interfaceName;
27     }
28
29     public void setInterfaceName(String interfaceName) {
30         this.interfaceName = interfaceName;
31     }
32
33     public List<Integer> getSegmentationId() {
34         return segmentationId;
35     }
36
37     public void setSegmentationId(List<Integer> segmentationId) {
38         this.segmentationId = segmentationId;
39     }
40
41     @Override
42     public String toString() {
43         return "NeutronL2gatewayDeviceInterface [interfaceNames=" + interfaceName + ", segmentationId=" + segmentationId
44                 + "]";
45     }
46 }