cd4922dbd67a265f1a6f1c74f3737d84a80af900
[policy/models.git] / models-interactions / 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  * Modifications Copyright (C) 2019 Nordix Foundation.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.policy.so;
23
24 import com.google.gson.annotations.SerializedName;
25
26 import java.io.Serializable;
27 import java.time.LocalDateTime;
28
29 public class SoAsyncRequestStatus implements Serializable {
30
31     private static final long serialVersionUID = -3283942659786236032L;
32
33     @SerializedName("correlator")
34     private String correlator;
35
36     @SerializedName("requestId")
37     private String requestId;
38
39     @SerializedName("instanceReferences")
40     private SoInstanceReferences instanceReferences;
41
42     @SerializedName("startTime")
43     private LocalDateTime startTime;
44
45     @SerializedName("finishTime")
46     private LocalDateTime finishTime;
47
48     @SerializedName("requestScope")
49     private String requestScope;
50
51     @SerializedName("requestType")
52     private String requestType;
53
54     @SerializedName("requestStatus")
55     private SoRequestStatus requestStatus;
56
57     public SoAsyncRequestStatus() {
58         // required by author
59     }
60
61     public String getCorrelator() {
62         return correlator;
63     }
64
65
66     public LocalDateTime getFinishTime() {
67         return finishTime;
68     }
69
70     public SoInstanceReferences getInstanceReferences() {
71         return instanceReferences;
72     }
73
74     public String getRequestId() {
75         return requestId;
76     }
77
78     public String getRequestScope() {
79         return requestScope;
80     }
81
82     public SoRequestStatus getRequestStatus() {
83         return requestStatus;
84     }
85
86     public String getRequestType() {
87         return requestType;
88     }
89
90     public LocalDateTime getStartTime() {
91         return startTime;
92     }
93
94     public void setCorrelator(String correlator) {
95         this.correlator = correlator;
96     }
97
98     public void setFinishTime(LocalDateTime finishTime) {
99         this.finishTime = finishTime;
100     }
101
102     public void setInstanceReferences(SoInstanceReferences instanceReferences) {
103         this.instanceReferences = instanceReferences;
104     }
105
106     public void setRequestId(String requestId) {
107         this.requestId = requestId;
108     }
109
110     public void setRequestScope(String requestScope) {
111         this.requestScope = requestScope;
112     }
113
114     public void setRequestStatus(SoRequestStatus requestStatus) {
115         this.requestStatus = requestStatus;
116     }
117
118     public void setRequestType(String requestType) {
119         this.requestType = requestType;
120     }
121
122     public void setStartTime(LocalDateTime startTime) {
123         this.startTime = startTime;
124     }
125
126 }