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.api;
24 import java.util.UUID;
27 * <code>EventRequestParameters</code> defines the Event Policy Request Parameters
28 * which retrieve(s) the response from PDP if the request parameters match with any Action Policy.
32 public class EventRequestParameters {
33 private Map<String,String> eventAttributes;
34 private UUID requestID;
37 * Constructor with no Parameters
39 public EventRequestParameters(){
43 * Constructor with Parameters
45 * @param eventAttributes the <code>Map</code> of <code>String,String</code> format of the eventAttributes that contains the event ID and values.
46 * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
48 public EventRequestParameters(Map<String,String> eventAttributes, UUID requestID){
49 this.eventAttributes = eventAttributes;
50 this.requestID = requestID;
54 * Gets the eventAttributes of Event Request Parameters.
56 * @return eventAttributes the <code>Map</code> of <code>String,String</code> format of the eventAttributes that contains the event ID and values.
58 public Map<String,String> getEventAttributes() {
59 return eventAttributes;
63 * Sets the eventAttributes that contain the eventID and values to the Event Request Parameters.
65 * @param eventAttributes the <code>Map</code> of <code>String,String</code> format of the eventAttributes that must contain the event ID and values.
67 public void setEventAttributes(Map<String,String> eventAttributes) {
68 this.eventAttributes = eventAttributes;
72 * Gets the ReqestID of Event Request Parameters which will be passed around ONAP requests.
74 * @return requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
76 public UUID getRequestID() {
81 * Sets the ReqestID of Event Request Parameters which will be passed around ONAP requests.
83 * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
85 public void setRequestID(UUID requestID) {
86 this.requestID = requestID;