2 * ================================================================================
3 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 * ============LICENSE_END=========================================================
20 package org.onap.dcae.analytics.tca.web;
23 import lombok.EqualsAndHashCode;
24 import lombok.ToString;
26 import org.onap.dcae.analytics.model.TcaModelConstants;
27 import org.onap.dcae.analytics.model.configbindingservice.BaseConfigBindingServiceProperties;
28 import org.onap.dcae.analytics.model.configbindingservice.ConfigBindingServiceConstants;
29 import org.onap.dcae.analytics.model.configbindingservice.ConfigBindingServiceModel;
30 import org.springframework.boot.context.properties.ConfigurationProperties;
31 import org.springframework.validation.annotation.Validated;
34 * @author Rajiv Singla
37 @EqualsAndHashCode(callSuper = true)
38 @ConfigurationProperties(ConfigBindingServiceConstants.CONFIG_BINDING_SERVICE_PROPERTIES_KEY)
40 public class TcaAppProperties extends BaseConfigBindingServiceProperties {
42 private static final long serialVersionUID = 1L;
47 * TCA Application properties
50 public static class Tca implements ConfigBindingServiceModel {
52 private static final long serialVersionUID = 1L;
54 private String policy;
55 private Integer processingBatchSize = TcaModelConstants.DEFAULT_TCA_PROCESSING_BATCH_SIZE;
56 private Boolean enableAbatement = TcaModelConstants.DEFAULT_ABATEMENT_ENABLED;
57 private Boolean enableEcompLogging = TcaModelConstants.DEFAULT_ECOMP_LOGGING_ENABLED;
58 private Aai aai = new Aai();
67 @ToString(exclude = "password")
68 public static class Aai implements ConfigBindingServiceModel {
70 private static final long serialVersionUID = 1L;
72 private Boolean enableEnrichment = TcaModelConstants.DEFAULT_AAI_ENRICHMENT_ENABLED;
74 private String username;
75 private String password;
77 private String proxyUrl = null;
78 private Boolean ignoreSSLValidation = TcaModelConstants.DEFAULT_TCA_AAI_IGNORE_SSL_VALIDATION;
80 private String genericVnfPath = TcaModelConstants.DEFAULT_TCA_AAI_GENERIC_VNF_PATH;
81 private String nodeQueryPath = TcaModelConstants.DEFAULT_TCA_AAI_NODE_QUERY_PATH;