Containerization feature of SO
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / VfModules.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright (C) 2017 Huawei Technologies Co., Ltd. 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 package org.onap.so.serviceinstancebeans;
23
24 import java.io.Serializable;
25 import java.util.ArrayList;
26 import java.util.List;
27 import java.util.Map;
28
29 import com.fasterxml.jackson.annotation.JsonInclude;
30 import com.fasterxml.jackson.annotation.JsonProperty;
31 import com.fasterxml.jackson.annotation.JsonRootName;
32 import com.fasterxml.jackson.annotation.JsonInclude.Include;
33
34 @JsonRootName(value = "vfmodules")
35 @JsonInclude(Include.NON_DEFAULT)
36 public class VfModules implements Serializable{
37
38         private static final long serialVersionUID = 8081495240474276501L;
39         @JsonProperty("modelInfo")
40         protected ModelInfo modelInfo;
41         @JsonProperty("cloudConfiguration")
42         protected CloudConfiguration cloudConfiguration;
43         @JsonProperty("instanceName")
44         protected String instanceName;
45         @JsonProperty("volumeGroupInstanceName")
46         protected String volumeGroupInstanceName;
47         @JsonProperty("instanceParams")
48         private List<Map<String, String>> instanceParams = new ArrayList<>();
49         
50
51         public ModelInfo getModelInfo() {
52                 return modelInfo;
53         }
54
55         public void setModelInfo(ModelInfo modelInfo) {
56                 this.modelInfo = modelInfo;
57         }
58
59         public CloudConfiguration getCloudConfiguration() {
60                 return cloudConfiguration;
61         }
62
63         public void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
64                 this.cloudConfiguration = cloudConfiguration;
65         }
66
67         public String getInstanceName() {
68                 return instanceName;
69         }
70
71         public void setInstanceName(String instanceName) {
72                 this.instanceName = instanceName;
73         }
74         
75         public String getVolumeGroupInstanceName() {
76                 return volumeGroupInstanceName;
77         }
78
79         public void setVolumeGroupInstanceName(String volumeGroupInstanceName) {
80                 this.volumeGroupInstanceName = volumeGroupInstanceName;
81         }
82
83         public List<Map<String, String>> getInstanceParams() {
84                 return instanceParams;
85         }
86
87         public void setInstanceParams(List<Map<String, String>> instanceParams) {
88                 this.instanceParams = instanceParams;
89         }
90
91         @Override
92         public String toString() {
93                 return "VfModules [modelInfo=" + modelInfo + 
94                                 ", cloudConfiguration=" + cloudConfiguration + 
95                                 ", instanceName=" + instanceName + ", volumeGroupInstanceName=" 
96                                 + volumeGroupInstanceName + ", instanceParams=" + instanceParams + "]";
97         }
98         
99 }