77c98a2d6ca6dcec858c083332927680b2992ddf
[policy/distribution.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Ericsson. All rights reserved.
4  *  Modifications Copyright (C) 2019 AT&T Intellectual Property.
5  *  Modifications Copyright (C) 2019 Nordix Foundation.
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  *
19  * SPDX-License-Identifier: Apache-2.0
20  * ============LICENSE_END=========================================================
21  */
22
23 package org.onap.policy.distribution.forwarding.apex.pdp;
24
25 import lombok.Getter;
26
27 import org.onap.policy.common.parameters.annotations.Min;
28 import org.onap.policy.common.parameters.annotations.NotBlank;
29 import org.onap.policy.common.parameters.annotations.NotNull;
30 import org.onap.policy.distribution.main.parameters.PolicyForwarderConfigurationParameterGroup;
31
32 /**
33  * Holds the parameters for the{@link ApexPdpPolicyForwarder}.
34  */
35 @Getter
36 @NotNull
37 @NotBlank
38 public class ApexPdpPolicyForwarderParameterGroup extends PolicyForwarderConfigurationParameterGroup {
39     public static final String POLICY_FORWARDER_PLUGIN_CLASS = ApexPdpPolicyForwarder.class.getName();
40
41     private String hostname;
42     @Min(value = 1)
43     private int port;
44     private boolean ignoreConflicts;
45     private boolean forceUpdate;
46
47     public ApexPdpPolicyForwarderParameterGroup() {
48         super(ApexPdpPolicyForwarderParameterGroup.class.getSimpleName());
49     }
50 }