8c18a59e6870c9815fc783440d59d7a49c57a1c3
[so.git] / adapters / mso-openstack-adapters / src / main / java / org / onap / so / adapters / network / async / client / MsoExceptionCategory.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 msoExceptionCategory.
29  * 
30  * <p>The following schema fragment specifies the expected content contained within this class.
31  * <p>
32  * <pre>
33  * &lt;simpleType name="msoExceptionCategory">
34  *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
35  *     &lt;enumeration value="OPENSTACK"/>
36  *     &lt;enumeration value="IO"/>
37  *     &lt;enumeration value="INTERNAL"/>
38  *     &lt;enumeration value="USERDATA"/>
39  *   &lt;/restriction>
40  * &lt;/simpleType>
41  * </pre>
42  * 
43  */
44 @XmlType(name = "msoExceptionCategory")
45 @XmlEnum
46 public enum MsoExceptionCategory {
47
48     OPENSTACK,
49     IO,
50     INTERNAL,
51     USERDATA;
52
53     public String value() {
54         return name();
55     }
56
57     public static MsoExceptionCategory fromValue(String v) {
58         return valueOf(v);
59     }
60
61 }