public BootstrapActionConfig build() {
      if (replace) {
        args.add("--replace");
      }

      return new BootstrapActionConfig()
        .withName("Configure Daemons")
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/configure-daemons")
          .withArgs(args));
    }
Returns an object which can be used in a RunJobflow call.
@return an object which can be used in a RunJobflow call.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/BootstrapActions.java