Update css file name in conf.py
[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 useHttpsWithDmaap;
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 asdcAddress;
42     private String environmentName;
43     private String keystorePath;
44     private String keystorePassword;
45     private List<String> messageBusAddress;
46     private List<String> artifactTypes;
47     private int retryDelay;
48
49     /**
50      * Set activeserverTlsAuth to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
51      *
52      * @param activeserverTlsAuth the activeserverTlsAuth
53      */
54     public SdcReceptionHandlerConfigurationParameterBuilder setActiveserverTlsAuth(final boolean activeserverTlsAuth) {
55         this.activeserverTlsAuth = activeserverTlsAuth;
56         return this;
57     }
58
59     /**
60      * Set filterinEmptyResources to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
61      *
62      * @param filterinEmptyResources the filterinEmptyResources
63      */
64     public SdcReceptionHandlerConfigurationParameterBuilder setFilterinEmptyResources(
65             final boolean filterinEmptyResources) {
66         this.filterinEmptyResources = filterinEmptyResources;
67         return this;
68     }
69
70     /**
71      * Set useHttpsWithDmaap to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
72      *
73      * @param useHttpsWithDmaap the useHttpsWithDmaap
74      */
75     public SdcReceptionHandlerConfigurationParameterBuilder setUseHttpsWithDmaap(final Boolean useHttpsWithDmaap) {
76         this.useHttpsWithDmaap = useHttpsWithDmaap;
77         return this;
78     }
79
80     /**
81      * Set pollingInterval to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
82      *
83      * @param pollingInterval the pollingInterval
84      */
85     public SdcReceptionHandlerConfigurationParameterBuilder setPollingInterval(final int pollingInterval) {
86         this.pollingInterval = pollingInterval;
87         return this;
88     }
89
90     /**
91      * Set pollingTimeout to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
92      *
93      * @param pollingTimeout the pollingTimeout
94      */
95     public SdcReceptionHandlerConfigurationParameterBuilder setPollingTimeout(final int pollingTimeout) {
96         this.pollingTimeout = pollingTimeout;
97         return this;
98     }
99
100     /**
101      * Set asdcAddress to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
102      *
103      * @param asdcAddress the asdcAddress
104      */
105     public SdcReceptionHandlerConfigurationParameterBuilder setAsdcAddress(final String asdcAddress) {
106         this.asdcAddress = asdcAddress;
107         return this;
108     }
109
110     /**
111      * Set user to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
112      *
113      * @param user the user
114      */
115     public SdcReceptionHandlerConfigurationParameterBuilder setUser(final String user) {
116         this.user = user;
117         return this;
118     }
119
120     /**
121      * Set password to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
122      *
123      * @param password the password
124      */
125     public SdcReceptionHandlerConfigurationParameterBuilder setPassword(final String password) {
126         this.password = password;
127         return this;
128     }
129
130     /**
131      * Set consumerId to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
132      *
133      * @param consumerId the consumerId
134      */
135     public SdcReceptionHandlerConfigurationParameterBuilder setConsumerId(final String consumerId) {
136         this.consumerId = consumerId;
137         return this;
138     }
139
140     /**
141      * Set consumerGroup to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
142      *
143      * @param consumerGroup the consumerGroup
144      */
145     public SdcReceptionHandlerConfigurationParameterBuilder setConsumerGroup(final String consumerGroup) {
146         this.consumerGroup = consumerGroup;
147         return this;
148     }
149
150     /**
151      * Set environmentName to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
152      *
153      * @param environmentName the environmentName
154      */
155     public SdcReceptionHandlerConfigurationParameterBuilder setEnvironmentName(final String environmentName) {
156         this.environmentName = environmentName;
157         return this;
158     }
159
160     /**
161      * Set keystorePath to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
162      *
163      * @param keystorePath the keystorePath
164      */
165     public SdcReceptionHandlerConfigurationParameterBuilder setKeystorePath(final String keystorePath) {
166         this.keystorePath = keystorePath;
167         return this;
168     }
169
170     /**
171      * Set keystorePassword to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
172      *
173      * @param keystorePassword the keystorePassword
174      */
175     public SdcReceptionHandlerConfigurationParameterBuilder setKeystorePassword(final String keystorePassword) {
176         this.keystorePassword = keystorePassword;
177         return this;
178     }
179
180     /**
181      * Set messageBusAddress to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
182      *
183      * @param messageBusAddress the messageBusAddress
184      */
185     public SdcReceptionHandlerConfigurationParameterBuilder setMessageBusAddress(final List<String> messageBusAddress) {
186         this.messageBusAddress = messageBusAddress;
187         return this;
188     }
189
190     /**
191      * Set artifactTypes to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
192      *
193      * @param artifactTypes the artifactTypes
194      */
195     public SdcReceptionHandlerConfigurationParameterBuilder setArtifactTypes(final List<String> artifactTypes) {
196         this.artifactTypes = artifactTypes;
197         return this;
198     }
199
200     /**
201      * Set retryDelay to this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
202      *
203      * @param retryDelay the retryDelay
204      */
205     public SdcReceptionHandlerConfigurationParameterBuilder setRetryDelay(final int retryDelay) {
206         this.retryDelay = retryDelay;
207         return this;
208     }
209
210     /**
211      * Returns the active server TlsAuth of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
212      *
213      * @return the activeserverTlsAuth
214      */
215     public boolean isActiveserverTlsAuth() {
216         return activeserverTlsAuth;
217     }
218
219     /**
220      * Returns the isFilterinEmptyResources flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder}
221      * instance.
222      *
223      * @return the isFilterinEmptyResources
224      */
225     public boolean isFilterinEmptyResources() {
226         return filterinEmptyResources;
227     }
228
229     /**
230      * Returns the isUseHttpsWithDmaap flag of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
231      *
232      * @return the isUseHttpsWithDmaap
233      */
234     public Boolean getIsUseHttpsWithDmaap() {
235         return useHttpsWithDmaap;
236     }
237
238     /**
239      * Returns the polling interval of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
240      *
241      * @return the pollingInterval
242      */
243     public int getPollingInterval() {
244         return pollingInterval;
245     }
246
247     /**
248      * Returns the polling timeout of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
249      *
250      * @return the pollingTimeout
251      */
252     public int getPollingTimeout() {
253         return pollingTimeout;
254     }
255
256     /**
257      * Returns the asdc address of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
258      *
259      * @return the asdcAddress
260      */
261     public String getAsdcAddress() {
262         return asdcAddress;
263     }
264
265     /**
266      * Returns the user of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
267      *
268      * @return the user
269      */
270     public String getUser() {
271         return user;
272     }
273
274     /**
275      * Returns the password of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
276      *
277      * @return the password
278      */
279     public String getPassword() {
280         return password;
281     }
282
283     /**
284      * Returns the consumer id of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
285      *
286      * @return the consumerId
287      */
288     public String getConsumerId() {
289         return consumerId;
290     }
291
292     /**
293      * Returns the consumer group of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
294      *
295      * @return the consumerGroup
296      */
297     public String getConsumerGroup() {
298         return consumerGroup;
299     }
300
301     /**
302      * Returns the environment name of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
303      *
304      * @return the environmentName
305      */
306     public String getEnvironmentName() {
307         return environmentName;
308     }
309
310     /**
311      * Returns the keystore path of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
312      *
313      * @return the keystorePath
314      */
315     public String getKeystorePath() {
316         return keystorePath;
317     }
318
319     /**
320      * Returns the keystore password of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
321      *
322      * @return the keystorePassword
323      */
324     public String getKeystorePassword() {
325         return keystorePassword;
326     }
327
328     /**
329      * Returns the message bus address of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
330      *
331      * @return the messageBusAddress
332      */
333     public List<String> getMessageBusAddress() {
334         return messageBusAddress;
335     }
336
337     /**
338      * Returns the artifact types of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
339      *
340      * @return the artifactTypes
341      */
342     public List<String> getArtifactTypes() {
343         return artifactTypes;
344     }
345
346     /**
347      * Returns the retryDelay of this {@link SdcReceptionHandlerConfigurationParameterBuilder} instance.
348      *
349      * @return the retryDelay
350      */
351     public int getRetryDelay() {
352         return retryDelay;
353     }
354
355 }
356
357