29c3a5e8d067d7bfe05ac7290758264a74ce585e
[dcaegen2/services/sdk.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * DCAEGEN2-SERVICES-SDK
4  * ================================================================================
5  * Copyright (C) 2018 NOKIA 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.onap.dcaegen2.services.sdk.rest.services.dmaap.client.config;
22
23 import java.io.Serializable;
24 import org.immutables.value.Value;
25
26 /**
27  * @author <a href="mailto:przemyslaw.wasala@nokia.com">Przemysław Wąsala</a> on 3/28/18
28  * @deprecated Use new API {@link org.onap.dcaegen2.services.sdk.rest.services.dmaap.client.api.DmaapClientFactory}
29  */
30 @Deprecated
31 public interface DmaapCustomConfig extends Serializable {
32
33     @Deprecated
34     @Value.Parameter
35     String dmaapHostName();
36
37     @Deprecated
38     @Value.Parameter
39     Integer dmaapPortNumber();
40
41     @Deprecated
42     @Value.Parameter
43     String dmaapTopicName();
44
45     @Deprecated
46     @Value.Parameter
47     String dmaapProtocol();
48
49     @Value.Parameter
50     String dmaapUserName();
51
52     @Value.Parameter
53     String dmaapUserPassword();
54
55     @Value.Parameter
56     String dmaapContentType();
57
58     @Value.Parameter
59     String trustStorePath();
60
61     @Value.Parameter
62     String trustStorePasswordPath();
63
64     @Value.Parameter
65     String keyStorePath();
66
67     @Value.Parameter
68     String keyStorePasswordPath();
69
70     @Value.Parameter
71     Boolean enableDmaapCertAuth();
72
73     @Value.Parameter
74     String endpointUrl();
75
76     interface Builder<T extends DmaapCustomConfig, B extends Builder<T, B>> {
77
78         B dmaapHostName(String dmaapHostName);
79
80         B dmaapPortNumber(Integer dmaapPortNumber);
81
82         B dmaapTopicName(String dmaapTopicName);
83
84         B dmaapProtocol(String dmaapProtocol);
85
86         B dmaapUserName(String dmaapUserName);
87
88         B dmaapUserPassword(String dmaapUserPassword);
89
90         B dmaapContentType(String dmaapContentType);
91
92         B trustStorePath(String trustStorePath);
93
94         B trustStorePasswordPath(String trustStorePasswordPath);
95
96         B keyStorePath(String keyStore);
97
98         B keyStorePasswordPath(String keyStorePass);
99
100         B enableDmaapCertAuth(Boolean enableDmaapCertAuth);
101
102         B endpointUrl(String endpointUrl);
103
104         T build();
105     }
106 }