b55a528935ece4af795d711b34e1a3aaecd4fa7c
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / Vnfs.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 = "vnfs")
35 @JsonInclude(Include.NON_DEFAULT)
36 public class Vnfs 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("platform")
46         protected Platform platform;
47         @JsonProperty("lineOfBusiness")
48         protected LineOfBusiness lineOfBusiness;
49         @JsonProperty("productFamilyId")
50         protected String productFamilyId;
51         @JsonProperty("instanceParams")
52         private List<Map<String, String>> instanceParams = new ArrayList<>();
53         @JsonProperty("vfModules")
54         private List<VfModules> vfModules = new ArrayList<>();
55         
56
57         public ModelInfo getModelInfo() {
58                 return modelInfo;
59         }
60
61         public void setModelInfo(ModelInfo modelInfo) {
62                 this.modelInfo = modelInfo;
63         }
64
65         public CloudConfiguration getCloudConfiguration() {
66                 return cloudConfiguration;
67         }
68
69         public void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
70                 this.cloudConfiguration = cloudConfiguration;
71         }
72
73         public String getInstanceName() {
74                 return instanceName;
75         }
76
77         public void setInstanceName(String instanceName) {
78                 this.instanceName = instanceName;
79         }
80
81         public Platform getPlatform() {
82                 return platform;
83         }
84
85         public void setPlatform(Platform platform) {
86                 this.platform = platform;
87         }
88
89         public LineOfBusiness getLineOfBusiness() {
90                 return lineOfBusiness;
91         }
92
93         public void setLineOfBusiness(LineOfBusiness lineOfBusiness) {
94                 this.lineOfBusiness = lineOfBusiness;
95         }
96
97         public String getProductFamilyId() {
98                 return productFamilyId;
99         }
100
101         public void setProductFamilyId(String productFamilyId) {
102                 this.productFamilyId = productFamilyId;
103         }
104
105         public List<Map<String, String>> getInstanceParams() {
106                 return instanceParams;
107         }
108
109         public void setInstanceParams(List<Map<String, String>> instanceParams) {
110                 this.instanceParams = instanceParams;
111         }
112
113         public List<VfModules> getVfModules() {
114                 return vfModules;
115         }
116
117         public void setVfModules(List<VfModules> vfModules) {
118                 this.vfModules = vfModules;
119         }
120
121         @Override
122         public String toString() {
123                 return "Vnfs [modelInfo=" + modelInfo + 
124                                 ", cloudConfiguration=" + cloudConfiguration + 
125                                 ", instanceName=" + instanceName + ", platform=" + platform + ", " + 
126                                 "lineOfBusiness=" + lineOfBusiness + 
127                                 ", productFamilyId=" + productFamilyId + ", instanceParams=" + instanceParams + 
128                                 ", vfModules=" + vfModules + "]";
129         }
130         
131 }