Merge "Reorder modifiers"
[so.git] / bpmn / MSOCoreBPMN / src / main / java / org / openecomp / mso / bpmn / core / domain / HomingSolution.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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
21 package org.openecomp.mso.bpmn.core.domain;
22
23 import java.io.Serializable;
24 import java.util.List;
25
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonRootName;
28
29 /**
30  * Stores resources placement and licensing information
31  *
32  */
33 @JsonRootName("homingSolution")
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 public class HomingSolution extends JsonWrapper implements Serializable  {
36
37         private static final long serialVersionUID = 1L;
38
39         private InventoryType inventoryType;
40         private boolean isRehome;
41         private String serviceInstanceId; //TODO should start using si object instead
42         private String cloudOwner;
43         private String cloudRegionId;
44         private String aicClli;
45         private String aicVersion;
46         private String tenant;
47         private VnfResource vnf;
48         private List<CloudFlavor> flavors;
49         private License license = new License();
50
51
52         /**
53          * @return the inventoryType which indicates the solution type
54          */
55         public InventoryType getInventoryType() {
56                 return inventoryType;
57         }
58
59         public void setInventoryType(InventoryType inventoryType) {
60                 this.inventoryType = inventoryType;
61         }
62         public boolean isRehome() {
63                 return isRehome;
64         }
65         public void setRehome(boolean isRehome) {
66                 this.isRehome = isRehome;
67         }
68
69         public String getServiceInstanceId() {
70                 return serviceInstanceId;
71         }
72
73         public void setServiceInstanceId(String serviceInstanceId) {
74                 this.serviceInstanceId = serviceInstanceId;
75         }
76
77         public String getCloudOwner() {
78                 return cloudOwner;
79         }
80
81         public void setCloudOwner(String cloudOwner) {
82                 this.cloudOwner = cloudOwner;
83         }
84
85         public String getCloudRegionId() {
86                 return cloudRegionId;
87         }
88
89         public void setCloudRegionId(String cloudRegionId) {
90                 this.cloudRegionId = cloudRegionId;
91         }
92         /**
93          * @return the aicClli (aka aic site, physical location id)
94          */
95         public String getAicClli() {
96                 return aicClli;
97         }
98
99         public void setAicClli(String aicClli) {
100                 this.aicClli = aicClli;
101         }
102
103         public String getAicVersion() {
104                 return aicVersion;
105         }
106
107         public void setAicVersion(String aicVersion) {
108                 this.aicVersion = aicVersion;
109         }
110
111         public String getTenant() {
112                 return tenant;
113         }
114
115         public void setTenant(String tenant) {
116                 this.tenant = tenant;
117         }
118
119         /**
120          * @return the vnf that the resource was homed too.
121          */
122         public VnfResource getVnf() {
123                 return vnf;
124         }
125
126         public void setVnf(VnfResource vnf) {
127                 this.vnf = vnf;
128         }
129
130         /**
131          * @return a map<string, string> key is label name, value is any flavor
132          */
133         public List<CloudFlavor> getFlavors() {
134                 return flavors;
135         }
136
137         public void setFlavors(List<CloudFlavor> flavors) {
138                 this.flavors = flavors;
139         }
140
141         public License getLicense() {
142                 return license;
143         }
144
145         public void setLicense(License license) {
146                 this.license = license;
147         }
148
149
150         public static long getSerialversionuid() {
151                 return serialVersionUID;
152         }
153
154
155 }