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