move actors code in drools-applications to policy/models
[policy/models.git] / models-interactions / model-impl / so / src / main / java / org / onap / policy / so / SoRequest.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 import java.util.UUID;
29
30 public class SoRequest implements Serializable {
31
32     private static final long serialVersionUID = -3283942659786236032L;
33
34     @SerializedName("requestId")
35     private UUID requestId;
36
37     @SerializedName("startTime")
38     private String startTime;
39
40     @SerializedName("finishTime")
41     private LocalDateTime finishTime;
42
43     @SerializedName("requestScope")
44     private String requestScope;
45
46     @SerializedName("requestType")
47     private String requestType;
48
49     @SerializedName("requestDetails")
50     private SoRequestDetails requestDetails;
51
52     @SerializedName("requestStatus")
53     private SoRequestStatus requestStatus;
54
55     private transient SoOperationType operationType;
56
57     public SoRequest() {
58         // required by author
59     }
60
61     public LocalDateTime getFinishTime() {
62         return finishTime;
63     }
64
65     public SoRequestDetails getRequestDetails() {
66         return requestDetails;
67     }
68
69     public UUID getRequestId() {
70         return requestId;
71     }
72
73     public String getRequestScope() {
74         return requestScope;
75     }
76
77     public SoRequestStatus getRequestStatus() {
78         return requestStatus;
79     }
80
81     public String getRequestType() {
82         return requestType;
83     }
84
85     public String getStartTime() {
86         return startTime;
87     }
88
89     public void setFinishTime(LocalDateTime finishTime) {
90         this.finishTime = finishTime;
91     }
92
93     public void setRequestDetails(SoRequestDetails requestDetails) {
94         this.requestDetails = requestDetails;
95     }
96
97     public void setRequestId(UUID requestId) {
98         this.requestId = requestId;
99     }
100
101     public void setRequestScope(String requestScope) {
102         this.requestScope = requestScope;
103     }
104
105     public void setRequestStatus(SoRequestStatus requestStatus) {
106         this.requestStatus = requestStatus;
107     }
108
109     public void setRequestType(String requestType) {
110         this.requestType = requestType;
111     }
112
113     public void setStartTime(String startTime) {
114         this.startTime = startTime;
115     }
116
117     public SoOperationType getOperationType() {
118         return operationType;
119     }
120
121     public void setOperationType(SoOperationType operationType) {
122         this.operationType = operationType;
123     }
124 }