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