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