fad3cb605f7fe1b0a5ab5b3a714e4715609fdaba
[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.aai.client.config;
22
23 import org.immutables.gson.Gson;
24 import org.immutables.value.Value;
25
26 import java.io.Serializable;
27 import java.util.Map;
28
29
30 @Value.Immutable(prehash = true)
31 @Value.Style(builder = "new")
32 @Gson.TypeAdapters
33 public abstract class AaiClientConfiguration implements Serializable {
34
35     private static final long serialVersionUID = 1L;
36
37     @Value.Parameter
38     public abstract String pnfUrl();
39
40     /**
41         Due to changes in the aai client configuration json old parameters:
42         aaiHost, aaiProtocol, aaiPort, aaiBasePath, aaiPnfPath
43         will be replaced by pnfUrl
44     */
45     @Deprecated
46     @Value.Parameter
47     public abstract String aaiHost();
48
49     @Deprecated
50     @Value.Parameter
51     public abstract Integer aaiPort();
52
53     @Deprecated
54     @Value.Parameter
55     public abstract String aaiProtocol();
56
57     @Value.Parameter
58     public abstract String aaiUserName();
59
60     @Value.Parameter
61     public abstract String aaiUserPassword();
62
63     @Value.Parameter
64     public abstract Boolean aaiIgnoreSslCertificateErrors();
65
66     @Deprecated
67     @Value.Parameter
68     public abstract String aaiBasePath();
69
70     @Deprecated
71     @Value.Parameter
72     public abstract String aaiPnfPath();
73
74     @Value.Parameter
75     public abstract String aaiServiceInstancePath();
76
77     @Value.Parameter
78     public abstract Map<String, String> aaiHeaders();
79
80     @Value.Parameter
81     public abstract String trustStorePath();
82
83     @Value.Parameter
84     public abstract  String trustStorePasswordPath();
85
86     @Value.Parameter
87     public abstract String keyStorePath();
88
89     @Value.Parameter
90     public abstract String keyStorePasswordPath();
91
92     @Value.Parameter
93     public abstract Boolean enableAaiCertAuth();
94
95 }