[POLICY-73] replace openecomp for policy-engine
[policy/engine.git] / ONAP-PDP-REST / src / main / java / org / onap / policy / pdp / rest / notifications / Updated.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP-PDP-REST
4  * ================================================================================
5  * Copyright (C) 2017 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.pdp.rest.notifications;
22
23 import java.util.HashMap;
24
25 import org.onap.policy.api.LoadedPolicy;
26 import org.onap.policy.api.UpdateType;
27
28 /**
29  * Updated is the POJO which consists of any new or Updated Policy information.
30  * It must hold the Policy Name, version Number, Matches. 
31  * 
32  * @version 0.2
33  *
34  */
35 public class Updated implements LoadedPolicy{
36         private String policyName = null;
37         private String versionNo = null;
38         private HashMap<String,String> matches = null;
39         private UpdateType updateType = null;
40         
41         public String getPolicyName() {
42                 return policyName;
43         }
44         
45         public void setPolicyName(String policyName) {
46                 this.policyName = policyName;
47         }
48         
49         public String getVersionNo() {
50                 return versionNo;
51         }
52         
53         public void setVersionNo(String versionNo) {
54                 this.versionNo = versionNo;
55         }
56         
57         public HashMap<String,String> getMatches() {
58                 return matches;
59         }
60         
61         public void setMatches(HashMap<String,String> matches) {
62                 this.matches = matches;
63         }
64         
65         @Override
66     public UpdateType getUpdateType() {
67         return this.updateType;
68     }
69     
70     public void setUpdateType(UpdateType updateType){
71         this.updateType = updateType;
72     }
73
74 }