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;
 
  24 import com.fasterxml.jackson.annotation.JsonProperty;
 
  25 import com.fasterxml.jackson.annotation.JsonRootName;
 
  26 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
 
  27 import org.onap.so.bpmn.servicedecomposition.bbobjects.CloudRegion;
 
  29 @JsonRootName("solution")
 
  30 public class SolutionInfo implements Serializable {
 
  32     private static final long serialVersionUID = 6903399488466840832L;
 
  34     @JsonProperty("solution-id") // identifies which solution
 
  35     private Integer solutionId;
 
  36     @JsonProperty("homed")
 
  37     private Boolean homed;
 
  38     @JsonProperty("is-rehome")
 
  39     private Boolean isRehome;
 
  40     @JsonProperty("targeted-cloud")
 
  41     private CloudRegion targetedCloudRegion;
 
  44     public Boolean isHomed() {
 
  48     public void setHomed(Boolean homed) {
 
  52     public Boolean isRehome() {
 
  56     public void setRehome(Boolean isRehome) {
 
  57         this.isRehome = isRehome;
 
  61      * Identifies which solution when multiple solutions exist for a given resource or resource pair. i.e. 1, 2, 3....
 
  63     public Integer getSolutionId() {
 
  68      * Identifies which solution when multiple solutions exist for a given resource or resource pair. i.e. 1, 2, 3....
 
  70     public void setSolutionId(Integer solutionId) {
 
  71         this.solutionId = solutionId;
 
  75      * Identifies where the resource should be created for homed equals false scenarios. Will return null if resource
 
  78     public CloudRegion getTargetedCloudRegion() {
 
  79         return targetedCloudRegion;
 
  83      * Identifies where the resource should be created for homed equals false scenarios. Will return null if resource
 
  86     public void setTargetedCloudRegion(CloudRegion targetedCloudRegion) {
 
  87         this.targetedCloudRegion = targetedCloudRegion;