fixing warnings from checkstyle in common-app-api
[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 /**
24  * Contains DMAAP Client configuration parameters
25  */
26 public class DmaapConsumerConfiguration {
27     private boolean active;
28     private String hosts;
29     private String consumerGroup;
30     private String consumerId;
31     private Integer timeoutMs;
32     private Integer limit;
33     private Integer pollingInterval;
34     private String topic;
35     private Double latitude;
36     private Double longitude;
37     private String version;
38     private String serviceName;
39     private String environment;
40     private String partner;
41     private String routeOffer;
42     private String protocol;
43     private String contenttype;
44     private Boolean dme2TraceOn;
45     private String aftEnvironment;
46     private Integer aftDme2ConnectionTimeoutMs;
47     private Integer aftDme2RoundtripTimeoutMs;
48     private Integer aftDme2ReadTimeoutMs;
49     private String dme2preferredRouterFilePath;
50     private Credential credential;
51     private Integer timeLimitForNotificationHandleMs;
52
53     public String getHosts() {
54         return hosts;
55     }
56
57     public void setHosts(String hosts) {
58         this.hosts = hosts;
59     }
60
61     public String getConsumerGroup() {
62         return consumerGroup;
63     }
64
65     public void setConsumerGroup(String consumerGroup) {
66         this.consumerGroup = consumerGroup;
67     }
68
69     public String getConsumerId() {
70         return consumerId;
71     }
72
73     public void setConsumerId(String consumerId) {
74         this.consumerId = consumerId;
75     }
76
77     public Integer getTimeoutMs() {
78         return timeoutMs;
79     }
80
81     public void setTimeoutMs(Integer timeoutMs) {
82         this.timeoutMs = timeoutMs;
83     }
84
85     public Integer getLimit() {
86         return limit;
87     }
88
89     public void setLimit(Integer limit) {
90         this.limit = limit;
91     }
92
93     public Integer getPollingInterval() {
94         return pollingInterval;
95     }
96
97     public void setPollingInterval(Integer pollingInterval) {
98         this.pollingInterval = pollingInterval;
99     }
100
101     public String getTopic() {
102         return topic;
103     }
104
105     public void setTopic(String topic) {
106         this.topic = topic;
107     }
108
109     public Double getLatitude() {
110         return latitude;
111     }
112
113     public void setLatitude(Double latitude) {
114         this.latitude = latitude;
115     }
116
117     public Double getLongitude() {
118         return longitude;
119     }
120
121     public void setLongitude(Double longitude) {
122         this.longitude = longitude;
123     }
124
125     public String getVersion() {
126         return version;
127     }
128
129     public void setVersion(String version) {
130         this.version = version;
131     }
132
133     public String getServiceName() {
134         return serviceName;
135     }
136
137     public void setServiceName(String serviceName) {
138         this.serviceName = serviceName;
139     }
140
141     public String getEnvironment() {
142         return environment;
143     }
144
145     public void setEnvironment(String environment) {
146         this.environment = environment;
147     }
148
149     public String getPartner() {
150         return partner;
151     }
152
153     public void setPartner(String partner) {
154         this.partner = partner;
155     }
156
157     public String getRouteOffer() {
158         return routeOffer;
159     }
160
161     public void setRouteOffer(String routeOffer) {
162         this.routeOffer = routeOffer;
163     }
164
165     public String getProtocol() {
166         return protocol;
167     }
168
169     public void setProtocol(String protocol) {
170         this.protocol = protocol;
171     }
172
173     public String getContenttype() {
174         return contenttype;
175     }
176
177     public void setContenttype(String contenttype) {
178         this.contenttype = contenttype;
179     }
180
181     public Boolean isDme2TraceOn() {
182         return dme2TraceOn;
183     }
184
185     public Boolean getDme2TraceOn() {
186         return dme2TraceOn;
187     }
188
189     public void setDme2TraceOn(Boolean dme2TraceOn) {
190         this.dme2TraceOn = dme2TraceOn;
191     }
192
193     public String getAftEnvironment() {
194         return aftEnvironment;
195     }
196
197     public void setAftEnvironment(String aftEnvironment) {
198         this.aftEnvironment = aftEnvironment;
199     }
200
201     public Integer getAftDme2ConnectionTimeoutMs() {
202         return aftDme2ConnectionTimeoutMs;
203     }
204
205     public void setAftDme2ConnectionTimeoutMs(Integer aftDme2ConnectionTimeoutMs) {
206         this.aftDme2ConnectionTimeoutMs = aftDme2ConnectionTimeoutMs;
207     }
208
209     public Integer getAftDme2RoundtripTimeoutMs() {
210         return aftDme2RoundtripTimeoutMs;
211     }
212
213     public void setAftDme2RoundtripTimeoutMs(Integer aftDme2RoundtripTimeoutMs) {
214         this.aftDme2RoundtripTimeoutMs = aftDme2RoundtripTimeoutMs;
215     }
216
217     public Integer getAftDme2ReadTimeoutMs() {
218         return aftDme2ReadTimeoutMs;
219     }
220
221     public void setAftDme2ReadTimeoutMs(Integer aftDme2ReadTimeoutMs) {
222         this.aftDme2ReadTimeoutMs = aftDme2ReadTimeoutMs;
223     }
224
225     public String getDme2preferredRouterFilePath() {
226         return dme2preferredRouterFilePath;
227     }
228
229     public void setDme2preferredRouterFilePath(String dme2preferredRouterFilePath) {
230         this.dme2preferredRouterFilePath = dme2preferredRouterFilePath;
231     }
232
233     public Credential getCredential() {
234         return credential;
235     }
236
237     public void setCredential(Credential credential) {
238         this.credential = credential;
239     }
240
241     public boolean isActive() {
242         return active;
243     }
244
245     public void setActive(boolean isActive) {
246         this.active = isActive;
247     }
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
261         public void setUsername(String username) {
262             this.username = username;
263         }
264
265         public String getPassword() {
266             return password;
267         }
268
269         public void setPassword(String password) {
270             this.password = password;
271         }
272
273         @Override
274         public String toString() {
275             return "Credential [username=" + username + ", password=" + password + "]";
276         }
277
278     }
279
280     @Override
281     public String toString() {
282         return "DmaapConsumerConfiguration [active=" + active + ", hosts=" + hosts + ", consumerGroup=" + consumerGroup + ", consumerId="
283                 + consumerId + ", timeoutMs=" + timeoutMs + ", limit=" + limit + ", pollingInterval=" + pollingInterval
284                 + ", topic=" + topic + ", latitude=" + latitude + ", longitude=" + longitude + ", version=" + version
285                 + ", serviceName=" + serviceName + ", environment=" + environment + ", partner=" + partner
286                 + ", routeOffer=" + routeOffer + ", protocol=" + protocol + ", contenttype=" + contenttype
287                 + ", dme2TraceOn=" + dme2TraceOn + ", aftEnvironment=" + aftEnvironment
288                 + ", aftDme2ConnectionTimeoutMs=" + aftDme2ConnectionTimeoutMs + ", aftDme2RoundtripTimeoutMs="
289                 + aftDme2RoundtripTimeoutMs + ", aftDme2ReadTimeoutMs=" + aftDme2ReadTimeoutMs
290                 + ", dme2preferredRouterFilePath=" + dme2preferredRouterFilePath
291                 + ", timeLimitForNotificationHandleMs=" + timeLimitForNotificationHandleMs + ", credential=" + credential + "]";
292     }
293
294     public Integer getTimeLimitForNotificationHandleMs() {
295         return timeLimitForNotificationHandleMs;
296     }
297
298     public void setTimeLimitForNotificationHandleMs(Integer timeLimitForNotificationHandleMs) {
299         this.timeLimitForNotificationHandleMs = timeLimitForNotificationHandleMs;
300     }
301
302 }