Update license header in appc-dispatcher files
[appc.git] / appc-dispatcher / appc-dispatcher-common / domain-model-lib / src / main / java / org / onap / appc / domainmodel / lcm / TransactionRecord.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 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  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.appc.domainmodel.lcm;
25
26 import java.time.Instant;
27
28
29 public class TransactionRecord {
30
31     private String transactionId;
32     private Instant originTimestamp;
33     private String requestId;
34     private String subRequestId;
35     private String originatorId;
36     private Instant startTime;
37     private Instant endTime;
38     private String targetId;
39     private String targetType;
40     private VNFOperation operation;
41     private int resultCode;
42     private String description;
43     private RequestStatus requestState;
44     private String serviceInstanceId;
45     private String vnfcName;
46     private String vserverId;
47     private String vfModuleId;
48     private Flags.Mode mode;
49
50     public Instant getOriginTimestamp() {
51         return originTimestamp;
52     }
53
54     public void setOriginTimestamp(Instant originTimestamp) {
55         this.originTimestamp = originTimestamp;
56     }
57
58     public Instant getStartTime() {
59         return startTime;
60     }
61
62     public void setStartTime(Instant startTime) {
63         this.startTime = startTime;
64     }
65
66     public Instant getEndTime() {
67         return endTime;
68     }
69
70     public void setEndTime(Instant endTime) {
71         this.endTime = endTime;
72     }
73
74     public String getMode() {
75         return mode.name();
76     }
77
78     public void setMode(Flags.Mode mode) {
79         this.mode=mode;
80     }
81
82     public String getTransactionId() {
83         return transactionId;
84     }
85
86     public void setTransactionId(String transactionId) {
87         this.transactionId = transactionId;
88     }
89
90     public String getServiceInstanceId() {
91         return serviceInstanceId;
92     }
93
94     public void setServiceInstanceId(String serviceInstanceId) {
95         this.serviceInstanceId = serviceInstanceId;
96     }
97
98     public String getVnfcName() {
99         return vnfcName;
100     }
101
102     public void setVnfcName(String vnfcName) {
103         this.vnfcName = vnfcName;
104     }
105
106     public String getVserverId() {
107         return vserverId;
108     }
109
110     public void setVserverId(String vserverId) {
111         this.vserverId = vserverId;
112     }
113
114     public String getVfModuleId() {
115         return vfModuleId;
116     }
117
118     public void setVfModuleId(String vfModuleId) {
119         this.vfModuleId = vfModuleId;
120     }
121
122     public String getTargetType() {
123         return targetType;
124     }
125
126     public void setTargetType(String targetType) {
127         this.targetType = targetType;
128     }
129
130     public VNFOperation getOperation() {
131         return operation;
132     }
133
134     public void setOperation(VNFOperation operation) {
135         this.operation = operation;
136     }
137
138     public int getResultCode() {
139         return resultCode;
140     }
141
142     public void setResultCode(int resultCode) {
143         this.resultCode = resultCode;
144     }
145
146     public String getDescription() {
147         return description;
148     }
149
150     public void setDescription(String description) {
151         this.description = description;
152     }
153
154     public String getRequestState() {
155         return requestState.name();
156     }
157
158     public void setRequestState(RequestStatus requestState) {
159         this.requestState = requestState;
160     }
161
162     public String getOriginatorId() {
163         return originatorId;
164     }
165
166     public void setOriginatorId(String originatorId) {
167         this.originatorId = originatorId;
168     }
169
170     public String getRequestId() {
171         return requestId;
172     }
173
174     public void setRequestId(String requestId) {
175         this.requestId = requestId;
176     }
177
178     public String getSubRequestId() {
179         return subRequestId;
180     }
181
182     public void setSubRequestId(String subRequestId) {
183         this.subRequestId = subRequestId;
184     }
185
186     public String getTargetId() {
187         return targetId;
188     }
189
190     public void setTargetId(String targetId) {
191         this.targetId = targetId;
192     }
193
194     @Override
195     public String toString() {
196         return "TransactionRecord{" +
197                 "transactionId='" + transactionId + '\'' +
198                 ", originTimestamp=" + originTimestamp +
199                 ", requestId='" + requestId + '\'' +
200                 ", subRequestId='" + subRequestId + '\'' +
201                 ", originatorId='" + originatorId + '\'' +
202                 ", startTime=" + startTime +
203                 ", endTime=" + endTime +
204                 ", targetId='" + targetId + '\'' +
205                 ", targetType='" + targetType + '\'' +
206                 ", operation='" + operation + '\'' +
207                 ", resultCode='" + resultCode + '\'' +
208                 ", description='" + description + '\'' +
209                 ", requestState='" + requestState + '\'' +
210                 ", serviceInstanceId='" + serviceInstanceId + '\'' +
211                 ", vnfcName='" + vnfcName + '\'' +
212                 ", vserverId='" + vserverId + '\'' +
213                 ", vfModuleId='" + vfModuleId + '\'' +
214                 '}';
215     }
216 }