update link to upper-constraints.txt
[multicloud/framework.git] / artifactbroker / plugins / reception-plugins / src / main / java / org / onap / policy / distribution / reception / handling / sdc / SdcReceptionHandlerConfigurationParameterBuilder.java
1 /*-
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
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.distribution.reception.handling.sdc;
22
23 import java.util.List;
24
25 /**
26  * This class builds an instance of {@link SdcReceptionHandlerConfigurationParameterGroup} class.
27  *
28  * @author Ram Krishna Verma (ram.krishna.verma@ericsson.com)
29  */
30 public class SdcReceptionHandlerConfigurationParameterBuilder {
31
32     private boolean activeserverTlsAuth;
33     private boolean filterinEmptyResources;
34     private boolean useHttpsWithSDC;
35     private int pollingTimeout;
36     private int pollingInterval;
37     private String user;
38     private String password;
39     private String consumerId;
40     private String consumerGroup;
41     private String sdcAddress;
42     private String environmentName;
43     private String keystorePath;
44     private String keystorePassword;
45     private int httpsproxyPort;
46     private int httpproxyPort;
47     private String httpsproxyHost;
48     private String httpproxyHost;
49     private List<String> artifactTypes;
50     private int retryDelay;
51
52     /**
53      * Set activeserverTlsAuth to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
54      *
55      * @param activeserverTlsAuth the activeserverTlsAuth
56      */
57     public SdcReceptionHandlerConfigurationParameterBuilder setActiveserverTlsAuth(final boolean activeserverTlsAuth) {
58         this.activeserverTlsAuth = activeserverTlsAuth;
59         return this;
60     }
61
62     /**
63      * Set filterinEmptyResources to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
64      *
65      * @param filterinEmptyResources the filterinEmptyResources
66      */
67     public SdcReceptionHandlerConfigurationParameterBuilder setFilterinEmptyResources(
68             final boolean filterinEmptyResources) {
69         this.filterinEmptyResources = filterinEmptyResources;
70         return this;
71     }
72
73     /**
74      * Set pollingInterval to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
75      *
76      * @param pollingInterval the pollingInterval
77      */
78     public SdcReceptionHandlerConfigurationParameterBuilder setPollingInterval(final int pollingInterval) {
79         this.pollingInterval = pollingInterval;
80         return this;
81     }
82
83     /**
84      * Set pollingTimeout to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
85      *
86      * @param pollingTimeout the pollingTimeout
87      */
88     public SdcReceptionHandlerConfigurationParameterBuilder setPollingTimeout(final int pollingTimeout) {
89         this.pollingTimeout = pollingTimeout;
90         return this;
91     }
92
93     /**
94      * Set sdcAddress to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
95      *
96      * @param sdcAddress the sdcAddress
97      */
98     public SdcReceptionHandlerConfigurationParameterBuilder setSdcAddress(final String sdcAddress) {
99         this.sdcAddress = sdcAddress;
100         return this;
101     }
102
103     /**
104      * Set user to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
105      *
106      * @param user the user
107      */
108     public SdcReceptionHandlerConfigurationParameterBuilder setUser(final String user) {
109         this.user = user;
110         return this;
111     }
112
113     /**
114      * Set password to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
115      *
116      * @param password the password
117      */
118     public SdcReceptionHandlerConfigurationParameterBuilder setPassword(final String password) {
119         this.password = password;
120         return this;
121     }
122
123     /**
124      * Set consumerId to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
125      *
126      * @param consumerId the consumerId
127      */
128     public SdcReceptionHandlerConfigurationParameterBuilder setConsumerId(final String consumerId) {
129         this.consumerId = consumerId;
130         return this;
131     }
132
133     /**
134      * Set consumerGroup to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
135      *
136      * @param consumerGroup the consumerGroup
137      */
138     public SdcReceptionHandlerConfigurationParameterBuilder setConsumerGroup(final String consumerGroup) {
139         this.consumerGroup = consumerGroup;
140         return this;
141     }
142
143     /**
144      * Set environmentName to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
145      *
146      * @param environmentName the environmentName
147      */
148     public SdcReceptionHandlerConfigurationParameterBuilder setEnvironmentName(final String environmentName) {
149         this.environmentName = environmentName;
150         return this;
151     }
152
153     /**
154      * Set keystorePath to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
155      *
156      * @param keystorePath the keystorePath
157      */
158     public SdcReceptionHandlerConfigurationParameterBuilder setKeystorePath(final String keystorePath) {
159         this.keystorePath = keystorePath;
160         return this;
161     }
162
163     /**
164      * Set keystorePassword to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
165      *
166      * @param keystorePassword the keystorePassword
167      */
168     public SdcReceptionHandlerConfigurationParameterBuilder setKeystorePassword(final String keystorePassword) {
169         this.keystorePassword = keystorePassword;
170         return this;
171     }
172
173     /**
174      * Set artifactTypes to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
175      *
176      * @param artifactTypes the artifactTypes
177      */
178     public SdcReceptionHandlerConfigurationParameterBuilder setArtifactTypes(final List<String> artifactTypes) {
179         this.artifactTypes = artifactTypes;
180         return this;
181     }
182
183     /**
184      * Set retryDelay to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
185      *
186      * @param retryDelay the retryDelay
187      */
188     public SdcReceptionHandlerConfigurationParameterBuilder setRetryDelay(final int retryDelay) {
189         this.retryDelay = retryDelay;
190         return this;
191     }
192
193     /**
194      * Returns the active server TlsAuth of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
195      *
196      * @return the activeserverTlsAuth
197      */
198     public boolean isActiveserverTlsAuth() {
199         return activeserverTlsAuth;
200     }
201
202     /**
203      * Returns the isFilterinEmptyResources flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder}
204      * instance.
205      *
206      * @return the isFilterinEmptyResources
207      */
208     public boolean isFilterinEmptyResources() {
209         return filterinEmptyResources;
210     }
211
212     /**
213      * Returns the isUseHttpsWithSDC flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
214      *
215      * @return the isUseHttpsWithSDC
216      */
217     public Boolean getIsUseHttpsWithSDC() {
218         return useHttpsWithSDC;
219     }
220
221     /**
222      * Returns the polling interval of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
223      *
224      * @return the pollingInterval
225      */
226     public int getPollingInterval() {
227         return pollingInterval;
228     }
229
230     /**
231      * Returns the polling timeout of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
232      *
233      * @return the pollingTimeout
234      */
235     public int getPollingTimeout() {
236         return pollingTimeout;
237     }
238
239     /**
240      * Returns the asdc address of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
241      *
242      * @return the sdcAddress
243      */
244     public String getSdcAddress() {
245         return sdcAddress;
246     }
247
248     /**
249      * Returns the user of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
250      *
251      * @return the user
252      */
253     public String getUser() {
254         return user;
255     }
256
257     /**
258      * Returns the password of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
259      *
260      * @return the password
261      */
262     public String getPassword() {
263         return password;
264     }
265
266     /**
267      * Returns the consumer id of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
268      *
269      * @return the consumerId
270      */
271     public String getConsumerId() {
272         return consumerId;
273     }
274
275     /**
276      * Returns the consumer group of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
277      *
278      * @return the consumerGroup
279      */
280     public String getConsumerGroup() {
281         return consumerGroup;
282     }
283
284     /**
285      * Returns the environment name of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
286      *
287      * @return the environmentName
288      */
289     public String getEnvironmentName() {
290         return environmentName;
291     }
292
293     /**
294      * Returns the keystore path of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
295      *
296      * @return the keystorePath
297      */
298     public String getKeystorePath() {
299         return keystorePath;
300     }
301
302     /**
303      * Returns the keystore password of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
304      *
305      * @return the keystorePassword
306      */
307     public String getKeystorePassword() {
308         return keystorePassword;
309     }
310
311     /**
312      * Returns the artifact types of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
313      *
314      * @return the artifactTypes
315      */
316     public List<String> getArtifactTypes() {
317         return artifactTypes;
318     }
319
320     /**
321      * Returns the retryDelay of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
322      *
323      * @return the retryDelay
324      */
325     public int getRetryDelay() {
326         return retryDelay;
327     }
328     /**
329      * Returns the https proxy port of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
330      *
331      * @return the httpsproxyPort
332      */
333     public int getHttpsProxyPort() {
334         return httpsproxyPort;
335     }
336     /**
337      * Returns the https proxy host of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
338      *
339      * @return the httpsproxyHost
340      */
341     public String getHttpsProxyHost() {
342         return httpsproxyHost;
343     }
344         /**
345      * Returns the http proxy port of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
346      *
347      * @return the httpproxyPort
348      */
349     public int getHttpProxyPort() {
350         return httpproxyPort;
351     }
352     /**
353      * Returns the http proxy host of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
354      *
355      * @return the httpsproxyHost
356      */
357     public String getHttpProxyHost() {
358         return httpproxyHost;
359     }
360 }
361
362