2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.openecomp.mso.bpmn.core.domain;
\r
23 import java.io.Serializable;
\r
24 import java.util.List;
\r
26 import com.fasterxml.jackson.annotation.JsonInclude;
\r
27 import com.fasterxml.jackson.annotation.JsonRootName;
\r
30 * Stores resources placement and licensing information
\r
33 @JsonRootName("homingSolution")
\r
34 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
35 public class HomingSolution extends JsonWrapper implements Serializable {
\r
37 private static final long serialVersionUID = 1L;
\r
39 private InventoryType inventoryType;
\r
40 private boolean isRehome;
\r
41 private String serviceInstanceId; //TODO should start using si object instead
\r
42 private String cloudOwner;
\r
43 private String cloudRegionId;
\r
44 private String aicClli;
\r
45 private String aicVersion;
\r
46 private String tenant;
\r
47 private VnfResource vnf;
\r
48 private License license = new License();
\r
52 * @return the inventoryType which indicates the solution type
\r
54 public InventoryType getInventoryType() {
\r
55 return inventoryType;
\r
58 public void setInventoryType(InventoryType inventoryType) {
\r
59 this.inventoryType = inventoryType;
\r
61 public boolean isRehome() {
\r
64 public void setRehome(boolean isRehome) {
\r
65 this.isRehome = isRehome;
\r
68 public String getServiceInstanceId() {
\r
69 return serviceInstanceId;
\r
72 public void setServiceInstanceId(String serviceInstanceId) {
\r
73 this.serviceInstanceId = serviceInstanceId;
\r
76 public String getCloudOwner() {
\r
80 public void setCloudOwner(String cloudOwner) {
\r
81 this.cloudOwner = cloudOwner;
\r
84 public String getCloudRegionId() {
\r
85 return cloudRegionId;
\r
88 public void setCloudRegionId(String cloudRegionId) {
\r
89 this.cloudRegionId = cloudRegionId;
\r
92 * @return the aicClli (aka aic site, physical location id)
\r
94 public String getAicClli() {
\r
98 public void setAicClli(String aicClli) {
\r
99 this.aicClli = aicClli;
\r
102 public String getAicVersion() {
\r
106 public void setAicVersion(String aicVersion) {
\r
107 this.aicVersion = aicVersion;
\r
110 public String getTenant() {
\r
114 public void setTenant(String tenant) {
\r
115 this.tenant = tenant;
\r
119 * @return the vnf that the resource was homed too.
\r
121 public VnfResource getVnf() {
\r
125 public void setVnf(VnfResource vnf) {
\r
129 public License getLicense() {
\r
133 public void setLicense(License license) {
\r
134 this.license = license;
\r
138 public static long getSerialversionuid() {
\r
139 return serialVersionUID;
\r