a596b1b0759172f10835c557fb8b40e134571503
[policy/drools-applications.git] / controlloop / common / model-impl / so / src / main / java / org / onap / policy / so / SoAsyncRequestStatus.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * so
4  * ================================================================================
5  * Copyright (C) 2017-2019 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  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.so;
22
23 import com.google.gson.annotations.SerializedName;
24
25 import java.io.Serializable;
26 import java.time.LocalDateTime;
27
28 public class SoAsyncRequestStatus implements Serializable {
29
30     private static final long serialVersionUID = -3283942659786236032L;
31
32     @SerializedName("correlator")
33     private String correlator;
34
35     @SerializedName("requestId")
36     private String requestId;
37
38     @SerializedName("instanceReferences")
39     private SoInstanceReferences instanceReferences;
40
41     @SerializedName("startTime")
42     private LocalDateTime startTime;
43
44     @SerializedName("finishTime")
45     private LocalDateTime finishTime;
46
47     @SerializedName("requestScope")
48     private String requestScope;
49
50     @SerializedName("requestType")
51     private String requestType;
52
53     @SerializedName("requestStatus")
54     private SoRequestStatus requestStatus;
55
56     public SoAsyncRequestStatus() {
57         // required by author
58     }
59
60     public String getCorrelator() {
61         return correlator;
62     }
63
64
65     public LocalDateTime getFinishTime() {
66         return finishTime;
67     }
68
69     public SoInstanceReferences getInstanceReferences() {
70         return instanceReferences;
71     }
72
73     public String getRequestId() {
74         return requestId;
75     }
76
77     public String getRequestScope() {
78         return requestScope;
79     }
80
81     public SoRequestStatus getRequestStatus() {
82         return requestStatus;
83     }
84
85     public String getRequestType() {
86         return requestType;
87     }
88
89     public LocalDateTime getStartTime() {
90         return startTime;
91     }
92
93     public void setCorrelator(String correlator) {
94         this.correlator = correlator;
95     }
96
97     public void setFinishTime(LocalDateTime finishTime) {
98         this.finishTime = finishTime;
99     }
100
101     public void setInstanceReferences(SoInstanceReferences instanceReferences) {
102         this.instanceReferences = instanceReferences;
103     }
104
105     public void setRequestId(String requestId) {
106         this.requestId = requestId;
107     }
108
109     public void setRequestScope(String requestScope) {
110         this.requestScope = requestScope;
111     }
112
113     public void setRequestStatus(SoRequestStatus requestStatus) {
114         this.requestStatus = requestStatus;
115     }
116
117     public void setRequestType(String requestType) {
118         this.requestType = requestType;
119     }
120
121     public void setStartTime(LocalDateTime startTime) {
122         this.startTime = startTime;
123     }
124
125 }