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