Merge "Bug 4354 - neutron tenant_id doens't contain '-'(dash)"
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / Neutron_ID.java
1 /*
2  * Copyright (c) 2015 IBM Corporation and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.neutron.spi;
10
11 import java.io.Serializable;
12
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;
17
18
19 @XmlRootElement
20 @XmlAccessorType(XmlAccessType.NONE)
21 public class Neutron_ID implements Serializable {
22     private static final long serialVersionUID = 1L;
23
24     // See OpenStack Network API v2.0 Reference for description of
25     // annotated attributes
26
27     @XmlElement(name = "id")
28     String uuid;
29
30     public Neutron_ID() { }
31
32     public Neutron_ID(String uuid) {
33         this.uuid = uuid;
34     }
35
36     public String getID() {
37         return uuid;
38     }
39
40     public void setID(String uuid) {
41         this.uuid = uuid;
42     }
43
44     @Override
45     public String toString() {
46         return "Neutron_ID{" + "id='" + uuid + '\'' + "}";
47     }
48 }