Class IdRequiredDataBuilder<T extends GenericDataBuilder<T,K>,K>

java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.IdRequiredDataBuilder<T,K>
Type Parameters:
T - The data builder type.
K - The data type.

public final class IdRequiredDataBuilder<T extends GenericDataBuilder<T,K>,K> extends Object
Temporary data builder that requires an ID supplier to be set. This is typically used as the first level of a data builder to ensure that the caller specifies the ID field value as required by the ComponentData interface.
  • Method Details

    • withId

      @NotNull public T withId(@NotNull @NotNull Supplier<@NotNull String> supplier)
      Set the supplier that supplies the component's ID.
      Parameters:
      supplier - The ID value supplier.
      Returns:
      A new data builder.
      See Also: