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.io.Serializable;
12 import java.math.BigInteger;
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)
20 public final class NeutronQosBandwidthLimitRule extends NeutronObject<NeutronQosBandwidthLimitRule>
21 implements Serializable, INeutronObject<NeutronQosBandwidthLimitRule> {
22 private static final long serialVersionUID = 1L;
24 @XmlElement(name = "max_kbps")
27 @XmlElement(name = "max_burst_kbps")
28 BigInteger maxBurstKbps;
30 public BigInteger getMaxKbps() {
34 public void setMaxKbps(BigInteger maxKbps) {
35 this.maxKbps = maxKbps;
38 public BigInteger getMaxBurstKbps() {
42 public void setMaxBurstKbps(BigInteger maxBurstKbps) {
43 this.maxBurstKbps = maxBurstKbps;
47 public boolean extractField(String field, NeutronQosBandwidthLimitRule ans) {
50 ans.setMaxKbps(this.getMaxKbps());
52 case "max_burst_kbps":
53 ans.setMaxBurstKbps(this.getMaxBurstKbps());
56 return super.extractField(field, ans);
62 public String toString() {
63 return "qosBandwidthLimitRules{" + "qosBandwidthLimitRuleUUID='" + uuid + '\''
64 + ", qosBandwidthLimitRuleTenantID='" + tenantID + '\'' + ", qosBandwidthLimitRuleMaxValue='" + maxKbps
65 + '\'' + ", qosBandwidthLimitRuleMaxBurst='" + maxBurstKbps