2 * Copyright (c) 2017 Intel Corporation. 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 javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlElement;
14 import javax.xml.bind.annotation.XmlRootElement;
17 @XmlAccessorType(XmlAccessType.NONE)
18 public final class NeutronTapService extends NeutronBaseAttributes<NeutronTapService> {
19 private static final long serialVersionUID = 1L;
21 @XmlElement(name = "port_id")
22 String tapServicePortID;
24 public String getTapServicePortID() {
25 return tapServicePortID;
28 public void setTapServicePortID(String port) {
29 this.tapServicePortID = port;
33 protected boolean extractField(String field, NeutronTapService ans) {
36 ans.setTapServicePortID(this.getTapServicePortID());
39 return super.extractField(field, ans);
45 public String toString() {
46 return "NeutronTapService[" + "tapServiceUUID='" + uuid + '\'' + ", tapServiceTenantID='"
47 + tenantID + '\'' + ", tapServiceName='" + name + '\'' + ", tapServicePortID='"
48 + tapServicePortID + '\'' + ']';