f601ebc3bd0e995170b6907265d9306847f1ec95
[so.git] / common / src / main / java / org / onap / so / serviceinstancebeans / Pnfs.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2019 Nokia
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.onap.so.serviceinstancebeans;
21
22 import com.fasterxml.jackson.annotation.JsonInclude;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonRootName;
25 import java.io.Serializable;
26 import java.util.ArrayList;
27 import java.util.List;
28 import java.util.Map;
29
30 @JsonRootName(value = "pnfs")
31 @JsonInclude(JsonInclude.Include.NON_DEFAULT)
32 public class Pnfs implements Serializable {
33
34     private static final long serialVersionUID = 8081495240474276501L;
35     @JsonProperty("modelInfo")
36     protected ModelInfo modelInfo;
37     @JsonProperty("cloudConfiguration")
38     protected CloudConfiguration cloudConfiguration;
39     @JsonProperty("instanceName")
40     protected String instanceName;
41     @JsonProperty("platform")
42     protected Platform platform;
43     @JsonProperty("lineOfBusiness")
44     protected LineOfBusiness lineOfBusiness;
45     @JsonProperty("productFamilyId")
46     protected String productFamilyId;
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 Platform getPlatform() {
76         return platform;
77     }
78
79     public void setPlatform(Platform platform) {
80         this.platform = platform;
81     }
82
83     public LineOfBusiness getLineOfBusiness() {
84         return lineOfBusiness;
85     }
86
87     public void setLineOfBusiness(LineOfBusiness lineOfBusiness) {
88         this.lineOfBusiness = lineOfBusiness;
89     }
90
91     public String getProductFamilyId() {
92         return productFamilyId;
93     }
94
95     public void setProductFamilyId(String productFamilyId) {
96         this.productFamilyId = productFamilyId;
97     }
98
99     public List<Map<String, String>> getInstanceParams() {
100         return instanceParams;
101     }
102
103     public void setInstanceParams(List<Map<String, String>> instanceParams) {
104         this.instanceParams = instanceParams;
105     }
106
107     @Override
108     public String toString() {
109         return "Pnfs [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration + ", instanceName="
110                 + instanceName + ", platform=" + platform + ", " + "lineOfBusiness=" + lineOfBusiness
111                 + ", productFamilyId=" + productFamilyId + ", instanceParams=" + instanceParams + "]";
112     }
113
114 }