Merge "Bug 6641: Fix ip_address in allowed_address_pairs info"
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronRoute.java
1 /*
2  * Copyright (c) 2013, 2015 IBM Corporation 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 javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16
17 @XmlRootElement
18 @XmlAccessorType(XmlAccessType.NONE)
19 public final class NeutronRoute implements Serializable {
20     private static final long serialVersionUID = 1L;
21
22     // See OpenStack Network API v2.0 Reference for description of
23     // annotated attributes
24
25     @XmlElement(name = "destination")
26     String destination;
27
28     @XmlElement(name = "nexthop")
29     String nextHop;
30
31     /**
32      *  HostRoute constructor
33      */
34     public NeutronRoute() {
35     }
36
37     public String getDestination() {
38         return destination;
39     }
40
41     public void setDestination(String destination) {
42         this.destination = destination;
43     }
44
45     public String getNextHop() {
46         return nextHop;
47     }
48
49     public void setNextHop(String nextHop) {
50         this.nextHop = nextHop;
51     }
52
53     @Override
54     public String toString() {
55         return "NeutronRoute [" + "destination=" + destination + ", nextHop=" + nextHop + "]";
56     }
57
58 }