2 * ============LICENSE_START=======================================================
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
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.pdp.rest.notifications;
23 import java.util.HashMap;
25 import org.onap.policy.api.LoadedPolicy;
26 import org.onap.policy.api.UpdateType;
29 * Updated is the POJO which consists of any new or Updated Policy information.
30 * It must hold the Policy Name, version Number, Matches.
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;
41 public String getPolicyName() {
45 public void setPolicyName(String policyName) {
46 this.policyName = policyName;
49 public String getVersionNo() {
53 public void setVersionNo(String versionNo) {
54 this.versionNo = versionNo;
57 public HashMap<String,String> getMatches() {
61 public void setMatches(HashMap<String,String> matches) {
62 this.matches = matches;
66 public UpdateType getUpdateType() {
67 return this.updateType;
70 public void setUpdateType(UpdateType updateType){
71 this.updateType = updateType;