982f214bd8a6287f30782097269769ee20cf15da
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / network / async / client / NetworkStatus.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.adapters.network.async.client;
22
23 import javax.xml.bind.annotation.XmlEnum;
24 import javax.xml.bind.annotation.XmlType;
25
26
27 /**
28  * <p>Java class for networkStatus.
29  * 
30  * <p>The following schema fragment specifies the expected content contained within this class.
31  * <p>
32  * <pre>
33  * &lt;simpleType name="networkStatus">
34  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
35  *     &lt;enumeration value="NOTFOUND"/>
36  *     &lt;enumeration value="ACTIVE"/>
37  *     &lt;enumeration value="DOWN"/>
38  *     &lt;enumeration value="BUILD"/>
39  *     &lt;enumeration value="ERROR"/>
40  *     &lt;enumeration value="UNKNOWN"/>
41  *   &lt;/restriction>
42  * &lt;/simpleType>
43  * </pre>
44  * 
45  */
46 @XmlType(name = "networkStatus")
47 @XmlEnum
48 public enum NetworkStatus {
49
50     NOTFOUND,
51     ACTIVE,
52     DOWN,
53     BUILD,
54     ERROR,
55     UNKNOWN;
56
57     public String value() {
58         return name();
59     }
60
61     public static NetworkStatus fromValue(String v) {
62         return valueOf(v);
63     }
64
65 }