package org.opentosca.container.api.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class PlacementNodeTemplate {

    @JsonProperty("id")
    private String id;

    @JsonProperty("name")
    private String name;

    @JsonProperty("node_type")
    private String nodeType;

    private String instanceRef;

    PlacementNodeTemplate() {}

    PlacementNodeTemplate(final String id, final String name, final String nodeType) {
        this.id = id;
        this.name = name;
        this.nodeType = nodeType;
    }

    public void setId(final String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setNodeType(final String nodeType) {
        this.nodeType = nodeType;
    }

    public String getNodeType() {
        return this.nodeType;
    }

    public void setInstanceRef(final String instanceRef) {
        this.instanceRef = instanceRef;
    }

    public String getInstaceRef() {
        return this.instanceRef;
    }
}

@@ -35,16 +35,40 @@
 i.dto;%0A%0A
+import java.util.List;%0A%0A
 import c
@@ -431,34 +431,72 @@
 private 
-String i
+List%3CNodeTemplateInstanceDTO%3E validNodeTemplateI
 nstance
-Ref
+s
 ;%0A%0A    P
@@ -1152,24 +1152,41 @@
 void set
+ValidNodeTemplate
 Instance
 Ref(fina
@@ -1181,36 +1181,72 @@
 ance
-Ref
+s
 (final 
-String i
+List%3CNodeTemplateInstanceDTO%3E validNodeTemplateI
 nstance
-Ref
+s
 ) %7B%0A
@@ -1262,33 +1262,63 @@
 his.
-instanceRef = i
+validNodeTemplateInstances = validNodeTemplateI
 nstance
-Ref
+s
 ;%0A  
@@ -1337,28 +1337,67 @@
 lic 
-String get
+List%3CNodeTemplateInstanceDTO%3E getValidNodeTemplate
 Insta
+n
 ce
-Ref
+s
 () %7B
@@ -1421,19 +1421,34 @@
 his.
-i
+validNodeTemplateI
 nstance
-Ref
+s
 ;%0A  

remove useless property and added valid node template list as property