2 * Copyright IBM Corporation, 2013. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.controller.networkconfig.neutron.northbound;
\r
11 import java.util.List;
\r
13 import javax.xml.bind.annotation.XmlAccessType;
\r
14 import javax.xml.bind.annotation.XmlAccessorType;
\r
15 import javax.xml.bind.annotation.XmlElement;
\r
16 import javax.xml.bind.annotation.XmlRootElement;
\r
18 import org.opendaylight.controller.networkconfig.neutron.NeutronFloatingIP;
\r
21 @XmlAccessorType(XmlAccessType.NONE)
\r
22 public class NeutronFloatingIPRequest {
\r
23 // See OpenStack Network API v2.0 Reference for description of
\r
24 // annotated attributes
\r
26 @XmlElement(name="floatingip")
\r
27 NeutronFloatingIP singletonFloatingIP;
\r
29 @XmlElement(name="floatingips")
\r
30 List<NeutronFloatingIP> bulkRequest;
\r
32 NeutronFloatingIPRequest() {
\r
35 NeutronFloatingIPRequest(List<NeutronFloatingIP> bulk) {
\r
37 singletonFloatingIP = null;
\r
40 NeutronFloatingIPRequest(NeutronFloatingIP singleton) {
\r
42 singletonFloatingIP = singleton;
\r
45 public NeutronFloatingIP getSingleton() {
\r
46 return singletonFloatingIP;
\r
49 public boolean isSingleton() {
\r
50 return (singletonFloatingIP != null);
\r