Blueprint Generator Refactored Code Issue-ID: DCAEGEN2-2472
[dcaegen2/platform.git] / mod / bpgenerator / common / src / main / java / org / onap / blueprintgenerator / model / componentspec / base / Auxilary.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.componentspec.base;
25
26
27 import org.onap.blueprintgenerator.model.componentspec.common.HealthCheck;
28 import org.onap.blueprintgenerator.model.componentspec.common.Policy;
29 import org.onap.blueprintgenerator.model.componentspec.common.Reconfigs;
30 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
31 import com.fasterxml.jackson.annotation.JsonInclude;
32 import com.fasterxml.jackson.annotation.JsonProperty;
33 import lombok.Data;
34 import lombok.EqualsAndHashCode;
35
36 import java.util.LinkedHashMap;
37 import java.util.List;
38 import java.util.Map;
39
40 /**
41  * @author : Ravi Mantena
42  * @date 10/16/2020
43  * Application: DCAE/ONAP - Blueprint Generator
44  * Common Module: Used by both ONAP and DCAE Blueprint Applications
45  * Component Spec Model: For Auxilary
46  */
47
48 @Data
49 @JsonInclude(value = JsonInclude.Include.NON_NULL)
50 @JsonIgnoreProperties(ignoreUnknown = true)
51 @EqualsAndHashCode
52 public class Auxilary {
53
54         private HealthCheck healthcheck;
55
56         private HealthCheck livehealthcheck;
57
58         private Policy policy;
59
60         private Reconfigs reconfigs;
61
62         private List<LinkedHashMap<String, String>> env;
63
64         @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
65         private Map<String, String> databases;
66
67 /*      @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
68         private Affinity affinity;*/
69
70         @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
71         private Object hpa_config;
72
73
74 }