public HTTPCheck interval(String interval) {
        this.interval = ConversionService.SHARED.convert(interval, Duration.class).orElseThrow(() -> new IllegalArgumentException("Invalid Duration Specified"));
        return this;
    }
public HTTPCheck interval ( String interval ) { this . interval = ConversionService . SHARED . convert ( interval , Duration . class ) . orElseThrow ( ( ) -> new IllegalArgumentException ( "Invalid Duration Specified" ) ) ; return this ; }
@param interval The interval as a string
@return The {@link HTTPCheck} instance