ef151b1a6f9a37baa5c3076b0ef4c095747a72c8
[appc.git] / appc-dispatcher / appc-dispatcher-common / domain-model-lib / src / main / java / org / onap / appc / domainmodel / lcm / Flags.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 package org.onap.appc.domainmodel.lcm;
26
27
28 public class Flags {
29
30     private boolean force;
31     private int ttl;
32     private Mode mode;
33
34     public boolean isForce() {
35         return force;
36     }
37
38     public void setForce(boolean force) {
39         this.force = force;
40     }
41
42     public int getTtl() {
43         return ttl;
44     }
45
46     public void setTtl(int ttl) {
47         this.ttl = ttl;
48     }
49
50     public Mode getMode() {
51         return mode;
52     }
53
54     public void setMode(Mode mode) {
55         this.mode = mode;
56     }
57
58     public void setMode(String mode) {
59         this.mode = Mode.valueOf(mode);
60     }
61
62     @Override
63     public String toString() {
64         return "Flags{" +
65                 "force=" + force +
66                 ", ttl=" + ttl +
67                 ", mode=" + mode +
68                 '}';
69     }
70
71     public enum Mode {
72         EXCLUSIVE,
73         NORMAL
74     }
75 }