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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.dcaegen2.services.sdk.rest.services.aai.client.config;
23 import java.io.Serializable;
25 import org.immutables.gson.Gson;
26 import org.immutables.value.Value;
28 @Value.Immutable(prehash = true)
29 @Value.Style(builder = "new")
31 public abstract class AaiClientConfiguration implements Serializable {
33 private static final String PNF_PATH = "/network/pnfs/pnf";
34 private static final String SERVICE_INSTANCE_PATH = "/business/customers/customer/${customer}/service-subscriptions/service-subscription/${serviceType}/service-instances/service-instance/${serviceInstanceId}";
36 private static final long serialVersionUID = 1L;
40 public String baseUrl() {
45 * Please use baseUrl() instead
49 public String pnfUrl() {
50 return baseUrl() + PNF_PATH;
54 public abstract String aaiUserName();
57 public abstract String aaiUserPassword();
60 public abstract Boolean aaiIgnoreSslCertificateErrors();
63 * Please use baseUrl() instead
67 public String aaiServiceInstancePath() {
68 return SERVICE_INSTANCE_PATH;
72 public abstract Map<String, String> aaiHeaders();
75 public abstract String trustStorePath();
78 public abstract String trustStorePasswordPath();
81 public abstract String keyStorePath();
84 public abstract String keyStorePasswordPath();
87 public abstract Boolean enableAaiCertAuth();