/** * Create and configure a RequestLimit object to the list of subresources * * @param key * The key for the RequestLimit resource * @return this */ @SuppressWarnings("unchecked") public T requestLimit(java.lang.String childKey) { requestLimit(childKey, null); return (T) this; }
/** * Create and configure a RequestLimit object to the list of subresources * * @param key * The key for the RequestLimit resource * @return this */ @SuppressWarnings("unchecked") public T requestLimit(java.lang.String childKey) { requestLimit(childKey, null); return (T) this; }
/** * Install a supplied RequestLimit object to the list of subresources */ @SuppressWarnings("unchecked") public T requestLimit(RequestLimitSupplier supplier) { requestLimit(supplier.get()); return (T) this; }
/** * Install a supplied RequestLimit object to the list of subresources */ @SuppressWarnings("unchecked") public T requestLimit(RequestLimitSupplier supplier) { requestLimit(supplier.get()); return (T) this; }
/** * Create and configure a RequestLimit object to the list of subresources * * @param key * The key for the RequestLimit resource * @param config * The RequestLimitConsumer to use * @return this */ @SuppressWarnings("unchecked") public T requestLimit(java.lang.String childKey, RequestLimitConsumer consumer) { RequestLimit<? extends RequestLimit> child = new RequestLimit<>( childKey); if (consumer != null) { consumer.accept(child); } requestLimit(child); return (T) this; }
/** * Create and configure a RequestLimit object to the list of subresources * * @param key * The key for the RequestLimit resource * @param config * The RequestLimitConsumer to use * @return this */ @SuppressWarnings("unchecked") public T requestLimit(java.lang.String childKey, RequestLimitConsumer consumer) { RequestLimit<? extends RequestLimit> child = new RequestLimit<>( childKey); if (consumer != null) { consumer.accept(child); } requestLimit(child); return (T) this; }