package com.containersol.minimesos.state;

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

/**
 * Maps Mesos task properties from JSON string to Java object
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Task {

    private String name;
    private String state;

    @JsonProperty("slave_id")
    private String slaveId;

    private Discovery discovery;

    public String getState() {
        return state;
    }

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

    public String getName() {
        return name;
    }

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

    public String getSlaveId() {
        return slaveId;
    }

    public void setSlaveId(String slaveId) {
        this.slaveId = slaveId;
    }

    public Discovery getDiscovery() {
        return discovery;
    }

    public void setDiscovery(Discovery discovery) {
        this.discovery = discovery;
    }
}

@@ -288,16 +288,39 @@
 Task %7B%0A%0A
+    private String id;%0A
     priv
@@ -456,16 +456,134 @@
 overy;%0A%0A
+    public String getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(String id) %7B%0A        this.id = id;%0A    %7D%0A%0A
     publ

add Id to Task