1 /*
2 * This file is part of Waarp Project (named also Waarp or GG).
3 *
4 * Copyright (c) 2019, Waarp SAS, and individual contributors by the @author
5 * tags. See the COPYRIGHT.txt in the distribution for a full listing of
6 * individual contributors.
7 *
8 * All Waarp Project is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * Waarp is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * Waarp . If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 /**
22 * Autogenerated by Thrift Compiler (0.9.0)
23 * <p>
24 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
25 */
26 package org.waarp.thrift.r66;
27
28 import org.apache.thrift.TEnum;
29
30 public enum Action implements TEnum {
31 Exist(1), Cancel(2), Stop(3), Restart(4), Detail(10), List(11), Mlsx(12);
32
33 private final int value;
34
35 Action(final int value) {
36 this.value = value;
37 }
38
39 /**
40 * Get the integer value of this enum value, as defined in the Thrift IDL.
41 */
42 @Override
43 public final int getValue() {
44 return value;
45 }
46
47 /**
48 * Find a the enum type by its integer value, as defined in the Thrift IDL.
49 *
50 * @return null if the value is not found.
51 */
52 public static Action findByValue(final int value) {
53 switch (value) {
54 case 1:
55 return Exist;
56 case 2:
57 return Cancel;
58 case 3:
59 return Stop;
60 case 4:
61 return Restart;
62 case 10:
63 return Detail;
64 case 11:
65 return List;
66 case 12:
67 return Mlsx;
68 default:
69 return null;
70 }
71 }
72 }