2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.bpmn.core.domain;
23 import java.io.Serializable;
24 import java.util.List;
25 import com.fasterxml.jackson.annotation.JsonInclude;
26 import com.fasterxml.jackson.annotation.JsonRootName;
29 * Stores resources placement and licensing information
32 @JsonRootName("homingSolution")
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 public class HomingSolution extends JsonWrapper implements Serializable {
36 private static final long serialVersionUID = 1L;
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();
52 * @return the inventoryType which indicates the solution type
54 public InventoryType getInventoryType() {
58 public void setInventoryType(InventoryType inventoryType) {
59 this.inventoryType = inventoryType;
62 public boolean isRehome() {
66 public void setRehome(boolean isRehome) {
67 this.isRehome = isRehome;
70 public String getServiceInstanceId() {
71 return serviceInstanceId;
74 public void setServiceInstanceId(String serviceInstanceId) {
75 this.serviceInstanceId = serviceInstanceId;
78 public String getCloudOwner() {
82 public void setCloudOwner(String cloudOwner) {
83 this.cloudOwner = cloudOwner;
86 public String getCloudRegionId() {
90 public void setCloudRegionId(String cloudRegionId) {
91 this.cloudRegionId = cloudRegionId;
95 * @return the aicClli (aka aic site, physical location id)
97 public String getAicClli() {
101 public void setAicClli(String aicClli) {
102 this.aicClli = aicClli;
105 public String getAicVersion() {
109 public void setAicVersion(String aicVersion) {
110 this.aicVersion = aicVersion;
113 public String getTenant() {
117 public void setTenant(String tenant) {
118 this.tenant = tenant;
122 * @return the vnf that the resource was homed too.
124 public VnfResource getVnf() {
128 public void setVnf(VnfResource vnf) {
133 * @return a map<string, string> key is label name, value is any flavor
135 public String getOofDirectives() {
136 return oofDirectives;
139 public void setOofDirectives(String oofDirectives) {
140 this.oofDirectives = oofDirectives;
143 public License getLicense() {
147 public void setLicense(License license) {
148 this.license = license;
152 public static long getSerialversionuid() {
153 return serialVersionUID;