Standalone TCA with EELF Logger
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-tca-web / src / main / java / org / onap / dcae / analytics / tca / web / TcaAppProperties.java
1 /*
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
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
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=========================================================
17  *
18  */
19
20 package org.onap.dcae.analytics.tca.web;
21
22 import lombok.Data;
23 import lombok.EqualsAndHashCode;
24 import lombok.ToString;
25
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;
32
33 /**
34  * @author Rajiv Singla
35  */
36 @Data
37 @EqualsAndHashCode(callSuper = true)
38 @ConfigurationProperties(ConfigBindingServiceConstants.CONFIG_BINDING_SERVICE_PROPERTIES_KEY)
39 @Validated
40 public class TcaAppProperties extends BaseConfigBindingServiceProperties {
41
42     private static final long serialVersionUID = 1L;
43
44     private Tca tca;
45
46     /**
47      * TCA Application properties
48      */
49     @Data
50     public static class Tca implements ConfigBindingServiceModel {
51
52         private static final long serialVersionUID = 1L;
53
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();
59
60     }
61
62
63     /**
64      * A&AI properties
65      */
66     @Data
67     @ToString(exclude = "password")
68     public static class Aai implements ConfigBindingServiceModel {
69
70         private static final long serialVersionUID = 1L;
71
72         private Boolean enableEnrichment = TcaModelConstants.DEFAULT_AAI_ENRICHMENT_ENABLED;
73         private String url;
74         private String username;
75         private String password;
76
77         private String proxyUrl = null;
78         private Boolean ignoreSSLValidation = TcaModelConstants.DEFAULT_TCA_AAI_IGNORE_SSL_VALIDATION;
79
80         private String genericVnfPath = TcaModelConstants.DEFAULT_TCA_AAI_GENERIC_VNF_PATH;
81         private String nodeQueryPath = TcaModelConstants.DEFAULT_TCA_AAI_NODE_QUERY_PATH;
82
83     }
84
85
86 }