public static RegCheck tcp(String tcp, long interval, long timeout, String notes) { return ImmutableRegCheck .builder() .tcp(tcp) .interval(String.format("%ss", interval)) .timeout(String.format("%ss", timeout)) .notes(notes) .build(); }
public static RegCheck args(List<String> args, long interval, long timeout, String notes) { return ImmutableRegCheck .builder() .args(args) .interval(String.format("%ss", interval)) .timeout(String.format("%ss", timeout)) .notes(notes) .build(); }
public static RegCheck http(String http, long interval, long timeout, String notes) { return ImmutableRegCheck .builder() .http(http) .interval(String.format("%ss", interval)) .timeout(String.format("%ss", timeout)) .notes(notes) .build(); }
notes(notesOptional);
builder.notes(json.notes);