e1df719ce3d418548d7e3114e8e731da246329ae
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronRouter_Interface.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 class NeutronRouter_Interface extends NeutronObject implements Serializable, INeutronObject {
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 = "subnet_id")
26     String subnetUUID;
27
28     @XmlElement (name = "port_id")
29     String portUUID;
30
31     public NeutronRouter_Interface() {
32     }
33
34     public NeutronRouter_Interface(String subnetUUID, String portUUID) {
35         this.subnetUUID = subnetUUID;
36         this.portUUID = portUUID;
37     }
38
39     public String getSubnetUUID() {
40         return subnetUUID;
41     }
42
43     public void setSubnetUUID(String subnetUUID) {
44         this.subnetUUID = subnetUUID;
45     }
46
47     public String getPortUUID() {
48         return portUUID;
49     }
50
51     public void setPortUUID(String portUUID) {
52         this.portUUID = portUUID;
53     }
54
55     @Override
56     public String toString() {
57         return "NeutronRouterInterface [" +
58             "subnetUUID=" + subnetUUID +
59             ", portUUID=" + portUUID +
60             ", id=" + uuid +
61             ", tenantID=" + tenantID + "]";
62     }
63 }