Add junit coverage to RequestInfoBuilder class
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / data / ResponseAction.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * =============================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
20  * ============LICENSE_END=========================================================
21  */
22 package org.onap.appc.flow.controller.data;
23
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
26 public class ResponseAction {
27
28     @JsonProperty("wait")
29     private String wait;
30
31     @JsonProperty("retry")
32     private String retry;
33
34     @JsonProperty("jump")
35     private String jump;
36
37     @JsonProperty("ignore")
38     private boolean  ignore;
39
40     @JsonProperty("stop")
41     private boolean stop;
42
43     @JsonProperty("intermediate-message")
44     private boolean intermediateMessage;
45
46     public String getWait() {
47         return wait;
48     }
49
50     public void setWait(String wait) {
51         this.wait = wait;
52     }
53
54     public String getRetry() {
55         return retry;
56     }
57
58     public void setRetry(String retry) {
59         this.retry = retry;
60     }
61
62     public String getJump() {
63         return jump;
64     }
65
66     public void setJump(String jump) {
67         this.jump = jump;
68     }
69
70     public boolean isIgnore() {
71         return ignore;
72     }
73
74     public void setIgnore(boolean ignore) {
75         this.ignore = ignore;
76     }
77
78     public boolean isStop() {
79         return stop;
80     }
81
82     public void setStop(boolean stop) {
83         this.stop = stop;
84     }
85
86
87
88     @Override
89     public String toString() {
90         return "ResponseAction [wait=" + wait + ", retry=" + retry + ", jump=" + jump + ", ignore=" + ignore + ", stop="
91                 + stop + ", intermediateMessage=" + intermediateMessage + "]";
92     }
93
94     public boolean isIntermediateMessage() {
95         return intermediateMessage;
96     }
97
98     public void setIntermediateMessage(boolean intermediateMessage) {
99         this.intermediateMessage = intermediateMessage;
100     }
101
102 }