01d2652dd5367c5ee96355372656850554154cf2
[appc.git] / appc-client / client-kit / src / main / java / org / openecomp / appc / client / lcm / model / 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 /**
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.JsonProperty;
31
32 /**
33  * Flags are generic flags that apply to any and all commands, all are optional
34  */
35 @javax.annotation.Generated(
36     value = {"templates/client-kit/open-api-to-java.ftl"},
37     date = "2017-05-04T20:09:01.498+05:30",
38     comments = "Auto-generated from Open API specification")
39 public class Flags {
40
41     public enum Mode {
42         EXCLUSIVE,
43         NORMAL;
44     }
45
46     @JsonProperty("mode")
47     private Mode mode;
48
49     public enum Force {
50         TRUE,
51         FALSE;
52     }
53
54     @JsonProperty("force")
55     private Force force;
56
57     @JsonProperty("ttl")
58     private int ttl;
59
60     /**
61      * EXCLUSIVE (accept no queued requests on this VNF while processing) or NORMAL (queue other requests until complete)
62      */
63     public Mode getMode() {
64         return mode;
65     }
66
67     /**
68      * EXCLUSIVE (accept no queued requests on this VNF while processing) or NORMAL (queue other requests until complete)
69      */
70     public void setMode(Mode mode) {
71         this.mode = mode;
72     }
73
74     /**
75      * TRUE/FALSE - Execute action even if target is in unstable (i.e. locked, transiting, etc.) state
76      */
77     public Force getForce() {
78         return force;
79     }
80
81     /**
82      * TRUE/FALSE - Execute action even if target is in unstable (i.e. locked, transiting, etc.) state
83      */
84     public void setForce(Force force) {
85         this.force = force;
86     }
87
88     /**
89      * The timeout value (expressed in seconds) for action execution, between action being received by APPC and action initiation
90      */
91     public int getTtl() {
92         return ttl;
93     }
94
95     /**
96      * The timeout value (expressed in seconds) for action execution, between action being received by APPC and action initiation
97      */
98     public void setTtl(int ttl) {
99         this.ttl = ttl;
100     }
101
102 }