5b3cdc68d18c9c1fe2a0e8bb36c115ce86956207
[dcaegen2/platform.git] / mod / bpgenerator / common / src / main / java / org / onap / blueprintgenerator / model / common / Appconfig.java
1 /*
2  *
3  *  * ============LICENSE_START=======================================================
4  *  *  org.onap.dcae
5  *  *  ================================================================================
6  *  *  Copyright (c) 2020  AT&T Intellectual Property. All rights reserved.
7  *  *  ================================================================================
8  *  *  Licensed under the Apache License, Version 2.0 (the "License");
9  *  *  you may not use this file except in compliance with the License.
10  *  *  You may obtain a copy of the License at
11  *  *
12  *  *       http://www.apache.org/licenses/LICENSE-2.0
13  *  *
14  *  *  Unless required by applicable law or agreed to in writing, software
15  *  *  distributed under the License is distributed on an "AS IS" BASIS,
16  *  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  *  *  See the License for the specific language governing permissions and
18  *  *  limitations under the License.
19  *  *  ============LICENSE_END=========================================================
20  *
21  *
22  */
23
24 package org.onap.blueprintgenerator.model.common;
25
26 import org.onap.blueprintgenerator.model.componentspec.common.Calls;
27 import com.fasterxml.jackson.annotation.JsonAnyGetter;
28 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
29 import com.fasterxml.jackson.annotation.JsonInclude;
30 import lombok.Data;
31
32 import java.util.Map;
33
34 /**
35  * @author : Ravi Mantena
36  * @date 10/16/2020 Application: DCAE/ONAP - Blueprint Generator Common Module: Used by both ONAP
37  * and DCAE Blueprint Applications Common Model: A model class which represents App Config
38  */
39 @Data
40 @JsonInclude(value = JsonInclude.Include.NON_NULL)
41 @JsonIgnoreProperties(ignoreUnknown = true)
42 public class Appconfig {
43
44     private Calls[] services_calls;
45
46     private Map<String, Dmaap> streams_publishes;
47
48     private Map<String, Dmaap> streams_subscribes;
49
50     private Map<String, Object> params;
51
52     @JsonAnyGetter // The Map is persisted as flattened properties of the target POJO.
53     public Map<String, Object> getParams() {
54         return params;
55     }
56
57     // Used in ONAP
58     private Calls[] service_calls;
59 }