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