2 * Copyright (c) 2015 Intel Corporation All rights reserved.
3 * Copyright (c) 2015 Isaku Yamahata All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.neutron.spi;
12 import java.io.Serializable;
14 import javax.xml.bind.annotation.XmlAccessType;
15 import javax.xml.bind.annotation.XmlAccessorType;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlRootElement;
19 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
22 @XmlAccessorType(XmlAccessType.NONE)
23 public class NeutronObject extends Neutron_ID implements Serializable, INeutronObject {
24 private static final long serialVersionUID = 1L;
26 @XmlElement (name = "tenant_id")
29 public NeutronObject() {
34 public String getTenantID() {
39 public void setTenantID(String tenantID) {
40 this.tenantID = tenantID;
44 public void setTenantID(Uuid tenantID) {
45 this.tenantID = tenantID.getValue().replace("-", "");
49 public String toString() {
50 return "NeutronObject [id=" + uuid + ", tenantID=" + tenantID + "]";