package com.hubspot.mesos;

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

public class Resources {

  private final int cpus;
  private final int memoryMb;

  @JsonCreator
  public Resources(@JsonProperty("cpus") int cpus, @JsonProperty("memoryMb") int memoryMb) {
    this.cpus = cpus;
    this.memoryMb = memoryMb;
  }

  public int getCpus() {
    return cpus;
  }

  public int getMemoryMb() {
    return memoryMb;
  }

}

@@ -210,16 +210,46 @@
 emoryMb;
+%0A  private final int numPorts;
 %0A%0A  @Jso
@@ -346,16 +346,56 @@
 memoryMb
+, @JsonProperty(%22numPorts%22) int numPorts
 ) %7B%0A    
@@ -440,26 +440,113 @@
 memoryMb;%0A  
-%7D%0A
+  this.numPorts = numPorts;%0A  %7D%0A%0A  public int getNumPorts() %7B%0A    return numPorts;%0A  %7D%0A  
 %0A  public in

add ports to resources