34d72a9a61869250bc38c16c23b28db8013d0fc7
[appc.git] / appc-client / client-kit / src / main / java / org / onap / appc / client / lcm / model / LcmActionStatus.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 /**
26  * NOTE: This file is auto-generated and should not be changed manually.
27  */
28 package org.onap.appc.client.lcm.model;
29
30 import com.fasterxml.jackson.annotation.JsonCreator;
31
32 /**
33 * The status of the requested LCM action
34 *
35 */
36 public enum LcmActionStatus {
37
38     IN_PROGRESS("IN_PROGRESS"),
39     SUCCESSFUL("SUCCESSFUL"),
40     FAILED("FAILED"),
41     NOT_FOUND("NOT_FOUND"),
42     ABORTED("ABORTED"),
43     MULTIPLE_REQUESTS_FOUND("MULTIPLE_REQUESTS_FOUND");
44
45     private String value;
46
47     LcmActionStatus(String value) {
48         this.value = value;
49     }
50
51     @Override
52     public String toString() {
53         return String.valueOf(value);
54     }
55
56     @JsonCreator
57     public static LcmActionStatus fromValue(String text) {
58         for (LcmActionStatus var : LcmActionStatus.values()) {
59             if (String.valueOf(var.value).equals(text)) {
60                 return var;
61             }
62         }
63         return null;
64     }
65
66 }