2  * ============LICENSE_START=======================================================
 
   3  *  Copyright (C) 2018 Ericsson. All rights reserved.
 
   4  * ================================================================================
 
   5  * Licensed under the Apache License, Version 2.0 (the "License");
 
   6  * you may not use this file except in compliance with the License.
 
   7  * You may obtain a copy of the License at
 
   9  *      http://www.apache.org/licenses/LICENSE-2.0
 
  11  * Unless required by applicable law or agreed to in writing, software
 
  12  * distributed under the License is distributed on an "AS IS" BASIS,
 
  13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  14  * See the License for the specific language governing permissions and
 
  15  * limitations under the License.
 
  17  * SPDX-License-Identifier: Apache-2.0
 
  18  * ============LICENSE_END=========================================================
 
  21 package org.onap.policy.distribution.forwarding.apex.pdp;
 
  24  * This builder holds all the parameters needed to build an instance of {@link ApexPdpPolicyForwarderParameterGroup}
 
  27  * @author Ram Krishna Verma (ram.krishna.verma@ericsson.com)
 
  29 public class ApexPdpPolicyForwarderParameterBuilder {
 
  31     private String hostname;
 
  33     private boolean ignoreConflicts;
 
  34     private boolean forceUpdate;
 
  37      * Set host name to this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  39      * @param hostname the host name
 
  41     public ApexPdpPolicyForwarderParameterBuilder setHostname(final String hostname) {
 
  42         this.hostname = hostname;
 
  47      * Set port to this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  49      * @param port the port number
 
  51     public ApexPdpPolicyForwarderParameterBuilder setPort(final int port) {
 
  57      * Set ignore conflicts flag to this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  59      * @param ignoreConflicts the ignore conflicts flag
 
  61     public ApexPdpPolicyForwarderParameterBuilder setIgnoreConflicts(final boolean ignoreConflicts) {
 
  62         this.ignoreConflicts = ignoreConflicts;
 
  67      * Set force update flag to this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  69      * @param forceUpdate the force update flag
 
  71     public ApexPdpPolicyForwarderParameterBuilder setForceUpdate(final boolean forceUpdate) {
 
  72         this.forceUpdate = forceUpdate;
 
  77      * Returns the host name of this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  79      * @return the host name
 
  81     public String getHostname() {
 
  86      * Returns the port of this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  90     public int getPort() {
 
  95      * Returns the ignore conflicts flag of this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
  97      * @return the ignoreConflicts
 
  99     public boolean isIgnoreConflicts() {
 
 100         return ignoreConflicts;
 
 104      * Returns the force update flag of this {@link ApexPdpPolicyForwarderParameterBuilder} instance.
 
 106      * @return the forceUpdate
 
 108     public boolean isForceUpdate() {