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.servicedecomposition.homingobjects;
 
  23 import java.io.Serializable;
 
  25 import com.fasterxml.jackson.annotation.JsonProperty;
 
  26 import com.fasterxml.jackson.annotation.JsonRootName;
 
  27 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
 
  28 import org.onap.so.bpmn.servicedecomposition.bbobjects.CloudRegion;
 
  30 @JsonRootName("solution")
 
  31 public class SolutionInfo implements Serializable {
 
  33         private static final long serialVersionUID = 6903399488466840832L;
 
  35         @JsonProperty("solution-id") //identifies which solution
 
  36         private int solutionId;
 
  37         @JsonProperty("homed")
 
  38         private boolean homed;
 
  39         @JsonProperty("is-rehome")
 
  40         private boolean isRehome;
 
  41         @JsonProperty("targeted-cloud")
 
  42         private CloudRegion targetedCloudRegion;
 
  45         public boolean isHomed() {
 
  49         public void setHomed(boolean homed) {
 
  53         public boolean isRehome() {
 
  57         public void setRehome(boolean isRehome) {
 
  58                 this.isRehome = isRehome;
 
  62          * Identifies which solution when multiple solutions exist for a
 
  63          * given resource or resource pair.
 
  66         public int getSolutionId() {
 
  71          * Identifies which solution when multiple solutions exist for a
 
  72          * given resource or resource pair.
 
  75         public void setSolutionId(int solutionId) {
 
  76                 this.solutionId = solutionId;
 
  80          * Identifies where the resource should be created for
 
  81          * homed equals false scenarios. Will return null if resource
 
  84         public CloudRegion getTargetedCloudRegion() {
 
  85                 return targetedCloudRegion;
 
  89          * Identifies where the resource should be created for
 
  90          * homed equals false scenarios. Will return null if resource
 
  93         public void setTargetedCloudRegion(CloudRegion targetedCloudRegion) {
 
  94                 this.targetedCloudRegion = targetedCloudRegion;