Catalog alignment
[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
44          *            the readTimeoutInSec to set
45          */
46         public void setReadTimeoutInSec(Integer readTimeoutInSec) {
47                 this.readTimeoutInSec = readTimeoutInSec;
48         }
49
50         /**
51          * @return the ignoreCertificate
52          */
53         public Boolean getIgnoreCertificate() {
54                 return ignoreCertificate;
55         }
56
57         /**
58          * @param ignoreCertificate
59          *            the ignoreCertificate to set
60          */
61         public void setIgnoreCertificate(Boolean ignoreCertificate) {
62                 this.ignoreCertificate = ignoreCertificate;
63         }
64
65         /**
66          * @return the connectionPoolSize
67          */
68         public Integer getConnectionPoolSize() {
69                 return connectionPoolSize;
70         }
71
72         /**
73          * @param connectionPoolSize
74          *            the connectionPoolSize to set
75          */
76         public void setConnectionPoolSize(Integer connectionPoolSize) {
77                 this.connectionPoolSize = connectionPoolSize;
78         }
79
80         /**
81          * @return the connectTimeoutInSec
82          */
83         public Integer getConnectTimeoutInSec() {
84                 return connectTimeoutInSec;
85         }
86
87         /**
88          * @param connectTimeoutInSec
89          *            the connectTimeoutInSec to set
90          */
91         public void setConnectTimeoutInSec(Integer connectTimeoutInSec) {
92                 this.connectTimeoutInSec = connectTimeoutInSec;
93         }
94
95         public String toString() {
96
97                 StringBuilder builder = new StringBuilder();
98
99                 builder.append("[ timeoutInSec=" + readTimeoutInSec + ",");
100                 builder.append("connectTimeoutInSec=" + connectTimeoutInSec + ",");
101                 builder.append("ignoreCertificate=" + ignoreCertificate + ",");
102                 builder.append("connectionPoolSize=" + connectionPoolSize + "]");
103
104                 return builder.toString();
105
106         }
107 }