2 * Copyright (c) 2013, 2015 IBM Corporation and others. All rights reserved.
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
9 package org.opendaylight.neutron.spi;
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;
18 @XmlAccessorType(XmlAccessType.NONE)
19 public final class NeutronIps implements Serializable {
20 private static final long serialVersionUID = 1L;
22 // See OpenStack Network API v2.0 Reference for description of
23 // annotated attributes
25 @XmlElement(name = "ip_address")
28 @XmlElement(name = "subnet_id")
34 public NeutronIps(String uuid) {
38 public String getIpAddress() {
42 public void setIpAddress(String ipAddress) {
43 this.ipAddress = ipAddress;
46 public String getSubnetUUID() {
50 public void setSubnetUUID(String subnetUUID) {
51 this.subnetUUID = subnetUUID;
55 public String toString() {
56 return "NeutronIps{" + "ipAddress='" + ipAddress + '\'' + ", subnetUUID='" + subnetUUID + '\'' + "}";