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