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;
23 import java.util.UUID;
26 * <code>PushPolicyParameters</code> defines the Policy Parameters
27 * which are required to Push a Policy to PDPGroup.
31 public class PushPolicyParameters {
32 private String policyName;
33 private String policyType;
34 private String pdpGroup;
35 private UUID requestID;
38 * Constructor with no Parameters.
40 public PushPolicyParameters(){
45 * Constructor with Parameters.
47 * @param policyName the <code>String</code> format of the Policy Name
48 * @param policyType the <code>String</code> format of the Policy Type
49 * @param pdpGroup the <code>String</code> format of the PDPGroup
50 * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
52 public PushPolicyParameters(String policyName, String policyType, String pdpGroup, UUID requestID){
53 this.policyName = policyName;
54 this.policyType = policyType;
55 this.pdpGroup = pdpGroup;
56 this.requestID = requestID;
60 * Gets the PolicyName of the Push Policy Parameters.
62 * @return policyName the <code>String</code> format of the Policy Name
64 public String getPolicyName() {
69 * Sets the policyName of the Push Policy Parameters.
71 * @param policyName the <code>String</code> format of the Policy Name
73 public void setPolicyName(String policyName) {
74 this.policyName = policyName;
78 * Gets the PolicyType of the Push Policy Parameters.
80 * @return policyType the <code>String</code> format of the Policy Type
82 public String getPolicyType() {
87 * Sets the policyType of the Push Policy Parameters.
89 * @param policyType the <code>String</code> format of the Policy Type
91 public void setPolicyType(String policyType) {
92 this.policyType = policyType;
96 * Gets the PDPGroup of the Push Policy Parameters.
98 * @return pdpGroup the <code>String</code> format of the PDPGroup
100 public String getPdpGroup() {
105 * Sets the PDPGroup of the Push Policy Parameters.
107 * @param pdpGroup the <code>String</code> format of the PDPGroup
109 public void setPdpGroup(String pdpGroup) {
110 this.pdpGroup = pdpGroup;
114 * Gets the requestID of the Push Policy Parameters.
116 * @return unique request ID which will be passed throughout the ONAP components to correlate logging messages.
118 public UUID getRequestID() {
123 * Sets the requestID of the Push Policy Parameters.
125 * @param requestID unique request ID which will be passed throughout the ONAP components to correlate logging messages.
127 public void setRequestID(UUID requestID) {
128 this.requestID = requestID;