public T withRetryPolicy(RetryPolicy retryPolicy) {
        getOptions().setRetryPolicy(Optional.of(retryPolicy));
        return getThis();
    }
public T withRetryPolicy ( RetryPolicy retryPolicy ) { getOptions ( ) . setRetryPolicy ( Optional . of ( retryPolicy ) ) ; return getThis ( ) ; }
Set the given retry policy
@throws NullPointerException if value is null