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;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonRootName;
30 * Stores resources placement and licensing information
33 @JsonRootName("homingSolution")
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 public class HomingSolution extends JsonWrapper implements Serializable {
37 private static final long serialVersionUID = 1L;
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 String oofDirectives;
49 private License license = new License();
53 * @return the inventoryType which indicates the solution type
55 public InventoryType getInventoryType() {
59 public void setInventoryType(InventoryType inventoryType) {
60 this.inventoryType = inventoryType;
62 public boolean isRehome() {
65 public void setRehome(boolean isRehome) {
66 this.isRehome = isRehome;
69 public String getServiceInstanceId() {
70 return serviceInstanceId;
73 public void setServiceInstanceId(String serviceInstanceId) {
74 this.serviceInstanceId = serviceInstanceId;
77 public String getCloudOwner() {
81 public void setCloudOwner(String cloudOwner) {
82 this.cloudOwner = cloudOwner;
85 public String getCloudRegionId() {
89 public void setCloudRegionId(String cloudRegionId) {
90 this.cloudRegionId = cloudRegionId;
93 * @return the aicClli (aka aic site, physical location id)
95 public String getAicClli() {
99 public void setAicClli(String aicClli) {
100 this.aicClli = aicClli;
103 public String getAicVersion() {
107 public void setAicVersion(String aicVersion) {
108 this.aicVersion = aicVersion;
111 public String getTenant() {
115 public void setTenant(String tenant) {
116 this.tenant = tenant;
120 * @return the vnf that the resource was homed too.
122 public VnfResource getVnf() {
126 public void setVnf(VnfResource vnf) {
131 * @return a map<string, string> key is label name, value is any flavor
133 public String getOofDirectives() {
134 return oofDirectives;
137 public void setOofDirectives(String oofDirectives) {
138 this.oofDirectives = oofDirectives;
141 public License getLicense() {
145 public void setLicense(License license) {
146 this.license = license;
150 public static long getSerialversionuid() {
151 return serialVersionUID;