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(){
44 * Constructor with Parameters
46 * @param eventAttributes the <code>Map</code> of <code>String,String</code> format of the eventAttributes that contains the event ID and values.
47 * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
49 public EventRequestParameters(Map<String,String> eventAttributes, UUID requestID){
50 this.eventAttributes = eventAttributes;
51 this.requestID = requestID;
55 * Gets the eventAttributes of Event Request Parameters.
57 * @return eventAttributes the <code>Map</code> of <code>String,String</code> format of the eventAttributes that contains the event ID and values.
59 public Map<String,String> getEventAttributes() {
60 return eventAttributes;
64 * Sets the eventAttributes that contain the eventID and values to the Event Request Parameters.
66 * @param eventAttributes the <code>Map</code> of <code>String,String</code> format of the eventAttributes that must contain the event ID and values.
68 public void setEventAttributes(Map<String,String> eventAttributes) {
69 this.eventAttributes = eventAttributes;
73 * Gets the ReqestID of Event Request Parameters which will be passed around ONAP requests.
75 * @return requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
77 public UUID getRequestID() {
82 * Sets the ReqestID of Event Request Parameters which will be passed around ONAP requests.
84 * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
86 public void setRequestID(UUID requestID) {
87 this.requestID = requestID;