Bump drools-apps to 1.7.1-SNAPSHOT
[policy/drools-applications.git] / controlloop / m2 / guard / src / main / java / org / onap / policy / guard / PolicyGuardResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * guard
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.guard;
22
23 import java.util.UUID;
24
25 public class PolicyGuardResponse {
26     private UUID requestId;
27     private String operation;
28     private String result;
29
30     /**
31      * Create an instance.
32      * 
33      * @param result the result
34      * @param req the request Id
35      * @param op the operation
36      */
37     public PolicyGuardResponse(String result, UUID req, String op) {
38         this.result = result;
39         this.requestId = req;
40         this.operation = op;
41     }
42
43     @Override
44     public String toString() {
45         return "PolicyGuardResponse [requestId=" + requestId + ", operation=" + operation + ", result=" + result + "]";
46     }
47
48     public UUID getRequestId() {
49         return requestId;
50     }
51
52     public void setRequestId(UUID requestId) {
53         this.requestId = requestId;
54     }
55
56     public String getResult() {
57         return result;
58     }
59
60     public void setResult(String result) {
61         this.result = result;
62     }
63
64     public String getOperation() {
65         return operation;
66     }
67
68     public void setOperation(String operation) {
69         this.operation = operation;
70     }
71 }