Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / homingobjects / SolutionInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20
21 package org.onap.so.bpmn.servicedecomposition.homingobjects;
22
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;
28
29 @JsonRootName("solution")
30 public class SolutionInfo implements Serializable {
31
32     private static final long serialVersionUID = 6903399488466840832L;
33
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;
42
43
44     public Boolean isHomed() {
45         return homed;
46     }
47
48     public void setHomed(Boolean homed) {
49         this.homed = homed;
50     }
51
52     public Boolean isRehome() {
53         return isRehome;
54     }
55
56     public void setRehome(Boolean isRehome) {
57         this.isRehome = isRehome;
58     }
59
60     /**
61      * Identifies which solution when multiple solutions exist for a given resource or resource pair. i.e. 1, 2, 3....
62      */
63     public Integer getSolutionId() {
64         return solutionId;
65     }
66
67     /**
68      * Identifies which solution when multiple solutions exist for a given resource or resource pair. i.e. 1, 2, 3....
69      */
70     public void setSolutionId(Integer solutionId) {
71         this.solutionId = solutionId;
72     }
73
74     /**
75      * Identifies where the resource should be created for homed equals false scenarios. Will return null if resource
76      * was homed.
77      */
78     public CloudRegion getTargetedCloudRegion() {
79         return targetedCloudRegion;
80     }
81
82     /**
83      * Identifies where the resource should be created for homed equals false scenarios. Will return null if resource
84      * was homed.
85      */
86     public void setTargetedCloudRegion(CloudRegion targetedCloudRegion) {
87         this.targetedCloudRegion = targetedCloudRegion;
88     }
89
90
91
92 }