2 * Copyright (c) 2016 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 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 NeutronQosDscpMarkingRule extends NeutronObject<NeutronQosDscpMarkingRule>
20 implements Serializable, INeutronObject<NeutronQosDscpMarkingRule> {
21 private static final long serialVersionUID = 1L;
23 @XmlElement(name = "dscp_mark")
26 public Short getDscpMark() {
30 public void setDscpMark(Short dscpMark) {
31 this.dscpMark = dscpMark;
35 protected boolean extractField(String field, NeutronQosDscpMarkingRule ans) {
38 ans.setDscpMark(this.getDscpMark());
41 return super.extractField(field, ans);
47 public String toString() {
48 return "qosDscpMarkingRules{" + "qosDscpMarkingRuleUUID='" + uuid + '\'' + ", qosDscpMarkingRuleTenantID='"
49 + tenantID + '\'' + ", qosDscpMarkingRuleDscpMark='" + dscpMark