public ConfigureDaemons withHeapSize(Daemon daemon, int megabytes) {
      args.add("--" + StringUtils.lowerCase(daemon.name()) + "-heap-size=" + megabytes);
      return this;
    }
Set the heap size of a daemon.
@param daemon The deamon to configure.
@param megabytes The requested heap size of the daemon.
@return A reference to this updated object so that method calls can be chained
        together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/BootstrapActions.java