Merge "Add support for config_volume in blueprint generator"
[dcaegen2/platform.git] / mod / bpgenerator / common / src / main / java / org / onap / blueprintgenerator / model / componentspec / common / Volumes.java
1 /*
2  *
3  *  * ============LICENSE_START=======================================================
4  *  *  org.onap.dcae
5  *  *  ================================================================================
6  *  *  Copyright (c) 2020  AT&T Intellectual Property. All rights reserved.
7  *  *  Copyright (c) 2021  Nokia. All rights reserved.
8  *  *  ================================================================================
9  *  *  Licensed under the Apache License, Version 2.0 (the "License");
10  *  *  you may not use this file except in compliance with the License.
11  *  *  You may obtain a copy of the License at
12  *  *
13  *  *       http://www.apache.org/licenses/LICENSE-2.0
14  *  *
15  *  *  Unless required by applicable law or agreed to in writing, software
16  *  *  distributed under the License is distributed on an "AS IS" BASIS,
17  *  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  *  *  See the License for the specific language governing permissions and
19  *  *  limitations under the License.
20  *  *  ============LICENSE_END=========================================================
21  *
22  *
23  */
24
25 package org.onap.blueprintgenerator.model.componentspec.common;
26
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonProperty;
30 import lombok.Data;
31 import lombok.EqualsAndHashCode;
32
33 /**
34  * @author : Ravi Mantena
35  * @date 10/16/2020 Application: DCAE/ONAP - Blueprint Generator Common Module: Used by both ONAP
36  * and DCAE Blueprint Applications Component Spec Model: A model class which represents Volumes used
37  * in Componentspec
38  */
39 @Data
40 @JsonInclude(value = JsonInclude.Include.NON_NULL)
41 @JsonIgnoreProperties(ignoreUnknown = true)
42 @EqualsAndHashCode
43 public class Volumes {
44
45     private Container container;
46
47     private Host host;
48
49     @JsonProperty("config_volume")
50     private ConfigVolume configVolume;
51
52     private String type;
53
54     private String name;
55 }