2 * ============LICENSE_START=======================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 package org.onap.policy.so;
24 import com.google.gson.annotations.SerializedName;
26 import java.io.Serializable;
27 import java.time.LocalDateTime;
28 import java.util.UUID;
30 public class SoRequest implements Serializable {
32 private static final long serialVersionUID = -3283942659786236032L;
34 @SerializedName("requestId")
35 private UUID requestId;
37 @SerializedName("startTime")
38 private String startTime;
40 @SerializedName("finishTime")
41 private LocalDateTime finishTime;
43 @SerializedName("requestScope")
44 private String requestScope;
46 @SerializedName("requestType")
47 private String requestType;
49 @SerializedName("requestDetails")
50 private SoRequestDetails requestDetails;
52 @SerializedName("requestStatus")
53 private SoRequestStatus requestStatus;
55 private transient SoOperationType operationType;
61 public LocalDateTime getFinishTime() {
65 public SoRequestDetails getRequestDetails() {
66 return requestDetails;
69 public UUID getRequestId() {
73 public String getRequestScope() {
77 public SoRequestStatus getRequestStatus() {
81 public String getRequestType() {
85 public String getStartTime() {
89 public void setFinishTime(LocalDateTime finishTime) {
90 this.finishTime = finishTime;
93 public void setRequestDetails(SoRequestDetails requestDetails) {
94 this.requestDetails = requestDetails;
97 public void setRequestId(UUID requestId) {
98 this.requestId = requestId;
101 public void setRequestScope(String requestScope) {
102 this.requestScope = requestScope;
105 public void setRequestStatus(SoRequestStatus requestStatus) {
106 this.requestStatus = requestStatus;
109 public void setRequestType(String requestType) {
110 this.requestType = requestType;
113 public void setStartTime(String startTime) {
114 this.startTime = startTime;
117 public SoOperationType getOperationType() {
118 return operationType;
121 public void setOperationType(SoOperationType operationType) {
122 this.operationType = operationType;