2 * Copyright (c) 2015 IBM Corporation and others. 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 NeutronMeteringLabel extends NeutronBaseAttributes<NeutronMeteringLabel> {
19 private static final long serialVersionUID = 1L;
21 @XmlElement(defaultValue = "false", name = "shared")
28 public Boolean getMeteringLabelShared() {
32 public void setMeteringLabelShared(Boolean value) {
39 public NeutronMeteringLabel() {
43 public String toString() {
44 return "NeutronMeteringLabel [id=" + uuid + ", name=" + name + ", tenant_id=" + tenantID
45 + ", shared=" + shared + "]";
49 protected boolean extractField(String field, NeutronMeteringLabel ans) {
52 ans.setMeteringLabelShared(this.getMeteringLabelShared());
55 return super.extractField(field, ans);