2 * Copyright (c) 2016, 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 java.math.BigInteger;
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 NeutronQosBandwidthLimitRule extends NeutronObject<NeutronQosBandwidthLimitRule> {
20 private static final long serialVersionUID = 1L;
22 @XmlElement(name = "max_kbps")
25 @XmlElement(name = "max_burst_kbps")
26 BigInteger maxBurstKbps;
28 public BigInteger getMaxKbps() {
32 public void setMaxKbps(BigInteger maxKbps) {
33 this.maxKbps = maxKbps;
36 public BigInteger getMaxBurstKbps() {
40 public void setMaxBurstKbps(BigInteger maxBurstKbps) {
41 this.maxBurstKbps = maxBurstKbps;
45 public boolean extractField(String field, NeutronQosBandwidthLimitRule ans) {
48 ans.setMaxKbps(this.getMaxKbps());
50 case "max_burst_kbps":
51 ans.setMaxBurstKbps(this.getMaxBurstKbps());
54 return super.extractField(field, ans);
60 public String toString() {
61 return "qosBandwidthLimitRules{" + "qosBandwidthLimitRuleUUID='" + uuid + '\''
62 + ", qosBandwidthLimitRuleTenantID='" + tenantID + '\'' + ", qosBandwidthLimitRuleMaxValue='" + maxKbps
63 + '\'' + ", qosBandwidthLimitRuleMaxBurst='" + maxBurstKbps