Fix macro flow resource blocks processing order
[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  * Modifications Copyright (c) 2021 Orange
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 package org.onap.so.serviceinstancebeans;
23
24 import com.fasterxml.jackson.annotation.JsonInclude;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.annotation.JsonRootName;
27 import java.io.Serializable;
28 import java.util.ArrayList;
29 import java.util.List;
30 import java.util.Map;
31
32 @JsonRootName(value = "pnfs")
33 @JsonInclude(JsonInclude.Include.NON_DEFAULT)
34 public class Pnfs implements Serializable {
35
36     private static final long serialVersionUID = 8081495240474276501L;
37     @JsonProperty("modelInfo")
38     protected ModelInfo modelInfo;
39     @JsonProperty("cloudConfiguration")
40     protected CloudConfiguration cloudConfiguration;
41     @JsonProperty("instanceName")
42     protected String instanceName;
43     @JsonProperty("platform")
44     protected Platform platform;
45     @JsonProperty("lineOfBusiness")
46     protected LineOfBusiness lineOfBusiness;
47     @JsonProperty("productFamilyId")
48     protected String productFamilyId;
49     @JsonProperty("instanceParams")
50     private List<Map<String, String>> instanceParams = new ArrayList<>();
51     @JsonProperty("processingPriority")
52     protected Integer processingPriority = 0;
53
54     public ModelInfo getModelInfo() {
55         return modelInfo;
56     }
57
58     public void setModelInfo(ModelInfo modelInfo) {
59         this.modelInfo = modelInfo;
60     }
61
62     public CloudConfiguration getCloudConfiguration() {
63         return cloudConfiguration;
64     }
65
66     public void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
67         this.cloudConfiguration = cloudConfiguration;
68     }
69
70     public String getInstanceName() {
71         return instanceName;
72     }
73
74     public void setInstanceName(String instanceName) {
75         this.instanceName = instanceName;
76     }
77
78     public Platform getPlatform() {
79         return platform;
80     }
81
82     public void setPlatform(Platform platform) {
83         this.platform = platform;
84     }
85
86     public LineOfBusiness getLineOfBusiness() {
87         return lineOfBusiness;
88     }
89
90     public void setLineOfBusiness(LineOfBusiness lineOfBusiness) {
91         this.lineOfBusiness = lineOfBusiness;
92     }
93
94     public String getProductFamilyId() {
95         return productFamilyId;
96     }
97
98     public void setProductFamilyId(String productFamilyId) {
99         this.productFamilyId = productFamilyId;
100     }
101
102     public List<Map<String, String>> getInstanceParams() {
103         return instanceParams;
104     }
105
106     public void setInstanceParams(List<Map<String, String>> instanceParams) {
107         this.instanceParams = instanceParams;
108     }
109
110     public Integer getProcessingPriority() {
111         return processingPriority;
112     }
113
114     public void setProcessingPriority(Integer processingPriority) {
115         this.processingPriority = processingPriority;
116     }
117
118     @Override
119     public String toString() {
120         return "Pnfs [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration + ", instanceName="
121                 + instanceName + ", platform=" + platform + ", " + "lineOfBusiness=" + lineOfBusiness
122                 + ", productFamilyId=" + productFamilyId + ", instanceParams=" + instanceParams
123                 + ", processingPriority=" + processingPriority + "]";
124     }
125
126 }