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 java.util.List;
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;
19 @XmlAccessorType(XmlAccessType.NONE)
21 public class NeutronRouter_NetworkReference implements Serializable {
22 private static final long serialVersionUID = 1L;
24 // See OpenStack Network API v2.0 Reference for description of
25 // annotated attributes
27 @XmlElement(name = "network_id")
30 @XmlElement(name = "enable_snat")
33 @XmlElement(name = "external_fixed_ips")
34 List<Neutron_IPs> externalFixedIPs;
36 public NeutronRouter_NetworkReference() {
39 public String getNetworkID() {
43 public void setNetworkID(String networkID) {
44 this.networkID = networkID;
47 public Boolean getEnableSNAT() {
51 public void setEnableSNAT(Boolean enableSNAT) {
52 this.enableSNAT = enableSNAT;
55 public List<Neutron_IPs> getExternalFixedIPs() {
56 return externalFixedIPs;
59 public void setExternalFixedIPs(List<Neutron_IPs> externalFixedIPs) {
60 this.externalFixedIPs = externalFixedIPs;
64 public String toString() {
65 return "NeutronRouterNetworkReference [networkID=" + networkID +
66 " enableSNAT=" + enableSNAT +
67 " externalFixedIPs=" + externalFixedIPs + "]";