checkstyle: JavadocStyleCheck
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronPortAllowedAddressPairs.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.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 NeutronPortAllowedAddressPairs implements Serializable {
20     private static final long serialVersionUID = 1L;
21
22     @XmlElement(name = "mac_address")
23     String macAddress;
24
25     @XmlElement(name = "ip_address")
26     String ipAddress;
27
28     public NeutronPortAllowedAddressPairs() {
29     }
30
31     public NeutronPortAllowedAddressPairs(String macAddress, String ipAddress) {
32         this.macAddress = macAddress;
33         this.ipAddress = ipAddress;
34     }
35
36     public String getMacAddress() {
37         return (macAddress);
38     }
39
40     public void setMacAddress(String macAddress) {
41         this.macAddress = macAddress;
42     }
43
44     public String getIpAddress() {
45         return (ipAddress);
46     }
47
48     public void setIpAddress(String ipAddress) {
49         this.ipAddress = ipAddress;
50     }
51 }