Clean up license text in appc-sequence-generator
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / main / java / org / onap / appc / seqgen / objects / Transaction.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.seqgen.objects;
26
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
30
31 import java.util.LinkedList;
32 import java.util.List;
33 import java.util.Map;
34
35 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
36 @JsonIgnoreProperties(ignoreUnknown = true)
37 public class Transaction {
38
39     @JsonProperty("transactionId")
40     private Integer transactionId;
41
42     @JsonProperty("action")
43     private String action;
44
45     @JsonProperty("action-level")
46     private String actionLevel;
47
48     @JsonProperty("action-identifier")
49     private ActionIdentifier actionIdentifier;
50
51     @JsonProperty("payload")
52     private String payload;
53
54     @JsonProperty("parameters")
55     private Map<String,String> parameters;
56
57     @JsonProperty("precheck-operator")
58     private String preCheckOperator;
59
60
61     @JsonProperty("precheck-options")
62     private List<PreCheckOption> precheckOptions;
63
64     @JsonProperty("responses")
65     private List<Response> responses;
66
67     public Transaction(){
68         responses = new LinkedList<>();
69     }
70
71     public Integer getTransactionId() {
72         return transactionId;
73     }
74
75     public void setTransactionId(Integer transactionId) {
76         this.transactionId = transactionId;
77     }
78
79     public String getAction() {
80         return action;
81     }
82
83     public void setAction(String action) {
84         this.action = action;
85     }
86
87     public String getActionLevel() {
88         return actionLevel;
89     }
90
91     public void setActionLevel(String actionLevel) {
92         this.actionLevel = actionLevel;
93     }
94
95     public ActionIdentifier getActionIdentifier() {
96         return actionIdentifier;
97     }
98
99     public void setActionIdentifier(ActionIdentifier actionIdentifier) {
100         this.actionIdentifier = actionIdentifier;
101     }
102
103     public String getPayload() {
104         return payload;
105     }
106
107     public void setPayload(String payload) {
108         this.payload = payload;
109     }
110
111     public Map<String, String> getParameters() {
112         return parameters;
113     }
114
115     public void setParameters(Map<String, String> parameters) {
116         this.parameters = parameters;
117     }
118
119     public List<Response> getResponses() {
120         return responses;
121     }
122
123     public void setResponses(List<Response> responses) {
124         this.responses = responses;
125     }
126
127     public void addResponse(Response response){
128         this.responses.add(response);
129     }
130
131     public String getPreCheckOperator() {
132         return preCheckOperator;
133     }
134
135     public void setPreCheckOperator(String preCheckOperator) {
136         this.preCheckOperator = preCheckOperator;
137     }
138
139     public List<PreCheckOption> getPrecheckOptions() {
140         return precheckOptions;
141     }
142
143     public void setPrecheckOptions(List<PreCheckOption> precheckOptions) {
144         this.precheckOptions = precheckOptions;
145     }
146 }