Class AssetDataBuilder
- java.lang.Object
-
- com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<AssetDataBuilder,AssetData>
-
- com.adobe.cq.wcm.core.components.models.datalayer.builder.AssetDataBuilder
-
public final class AssetDataBuilder extends GenericDataBuilder<AssetDataBuilder,AssetData>
Data builder for a Dam Assets. This builder will produce a validAssetData
object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AssetData
build()
Build the data.@NotNull AssetDataBuilder
withFormat(@NotNull java.util.function.Supplier<java.lang.String> supplier)
Sets the supplier that supplies the Asset's format.@NotNull AssetDataBuilder
withLastModifiedDate(@NotNull java.util.function.Supplier<java.util.Date> supplier)
Set the supplier that supplies the component's last modified date.@NotNull AssetDataBuilder
withTags(@NotNull java.util.function.Supplier<java.lang.String[]> supplier)
Sets the supplier that supplies the Asset's tags.@NotNull AssetDataBuilder
withUrl(@NotNull java.util.function.Supplier<java.lang.String> supplier)
Sets the supplier that supplies the URL.-
Methods inherited from class com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder
withId
-
-
-
-
Method Detail
-
withUrl
@NotNull public @NotNull AssetDataBuilder withUrl(@NotNull @NotNull java.util.function.Supplier<java.lang.String> supplier)
Sets the supplier that supplies the URL.- Parameters:
supplier
- The URL value supplier.- Returns:
- A new
AssetDataBuilder
. - See Also:
AssetData.getUrl()
-
withFormat
@NotNull public @NotNull AssetDataBuilder withFormat(@NotNull @NotNull java.util.function.Supplier<java.lang.String> supplier)
Sets the supplier that supplies the Asset's format.- Parameters:
supplier
- The format value supplier.- Returns:
- A new
AssetDataBuilder
. - See Also:
AssetData.getFormat()
-
withTags
@NotNull public @NotNull AssetDataBuilder withTags(@NotNull @NotNull java.util.function.Supplier<java.lang.String[]> supplier)
Sets the supplier that supplies the Asset's tags.- Parameters:
supplier
- The tags value supplier.- Returns:
- A new
AssetDataBuilder
. - See Also:
AssetData.getTags()
-
withLastModifiedDate
@NotNull public @NotNull AssetDataBuilder withLastModifiedDate(@NotNull @NotNull java.util.function.Supplier<java.util.Date> supplier)
Set the supplier that supplies the component's last modified date.- Parameters:
supplier
- The last modified date value supplier.- Returns:
- A new
AssetDataBuilder
. - See Also:
AssetData.getLastModifiedDate()
-
build
@NotNull public @NotNull AssetData build()
Description copied from class:GenericDataBuilder
Build the data.- Specified by:
build
in classGenericDataBuilder<AssetDataBuilder,AssetData>
- Returns:
- The data object.
-
-