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