fixing warnings from checkstyle in common-app-api
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / common / rest / api / RestConfigurationInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 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.common.rest.api;
22
23 import org.openecomp.sdc.common.api.BasicConfiguration;
24
25 public class RestConfigurationInfo extends BasicConfiguration {
26
27     private Integer readTimeoutInSec = null;
28
29     private Boolean ignoreCertificate = null;
30
31     private Integer connectionPoolSize = null;
32
33     private Integer connectTimeoutInSec = null;
34
35     /**
36      * @return the readTimeoutInSec
37      */
38     public Integer getReadTimeoutInSec() {
39         return readTimeoutInSec;
40     }
41
42     /**
43      * @param readTimeoutInSec the readTimeoutInSec to set
44      */
45     public void setReadTimeoutInSec(Integer readTimeoutInSec) {
46         this.readTimeoutInSec = readTimeoutInSec;
47     }
48
49     /**
50      * @return the ignoreCertificate
51      */
52     public Boolean getIgnoreCertificate() {
53         return ignoreCertificate;
54     }
55
56     /**
57      * @param ignoreCertificate the ignoreCertificate to set
58      */
59     public void setIgnoreCertificate(Boolean ignoreCertificate) {
60         this.ignoreCertificate = ignoreCertificate;
61     }
62
63     /**
64      * @return the connectionPoolSize
65      */
66     public Integer getConnectionPoolSize() {
67         return connectionPoolSize;
68     }
69
70     /**
71      * @param connectionPoolSize the connectionPoolSize to set
72      */
73     public void setConnectionPoolSize(Integer connectionPoolSize) {
74         this.connectionPoolSize = connectionPoolSize;
75     }
76
77     /**
78      * @return the connectTimeoutInSec
79      */
80     public Integer getConnectTimeoutInSec() {
81         return connectTimeoutInSec;
82     }
83
84     /**
85      * @param connectTimeoutInSec the connectTimeoutInSec to set
86      */
87     public void setConnectTimeoutInSec(Integer connectTimeoutInSec) {
88         this.connectTimeoutInSec = connectTimeoutInSec;
89     }
90
91     public String toString() {
92
93         StringBuilder builder = new StringBuilder();
94
95         builder.append("[ timeoutInSec=" + readTimeoutInSec + ",");
96         builder.append("connectTimeoutInSec=" + connectTimeoutInSec + ",");
97         builder.append("ignoreCertificate=" + ignoreCertificate + ",");
98         builder.append("connectionPoolSize=" + connectionPoolSize + "]");
99
100         return builder.toString();
101
102     }
103 }