Catalog alignment
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / be / config / DmaapConsumerConfiguration.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
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  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.config;
22 /**
23  * Contains DMAAP Client configuration parameters
24  */
25 public class DmaapConsumerConfiguration {
26         private boolean active;
27         private String hosts;
28         private String consumerGroup;
29         private String consumerId;
30         private Integer timeoutMs;
31         private Integer limit;
32         private Integer pollingInterval;
33         private String topic;
34         private Double latitude;
35         private Double longitude;
36         private String version;
37         private String serviceName;
38         private String environment;
39         private String partner;
40         private String routeOffer;
41         private String protocol;
42         private String contenttype;
43         private Boolean dme2TraceOn;
44         private String aftEnvironment;
45         private Integer aftDme2ConnectionTimeoutMs;
46         private Integer aftDme2RoundtripTimeoutMs;
47         private Integer aftDme2ReadTimeoutMs;
48         private String dme2preferredRouterFilePath; 
49         private Credential credential;
50         private Integer timeLimitForNotificationHandleMs;
51     private boolean aftDme2SslEnable;
52     private boolean aftDme2ClientIgnoreSslConfig;
53     private String aftDme2ClientKeystore;
54     private String aftDme2ClientKeystorePassword;
55     private String aftDme2ClientSslCertAlias;
56
57         public String getHosts() {
58                 return hosts;
59         }
60
61         public void setHosts(String hosts) {
62                 this.hosts = hosts;
63         }
64
65         public String getConsumerGroup() {
66                 return consumerGroup;
67         }
68
69         public void setConsumerGroup(String consumerGroup) {
70                 this.consumerGroup = consumerGroup;
71         }
72
73         public String getConsumerId() {
74                 return consumerId;
75         }
76
77         public void setConsumerId(String consumerId) {
78                 this.consumerId = consumerId;
79         }
80
81         public Integer getTimeoutMs() {
82                 return timeoutMs;
83         }
84
85         public void setTimeoutMs(Integer timeoutMs) {
86                 this.timeoutMs = timeoutMs;
87         }
88
89         public Integer getLimit() {
90                 return limit;
91         }
92
93         public void setLimit(Integer limit) {
94                 this.limit = limit;
95         }
96
97         public Integer getPollingInterval() {
98                 return pollingInterval;
99         }
100
101         public void setPollingInterval(Integer pollingInterval) {
102                 this.pollingInterval = pollingInterval;
103         }
104
105         public String getTopic() {
106                 return topic;
107         }
108
109         public void setTopic(String topic) {
110                 this.topic = topic;
111         }
112
113         public Double getLatitude() {
114                 return latitude;
115         }
116
117         public void setLatitude(Double latitude) {
118                 this.latitude = latitude;
119         }
120
121         public Double getLongitude() {
122                 return longitude;
123         }
124
125         public void setLongitude(Double longitude) {
126                 this.longitude = longitude;
127         }
128
129         public String getVersion() {
130                 return version;
131         }
132
133         public void setVersion(String version) {
134                 this.version = version;
135         }
136
137         public String getServiceName() {
138                 return serviceName;
139         }
140
141         public void setServiceName(String serviceName) {
142                 this.serviceName = serviceName;
143         }
144
145         public String getEnvironment() {
146                 return environment;
147         }
148
149         public void setEnvironment(String environment) {
150                 this.environment = environment;
151         }
152
153         public String getPartner() {
154                 return partner;
155         }
156
157         public void setPartner(String partner) {
158                 this.partner = partner;
159         }
160
161         public String getRouteOffer() {
162                 return routeOffer;
163         }
164
165         public void setRouteOffer(String routeOffer) {
166                 this.routeOffer = routeOffer;
167         }
168
169         public String getProtocol() {
170                 return protocol;
171         }
172
173         public void setProtocol(String protocol) {
174                 this.protocol = protocol;
175         }
176
177         public String getContenttype() {
178                 return contenttype;
179         }
180
181         public void setContenttype(String contenttype) {
182                 this.contenttype = contenttype;
183         }
184
185         public Boolean isDme2TraceOn() {
186                 return dme2TraceOn;
187         }
188         
189         public Boolean getDme2TraceOn() {
190                 return dme2TraceOn;
191         }
192
193         public void setDme2TraceOn(Boolean dme2TraceOn) {
194                 this.dme2TraceOn = dme2TraceOn;
195         }
196
197         public String getAftEnvironment() {
198                 return aftEnvironment;
199         }
200
201         public void setAftEnvironment(String aftEnvironment) {
202                 this.aftEnvironment = aftEnvironment;
203         }
204
205         public Integer getAftDme2ConnectionTimeoutMs() {
206                 return aftDme2ConnectionTimeoutMs;
207         }
208
209         public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
210                 this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
211         }
212
213         public Integer getAftDme2RoundtripTimeoutMs() {
214                 return aftDme2RoundtripTimeoutMs;
215         }
216
217         public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
218                 this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
219         }
220
221         public Integer getAftDme2ReadTimeoutMs() {
222                 return aftDme2ReadTimeoutMs;
223         }
224
225         public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
226                 this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
227         }
228
229         public String getDme2preferredRouterFilePath() {
230                 return dme2preferredRouterFilePath;
231         }
232
233         public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
234                 this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
235         }
236
237         public Credential getCredential() {
238                 return credential;
239         }
240
241         public void setCredential(Credential credential) {
242                 this.credential = credential;
243         }
244
245         public boolean isActive() { return active; }
246
247         public void setActive(boolean isActive) { this.active = isActive; }
248
249         /**
250          * Contains Dmaap Client credential parameters: username and password
251          */
252         public static class Credential{
253                 
254                 private String username;
255                 private String password;
256                 
257                 public String getUsername() {
258                         return username;
259                 }
260                 public void setUsername(String username) {
261                         this.username = username;
262                 }
263                 public String getPassword() {
264                         return password;
265                 }
266                 public void setPassword(String password) {
267                         this.password = password;
268                 }
269                 @Override
270                 public String toString() {
271                         return "Credential [username=" + username + ", password=" + password + "]";
272                 }
273                  
274           }
275
276         public Integer getTimeLimitForNotificationHandleMs() {
277                 return timeLimitForNotificationHandleMs;
278         }
279
280         public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
281                 this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
282         }
283
284     public boolean isAftDme2SslEnable() {
285         return aftDme2SslEnable;
286     }
287
288     public void setAftDme2SslEnable(boolean aftDme2SslEnable) {
289         this.aftDme2SslEnable = aftDme2SslEnable;
290     }
291
292     public boolean isAftDme2ClientIgnoreSslConfig() {
293         return aftDme2ClientIgnoreSslConfig;
294     }
295
296     public void setAftDme2ClientIgnoreSslConfig(boolean aftDme2ClientIgnoreSslConfig) {
297         this.aftDme2ClientIgnoreSslConfig = aftDme2ClientIgnoreSslConfig;
298     }
299
300     public String getAftDme2ClientKeystore() {
301         return aftDme2ClientKeystore;
302     }
303
304     public void setAftDme2ClientKeystore(String aftDme2ClientKeystore) {
305         this.aftDme2ClientKeystore = aftDme2ClientKeystore;
306     }
307
308     public String getAftDme2ClientKeystorePassword() {
309         return aftDme2ClientKeystorePassword;
310     }
311
312     public void setAftDme2ClientKeystorePassword(String aftDme2ClientKeystorePassword) {
313         this.aftDme2ClientKeystorePassword = aftDme2ClientKeystorePassword;
314     }
315
316     public String getAftDme2ClientSslCertAlias() {
317         return aftDme2ClientSslCertAlias;
318     }
319
320     public void setAftDme2ClientSslCertAlias(String aftDme2ClientSslCertAlias) {
321         this.aftDme2ClientSslCertAlias = aftDme2ClientSslCertAlias;
322     }
323
324         @Override
325         public String toString() {
326                 return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup
327                                 + ", consumerId=" + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval="
328                                 + pollingInterval + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude
329                                 + ", version=" + version + ", serviceName=" + serviceName + ", environment=" + environment
330                                 + ", partner=" + partner + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype="
331                                 + contenttype + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
332                                 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
333                                 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
334                                 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath + ", credential=" + credential
335                                 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs + ", aftDme2SslEnable="
336                                 + aftDme2SslEnable + ", aftDme2ClientIgnoreSslConfig=" + aftDme2ClientIgnoreSslConfig
337                                 + ", aftDme2ClientKeystore=" + aftDme2ClientKeystore + ", aftDme2ClientKeystorePassword="
338                                 + aftDme2ClientKeystorePassword + ", aftDme2ClientSslCertAlias=" + aftDme2ClientSslCertAlias + "]";
339         }
340         
341 }