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.reception.handling.sdc;
 
  23 import java.util.List;
 
  26  * This class builds an instance of {@link SdcReceptionHandlerConfigurationParameterGroup} class.
 
  28  * @author Ram Krishna Verma (ram.krishna.verma@ericsson.com)
 
  30 public class SdcReceptionHandlerConfigurationParameterBuilder {
 
  32     private boolean activeserverTlsAuth;
 
  33     private boolean filterinEmptyResources;
 
  34     private boolean useHttpsWithDmaap;
 
  35     private int pollingTimeout;
 
  36     private int pollingInterval;
 
  38     private String password;
 
  39     private String consumerId;
 
  40     private String consumerGroup;
 
  41     private String asdcAddress;
 
  42     private String environmentName;
 
  43     private String keystorePath;
 
  44     private String keystorePassword;
 
  45     private List<String> messageBusAddress;
 
  46     private List<String> artifactTypes;
 
  49      * Set activeserverTlsAuth to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
  51      * @param activeserverTlsAuth the activeserverTlsAuth
 
  53     public SdcReceptionHandlerConfigurationParameterBuilder setActiveserverTlsAuth(final boolean activeserverTlsAuth) {
 
  54         this.activeserverTlsAuth = activeserverTlsAuth;
 
  59      * Set filterinEmptyResources to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
  61      * @param filterinEmptyResources the filterinEmptyResources
 
  63     public SdcReceptionHandlerConfigurationParameterBuilder setFilterinEmptyResources(
 
  64             final boolean filterinEmptyResources) {
 
  65         this.filterinEmptyResources = filterinEmptyResources;
 
  70      * Set useHttpsWithDmaap to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
  72      * @param useHttpsWithDmaap the useHttpsWithDmaap
 
  74     public SdcReceptionHandlerConfigurationParameterBuilder setUseHttpsWithDmaap(final Boolean useHttpsWithDmaap) {
 
  75         this.useHttpsWithDmaap = useHttpsWithDmaap;
 
  80      * Set pollingInterval to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
  82      * @param pollingInterval the pollingInterval
 
  84     public SdcReceptionHandlerConfigurationParameterBuilder setPollingInterval(final int pollingInterval) {
 
  85         this.pollingInterval = pollingInterval;
 
  90      * Set pollingTimeout to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
  92      * @param pollingTimeout the pollingTimeout
 
  94     public SdcReceptionHandlerConfigurationParameterBuilder setPollingTimeout(final int pollingTimeout) {
 
  95         this.pollingTimeout = pollingTimeout;
 
 100      * Set asdcAddress to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 102      * @param asdcAddress the asdcAddress
 
 104     public SdcReceptionHandlerConfigurationParameterBuilder setAsdcAddress(final String asdcAddress) {
 
 105         this.asdcAddress = asdcAddress;
 
 110      * Set user to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 112      * @param user the user
 
 114     public SdcReceptionHandlerConfigurationParameterBuilder setUser(final String user) {
 
 120      * Set password to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 122      * @param password the password
 
 124     public SdcReceptionHandlerConfigurationParameterBuilder setPassword(final String password) {
 
 125         this.password = password;
 
 130      * Set consumerId to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 132      * @param consumerId the consumerId
 
 134     public SdcReceptionHandlerConfigurationParameterBuilder setConsumerId(final String consumerId) {
 
 135         this.consumerId = consumerId;
 
 140      * Set consumerGroup to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 142      * @param consumerGroup the consumerGroup
 
 144     public SdcReceptionHandlerConfigurationParameterBuilder setConsumerGroup(final String consumerGroup) {
 
 145         this.consumerGroup = consumerGroup;
 
 150      * Set environmentName to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 152      * @param environmentName the environmentName
 
 154     public SdcReceptionHandlerConfigurationParameterBuilder setEnvironmentName(final String environmentName) {
 
 155         this.environmentName = environmentName;
 
 160      * Set keystorePath to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 162      * @param keystorePath the keystorePath
 
 164     public SdcReceptionHandlerConfigurationParameterBuilder setKeystorePath(final String keystorePath) {
 
 165         this.keystorePath = keystorePath;
 
 170      * Set keystorePassword to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 172      * @param keystorePassword the keystorePassword
 
 174     public SdcReceptionHandlerConfigurationParameterBuilder setKeystorePassword(final String keystorePassword) {
 
 175         this.keystorePassword = keystorePassword;
 
 180      * Set messageBusAddress to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 182      * @param messageBusAddress the messageBusAddress
 
 184     public SdcReceptionHandlerConfigurationParameterBuilder setMessageBusAddress(final List<String> messageBusAddress) {
 
 185         this.messageBusAddress = messageBusAddress;
 
 190      * Set artifactTypes to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 192      * @param artifactTypes the artifactTypes
 
 194     public SdcReceptionHandlerConfigurationParameterBuilder setArtifactTypes(final List<String> artifactTypes) {
 
 195         this.artifactTypes = artifactTypes;
 
 200      * Returns the active server TlsAuth of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 202      * @return the activeserverTlsAuth
 
 204     public boolean isActiveserverTlsAuth() {
 
 205         return activeserverTlsAuth;
 
 209      * Returns the isFilterinEmptyResources flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder}
 
 212      * @return the isFilterinEmptyResources
 
 214     public boolean isFilterinEmptyResources() {
 
 215         return filterinEmptyResources;
 
 219      * Returns the isUseHttpsWithDmaap flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 221      * @return the isUseHttpsWithDmaap
 
 223     public Boolean getIsUseHttpsWithDmaap() {
 
 224         return useHttpsWithDmaap;
 
 228      * Returns the polling interval of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 230      * @return the pollingInterval
 
 232     public int getPollingInterval() {
 
 233         return pollingInterval;
 
 237      * Returns the polling timeout of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 239      * @return the pollingTimeout
 
 241     public int getPollingTimeout() {
 
 242         return pollingTimeout;
 
 246      * Returns the asdc address of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 248      * @return the asdcAddress
 
 250     public String getAsdcAddress() {
 
 255      * Returns the user of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 259     public String getUser() {
 
 264      * Returns the password of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 266      * @return the password
 
 268     public String getPassword() {
 
 273      * Returns the consumer id of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 275      * @return the consumerId
 
 277     public String getConsumerId() {
 
 282      * Returns the consumer group of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 284      * @return the consumerGroup
 
 286     public String getConsumerGroup() {
 
 287         return consumerGroup;
 
 291      * Returns the environment name of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 293      * @return the environmentName
 
 295     public String getEnvironmentName() {
 
 296         return environmentName;
 
 300      * Returns the keystore path of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 302      * @return the keystorePath
 
 304     public String getKeystorePath() {
 
 309      * Returns the keystore password of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 311      * @return the keystorePassword
 
 313     public String getKeystorePassword() {
 
 314         return keystorePassword;
 
 318      * Returns the message bus address of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 320      * @return the messageBusAddress
 
 322     public List<String> getMessageBusAddress() {
 
 323         return messageBusAddress;
 
 327      * Returns the artifact types of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
 
 329      * @return the artifactTypes
 
 331     public List<String> getArtifactTypes() {
 
 332         return artifactTypes;