2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.policy.so;
23 import com.google.gson.annotations.SerializedName;
25 import java.io.Serializable;
26 import java.time.LocalDateTime;
27 import java.util.UUID;
29 public class SoRequest implements Serializable {
31 private static final long serialVersionUID = -3283942659786236032L;
33 @SerializedName("requestId")
34 private UUID requestId;
36 @SerializedName("startTime")
37 private String startTime;
39 @SerializedName("finishTime")
40 private LocalDateTime finishTime;
42 @SerializedName("requestScope")
43 private String requestScope;
45 @SerializedName("requestType")
46 private String requestType;
48 @SerializedName("requestDetails")
49 private SoRequestDetails requestDetails;
51 @SerializedName("requestStatus")
52 private SoRequestStatus requestStatus;
54 private transient SoOperationType operationType;
60 public LocalDateTime getFinishTime() {
64 public SoRequestDetails getRequestDetails() {
65 return requestDetails;
68 public UUID getRequestId() {
72 public String getRequestScope() {
76 public SoRequestStatus getRequestStatus() {
80 public String getRequestType() {
84 public String getStartTime() {
88 public void setFinishTime(LocalDateTime finishTime) {
89 this.finishTime = finishTime;
92 public void setRequestDetails(SoRequestDetails requestDetails) {
93 this.requestDetails = requestDetails;
96 public void setRequestId(UUID requestId) {
97 this.requestId = requestId;
100 public void setRequestScope(String requestScope) {
101 this.requestScope = requestScope;
104 public void setRequestStatus(SoRequestStatus requestStatus) {
105 this.requestStatus = requestStatus;
108 public void setRequestType(String requestType) {
109 this.requestType = requestType;
112 public void setStartTime(String startTime) {
113 this.startTime = startTime;
116 public SoOperationType getOperationType() {
117 return operationType;
120 public void setOperationType(SoOperationType operationType) {
121 this.operationType = operationType;