Merge "Factor common code"
[netvirt.git] / openstack / net-virt / src / main / java / org / opendaylight / ovsdb / openstack / netvirt / translator / NeutronPort_AllowedAddressPairs.java
1 /*
2  * Copyright (c) 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.ovsdb.openstack.netvirt.translator;
10
11 import java.io.Serializable;
12
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
17
18 @XmlRootElement
19 @XmlAccessorType(XmlAccessType.NONE)
20 public class NeutronPort_AllowedAddressPairs implements Serializable {
21     private static final long serialVersionUID = 1L;
22
23     @XmlElement (name = "port_id")
24     String portID;
25
26     @XmlElement (name = "mac_address")
27     String macAddress;
28
29     @XmlElement (name = "ip_address")
30     String ipAddress;
31
32     public NeutronPort_AllowedAddressPairs() {
33     }
34
35     public NeutronPort_AllowedAddressPairs(String portID, String macAddress, String ipAddress) {
36         this.portID = portID;
37         this.macAddress = macAddress;
38         this.ipAddress = ipAddress;
39     }
40
41     public String getPortID() { return(portID); }
42
43     public void setPortID(String portID) { this.portID = portID; }
44
45     public String getMacAddress() { return(macAddress); }
46
47     public void setMacAddress(String macAddress) { this.macAddress = macAddress; }
48
49     public String getIpAddress() { return(ipAddress); }
50
51     public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; }
52 }