Class ProductDeletedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductDeletedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductDeletedMessagePayload>
public class ProductDeletedMessagePayloadBuilder
extends Object
implements Builder<ProductDeletedMessagePayload>
ProductDeletedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductDeletedMessagePayload productDeletedMessagePayload = ProductDeletedMessagePayload.builder()
.plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductDeletedMessagePayload with checking for non-null required valuesbuilds ProductDeletedMessagePayload without checking for non-null required valuescurrentProjection
(ProductProjection currentProjection) Current Product Projection of the deleted Product.Current Product Projection of the deleted Product.Current Product Projection of the deleted Product.List of image URLs that were removed during the Delete Product request.of()
factory method for an instance of ProductDeletedMessagePayloadBuilderof
(ProductDeletedMessagePayload template) create builder for ProductDeletedMessagePayload instanceplusRemovedImageUrls
(String... removedImageUrls) List of image URLs that were removed during the Delete Product request.removedImageUrls
(String... removedImageUrls) List of image URLs that were removed during the Delete Product request.removedImageUrls
(List<String> removedImageUrls) List of image URLs that were removed during the Delete Product request.Current Product Projection of the deleted Product.
-
Constructor Details
-
ProductDeletedMessagePayloadBuilder
public ProductDeletedMessagePayloadBuilder()
-
-
Method Details
-
removedImageUrls
List of image URLs that were removed during the Delete Product request.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
removedImageUrls
List of image URLs that were removed during the Delete Product request.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
plusRemovedImageUrls
List of image URLs that were removed during the Delete Product request.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
currentProjection
public ProductDeletedMessagePayloadBuilder currentProjection(Function<ProductProjectionBuilder, ProductProjectionBuilder> builder) Current Product Projection of the deleted Product.
- Parameters:
builder
- function to build the currentProjection value- Returns:
- Builder
-
withCurrentProjection
public ProductDeletedMessagePayloadBuilder withCurrentProjection(Function<ProductProjectionBuilder, ProductProjection> builder) Current Product Projection of the deleted Product.
- Parameters:
builder
- function to build the currentProjection value- Returns:
- Builder
-
currentProjection
public ProductDeletedMessagePayloadBuilder currentProjection(@Nullable ProductProjection currentProjection) Current Product Projection of the deleted Product.
- Parameters:
currentProjection
- value to be set- Returns:
- Builder
-
getRemovedImageUrls
List of image URLs that were removed during the Delete Product request.
- Returns:
- removedImageUrls
-
getCurrentProjection
Current Product Projection of the deleted Product.
- Returns:
- currentProjection
-
build
builds ProductDeletedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductDeletedMessagePayload>
- Returns:
- ProductDeletedMessagePayload
-
buildUnchecked
builds ProductDeletedMessagePayload without checking for non-null required values- Returns:
- ProductDeletedMessagePayload
-
of
factory method for an instance of ProductDeletedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ProductDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-