2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 Wipro Limited Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
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.controlloop;
24 import com.google.gson.annotations.SerializedName;
26 import java.io.Serializable;
27 import java.util.UUID;
29 public class ControlLoopResponse implements Serializable {
31 private static final long serialVersionUID = 2391252138583119195L;
33 @SerializedName("closedLoopControlName")
34 private String closedLoopControlName;
36 @SerializedName("version")
37 private String version = "1.0.0";
39 @SerializedName("requestID")
40 private UUID requestId;
42 @SerializedName("target")
43 private String target;
45 @SerializedName("from")
48 @SerializedName("policyName")
49 private String policyName;
51 @SerializedName("policyVersion")
52 private String policyVersion;
54 @SerializedName("payload")
55 private String payload;
57 public ControlLoopResponse() {
62 * Construct an instace from an existing instance.
65 * the existing instance
67 public ControlLoopResponse(ControlLoopResponse response) {
68 if (response == null) {
71 this.closedLoopControlName = response.closedLoopControlName;
72 this.requestId = response.requestId;
73 this.target = response.target;
74 this.from = response.from;
75 this.policyName = response.policyName;
76 this.policyVersion = response.policyVersion;
77 this.payload = response.payload;
80 public String getClosedLoopControlName() {
81 return closedLoopControlName;
84 public void setClosedLoopControlName(String closedLoopControlName) {
85 this.closedLoopControlName = closedLoopControlName;
88 public String getVersion() {
92 public void setVersion(String version) {
93 this.version = version;
96 public UUID getRequestId() {
100 public void setRequestId(UUID requestId) {
101 this.requestId = requestId;
104 public String getTarget() {
108 public void setTarget(String target) {
109 this.target = target;
112 public String getFrom() {
116 public void setFrom(String from) {
120 public String getPolicyName() {
124 public void setPolicyName(String policyName) {
125 this.policyName = policyName;
128 public String getPolicyVersion() {
129 return policyVersion;
132 public void setPolicyVersion(String policyVersion) {
133 this.policyVersion = policyVersion;
136 public String getPayload() {
140 public void setPayload(String payload) {
141 this.payload = payload;