3c8f0e933fc13db55bd98b0ddb882dea453c9d34
[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
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;
29
30 @JsonRootName("solution")
31 public class SolutionInfo implements Serializable {
32
33         private static final long serialVersionUID = 6903399488466840832L;
34
35         @JsonProperty("solution-id") //identifies which solution
36         private Integer solutionId;
37         @JsonProperty("homed")
38         private Boolean homed;
39         @JsonProperty("is-rehome")
40         private Boolean isRehome;
41         @JsonProperty("targeted-cloud")
42         private CloudRegion targetedCloudRegion;
43
44
45         public Boolean isHomed() {
46                 return homed;
47         }
48
49         public void setHomed(Boolean homed) {
50                 this.homed = homed;
51         }
52
53         public Boolean isRehome() {
54                 return isRehome;
55         }
56
57         public void setRehome(Boolean isRehome) {
58                 this.isRehome = isRehome;
59         }
60
61         /**
62          * Identifies which solution when multiple solutions exist for a
63          * given resource or resource pair.
64          * i.e. 1, 2, 3....
65          */
66         public Integer getSolutionId() {
67                 return solutionId;
68         }
69
70         /**
71          * Identifies which solution when multiple solutions exist for a
72          * given resource or resource pair.
73          * i.e. 1, 2, 3....
74          */
75         public void setSolutionId(Integer solutionId) {
76                 this.solutionId = solutionId;
77         }
78
79         /**
80          * Identifies where the resource should be created for
81          * homed equals false scenarios. Will return null if resource
82          * was homed.
83          */
84         public CloudRegion getTargetedCloudRegion() {
85                 return targetedCloudRegion;
86         }
87
88         /**
89          * Identifies where the resource should be created for
90          * homed equals false scenarios. Will return null if resource
91          * was homed.
92          */
93         public void setTargetedCloudRegion(CloudRegion targetedCloudRegion) {
94                 this.targetedCloudRegion = targetedCloudRegion;
95         }
96
97
98
99 }