All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.neutron.spi.NeutronTapService Maven / Gradle / Ivy

There is a newer version: 0.16.4
Show newest version
/*
 * Copyright (c) 2017 Intel Corporation.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

package org.opendaylight.neutron.spi;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
public final class NeutronTapService extends NeutronBaseAttributes {
    private static final long serialVersionUID = 1L;

    @XmlElement(name = "port_id")
    String tapServicePortID;

    public String getTapServicePortID() {
        return tapServicePortID;
    }

    public void setTapServicePortID(String port) {
        this.tapServicePortID = port;
    }

    @Override
    protected boolean extractField(String field, NeutronTapService ans) {
        switch (field) {
            case "port_id":
                ans.setTapServicePortID(this.getTapServicePortID());
                break;
            default:
                return super.extractField(field, ans);
        }
        return true;
    }

    @Override
    public String toString() {
        return "NeutronTapService[" + "tapServiceUUID='" + uuid + '\'' + ", tapServiceTenantID='"
                + getTenantID() + '\'' + ", tapServiceName='" + name + '\'' + ", tapServicePortID='"
                + tapServicePortID + '\'' + ']';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy