Class ImageComponentDataBuilder
java.lang.Object
com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder<ImageComponentDataBuilder,ImageData>
com.adobe.cq.wcm.core.components.models.datalayer.builder.ImageComponentDataBuilder
public final class ImageComponentDataBuilder
extends GenericDataBuilder<ImageComponentDataBuilder,ImageData>
Data builder for image components.
-
Method Summary
Modifier and TypeMethodDescription@NotNull ImageDatabuild()Build the data.@NotNull ImageComponentDataBuilderwithAssetData(@NotNull Supplier<AssetData> supplier) Set the supplier that supplies the component's asset data.withDescription(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's description.withLastModifiedDate(@NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.withLinkUrl(@NotNull Supplier<String> supplier) Sets the supplier that supplies the component's link URL.withParentId(@NotNull Supplier<String> supplier) Set the supplier that supplies the component's parent ID.Set the supplier that supplies the component's text.Set the supplier that supplies the component's title.Set the supplier that supplies the component's type.Methods inherited from class com.adobe.cq.wcm.core.components.models.datalayer.builder.GenericDataBuilder
withId
-
Method Details
-
withAssetData
@NotNull public @NotNull ImageComponentDataBuilder withAssetData(@NotNull @NotNull Supplier<AssetData> supplier) Set the supplier that supplies the component's asset data.- Parameters:
supplier- The asset data value supplier.- Returns:
- A new
ImageComponentDataBuilder.
-
build
Description copied from class:GenericDataBuilderBuild the data.- Specified by:
buildin classGenericDataBuilder<ImageComponentDataBuilder,ImageData> - Returns:
- The data object.
-
withType
Set the supplier that supplies the component's type.- Parameters:
supplier- The type value supplier.- Returns:
- A new data builder.
- See Also:
-
withLastModifiedDate
@NotNull public ImageComponentDataBuilder withLastModifiedDate(@NotNull @NotNull Supplier<Date> supplier) Set the supplier that supplies the component's last modified date.- Parameters:
supplier- The last modified date value supplier.- Returns:
- A new data builder.
- See Also:
-
withParentId
Set the supplier that supplies the component's parent ID.- Parameters:
supplier- The parent ID value supplier.- Returns:
- A new data builder.
- See Also:
-
withTitle
Set the supplier that supplies the component's title.- Parameters:
supplier- The title value supplier.- Returns:
- A new data builder.
- See Also:
-
withDescription
@NotNull public ImageComponentDataBuilder withDescription(@NotNull @NotNull Supplier<String> supplier) Set the supplier that supplies the component's description.- Parameters:
supplier- The description value supplier.- Returns:
- A new data builder.
- See Also:
-
withText
Set the supplier that supplies the component's text.- Parameters:
supplier- The text value supplier.- Returns:
- A new data builder.
- See Also:
-
withLinkUrl
Sets the supplier that supplies the component's link URL.- Parameters:
supplier- The link URL value supplier.- Returns:
- A new data builder.
- See Also:
-