package io.subutai.hub.share.dto.environment;


import java.util.HashSet;
import java.util.Set;

//TODO:TEMPLATE add templateId
public class EnvironmentNodeDto
{
    private String hostId;

    private String hostName;

    private String containerName;

    private String environmentId;

    private String ownerId;

    private String templateName;

    private String templateArch;

    private String containerSize;

    private String ip;

    private String containerId;

    private ContainerStateDto state;

    private long elapsedTime;

    private int ipAddressOffset;

    private Set<String> sshKeys = new HashSet<>();


    public EnvironmentNodeDto()
    {
    }


    public String getHostId()
    {
        return hostId;
    }


    public String getHostName()
    {
        return hostName;
    }


    public String getContainerName()
    {
        return containerName;
    }


    public String getTemplateName()
    {
        return templateName;
    }


    public String getContainerSize()
    {
        return containerSize;
    }


    public String getIp()
    {
        return ip;
    }


    public String getContainerId()
    {
        return containerId;
    }


    public void setContainerId( final String containerId )
    {
        this.containerId = containerId;
    }


    public ContainerStateDto getState()
    {
        return state;
    }


    public void setState( final ContainerStateDto state )
    {
        this.state = state;
    }


    public Set<String> getSshKeys()
    {
        return sshKeys;
    }


    public void addSshKey( final String sshKey )
    {
        if ( !( this.sshKeys == null ) )
        {
            this.sshKeys.add( sshKey );
        }
        else
        {
            this.sshKeys = new HashSet<>();
            this.sshKeys.add( sshKey );
        }
    }
}

@@ -90,16 +90,17 @@
 l.Set;%0A%0A
+%0A
 //TODO:T
@@ -343,24 +343,56 @@
 plateName;%0A%0A
+    private String templateId;%0A%0A
     private 
@@ -997,32 +997,216 @@
 teName;%0A    %7D%0A%0A%0A
+    public String getTemplateId()%0A    %7B%0A        return templateId;%0A    %7D%0A%0A%0A    public void setTemplateId( final String templateId )%0A    %7B%0A        this.templateId = templateId;%0A    %7D%0A%0A%0A
     public Strin

Add templateId on environmentNodeDto