Merge "Exception test Fix"
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / controllers / RicInfo.java
index 1139151..73103b8 100644 (file)
  * limitations under the License.
  * ========================LICENSE_END===================================
  */
+
 package org.oransc.policyagent.controllers;
 
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
 
-import java.util.Vector;
+import java.util.Collection;
 
 import org.immutables.gson.Gson;
-import org.immutables.value.Value;
 
-@Value.Immutable
 @Gson.TypeAdapters
-interface RicInfo {
+@ApiModel(value = "RicInfo")
+class RicInfo {
+    @ApiModelProperty(value = "identity of the ric")
+    public final String name;
+
+    @ApiModelProperty(value = "O1 identities for managed entities")
+    public final Collection<String> managedElementIds;
 
-    public String name();
+    @ApiModelProperty(value = "supported policy types")
+    public final Collection<String> policyTypes;
 
-    public Vector<String> nodeNames();
+    RicInfo(String name, Collection<String> managedElementIds, Collection<String> policyTypes) {
+        this.name = name;
+        this.managedElementIds = managedElementIds;
+        this.policyTypes = policyTypes;
+    }
 }