Fix macro flow resource blocks processing order
[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  * Modifications Copyright (c) 2021 Orange
9  * ================================================================================
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  * 
14  *      http://www.apache.org/licenses/LICENSE-2.0
15  * 
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.so.serviceinstancebeans;
25
26 import java.io.Serializable;
27 import java.util.ArrayList;
28 import java.util.List;
29 import java.util.Map;
30 import com.fasterxml.jackson.annotation.JsonInclude;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonRootName;
33 import com.fasterxml.jackson.annotation.JsonInclude.Include;
34
35 @JsonRootName(value = "vnfs")
36 @JsonInclude(Include.NON_DEFAULT)
37 public class Vnfs implements Serializable {
38
39     private static final long serialVersionUID = 8081495240474276501L;
40     @JsonProperty("modelInfo")
41     protected ModelInfo modelInfo;
42     @JsonProperty("cloudConfiguration")
43     protected CloudConfiguration cloudConfiguration;
44     @JsonProperty("instanceName")
45     protected String instanceName;
46     @JsonProperty("platform")
47     protected Platform platform;
48     @JsonProperty("lineOfBusiness")
49     protected LineOfBusiness lineOfBusiness;
50     @JsonProperty("productFamilyId")
51     protected String productFamilyId;
52     @JsonProperty("instanceParams")
53     private List<Map<String, String>> instanceParams = new ArrayList<>();
54     @JsonProperty("vfModules")
55     private List<VfModules> vfModules = new ArrayList<>();
56     @JsonProperty("applicationId")
57     protected String applicationId;
58     @JsonProperty("processingPriority")
59     protected Integer processingPriority = 0;
60
61     public ModelInfo getModelInfo() {
62         return modelInfo;
63     }
64
65     public void setModelInfo(ModelInfo modelInfo) {
66         this.modelInfo = modelInfo;
67     }
68
69     public CloudConfiguration getCloudConfiguration() {
70         return cloudConfiguration;
71     }
72
73     public void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
74         this.cloudConfiguration = cloudConfiguration;
75     }
76
77     public String getInstanceName() {
78         return instanceName;
79     }
80
81     public void setInstanceName(String instanceName) {
82         this.instanceName = instanceName;
83     }
84
85     public Platform getPlatform() {
86         return platform;
87     }
88
89     public void setPlatform(Platform platform) {
90         this.platform = platform;
91     }
92
93     public LineOfBusiness getLineOfBusiness() {
94         return lineOfBusiness;
95     }
96
97     public void setLineOfBusiness(LineOfBusiness lineOfBusiness) {
98         this.lineOfBusiness = lineOfBusiness;
99     }
100
101     public String getProductFamilyId() {
102         return productFamilyId;
103     }
104
105     public void setProductFamilyId(String productFamilyId) {
106         this.productFamilyId = productFamilyId;
107     }
108
109     public List<Map<String, String>> getInstanceParams() {
110         return instanceParams;
111     }
112
113     public void setInstanceParams(List<Map<String, String>> instanceParams) {
114         this.instanceParams = instanceParams;
115     }
116
117     public List<VfModules> getVfModules() {
118         return vfModules;
119     }
120
121     public void setVfModules(List<VfModules> vfModules) {
122         this.vfModules = vfModules;
123     }
124
125     public String getApplicationId() {
126         return applicationId;
127     }
128
129     public void setApplicationId(String applicationId) {
130         this.applicationId = applicationId;
131     }
132
133     public Integer getProcessingPriority() {
134         return processingPriority;
135     }
136
137     public void setProcessingPriority(Integer processingPriority) {
138         this.processingPriority = processingPriority;
139     }
140
141     @Override
142     public String toString() {
143         return "Vnfs [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration + ", instanceName="
144                 + instanceName + ", platform=" + platform + ", " + "lineOfBusiness=" + lineOfBusiness
145                 + ", productFamilyId=" + productFamilyId + ", instanceParams=" + instanceParams + ", vfModules="
146                 + vfModules + ", applicaionId=" + applicationId + ", processingPriority=" + processingPriority + " ]";
147     }
148
149 }