Dynamic Cloud Owner Support
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / homingobjects / Candidate.java
index 0184668..91cd2ad 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -35,6 +35,8 @@ public class Candidate implements Serializable {
        private CandidateType candidateType;
        @JsonProperty("candidates")
        private List<String> candidates;
+       @JsonProperty("cloudOwner")
+       private String cloudOwner;
 
        /**
         * list of candidates
@@ -68,4 +70,20 @@ public class Candidate implements Serializable {
                this.candidateType = candidateType;
        }
 
+       /**
+        * The name of the cloud owner. Required if candidateType is cloudRegionId
+        */
+       public String getCloudOwner(){
+               return cloudOwner;
+       }
+
+       /**
+        * The name of the cloud owner. Required if candidateType is cloudRegionId
+        */
+       public void setCloudOwner(String cloudOwner){
+               this.cloudOwner = cloudOwner;
+       }
+
+
+
 }