2 * Copyright (c) 2018 Orange
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * API ServiceOrder serviceOrder API designed for ONAP Beijing Release. This API is build from TMF
18 * open API16.5 + applied TMF guideline 3.0
20 * OpenAPI spec version: 0.1.1_inProgress
23 * NOTE: This class is auto generated by the swagger code generator program.
24 * https://github.com/swagger-api/swagger-codegen.git Do not edit the class manually.
26 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
27 * in compliance with the License. You may obtain a copy of the License at
29 * http://www.apache.org/licenses/LICENSE-2.0
31 * Unless required by applicable law or agreed to in writing, software distributed under the License
32 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
33 * or implied. See the License for the specific language governing permissions and limitations under
37 package org.onap.nbi.apis.serviceorder.model;
39 import com.fasterxml.jackson.annotation.JsonCreator;
40 import com.fasterxml.jackson.annotation.JsonValue;
41 import java.util.ArrayList;
42 import java.util.List;
47 public enum StateType {
49 ACKNOWLEDGED("acknowledged"),
57 INPROGRESS("inProgress"),
59 CANCELLED("cancelled"),
61 COMPLETED("completed"),
67 INPROGRESS_TASK_CREATED("inProgressTaskCreated"),
69 INPROGRESS_MODIFY_REQUEST_DELETE_SEND("inProgressModifyRequestDeleteSend"),
71 INPROGRESS_MODIFY_ITEM_TO_CREATE("inProgressModifyItemToCreate"),
73 INPROGRESS_MODIFY_REQUEST_CREATE_SEND("inProgressModifyRequestCreateSend");
77 StateType(String value) {
82 public String toString() {
83 return String.valueOf(value);
87 public static StateType fromValue(String text) {
88 for (StateType b : StateType.values()) {
89 if (String.valueOf(b.value).equals(text)) {
96 public static List<StateType> fromValueSearch(String text) {
97 List<StateType> values = new ArrayList<>();
98 for (StateType b : StateType.values()) {
99 if (String.valueOf(b.value).equals(text)) {
100 if (b.equals(StateType.INPROGRESS)) {
101 values.add(INPROGRESS_TASK_CREATED);
102 values.add(INPROGRESS_MODIFY_REQUEST_DELETE_SEND);
103 values.add(INPROGRESS_MODIFY_ITEM_TO_CREATE);
104 values.add(INPROGRESS_MODIFY_REQUEST_CREATE_SEND);
113 public String value() {
114 if ("inProgressModifyRequestDeleteSend".equalsIgnoreCase(this.value)
115 || "inProgressModifyItemToCreate".equalsIgnoreCase(this.value)
116 || "inProgressTaskCreated".equalsIgnoreCase(this.value)
117 || "inProgressModifyRequestCreateSend".equalsIgnoreCase(this.value)) {
118 return INPROGRESS.value;