Class ProductPublishedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductPublishedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductPublishedMessagePayload>
public class ProductPublishedMessagePayloadBuilder
extends Object
implements Builder<ProductPublishedMessagePayload>
ProductPublishedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductPublishedMessagePayload productPublishedMessagePayload = ProductPublishedMessagePayload.builder()
.plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
.productProjection(productProjectionBuilder -> productProjectionBuilder)
.scope(ProductPublishScope.ALL)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductPublishedMessagePayload with checking for non-null required valuesbuilds ProductPublishedMessagePayload without checking for non-null required valuesCurrent Product Projection of the Product at the time of creation.List of image URLs which were removed during the Publish update action.getScope()
Publishing Scope that was used during the Publish update action.of()
factory method for an instance of ProductPublishedMessagePayloadBuilderof
(ProductPublishedMessagePayload template) create builder for ProductPublishedMessagePayload instanceplusRemovedImageUrls
(String... removedImageUrls) List of image URLs which were removed during the Publish update action.productProjection
(ProductProjection productProjection) Current Product Projection of the Product at the time of creation.Current Product Projection of the Product at the time of creation.removedImageUrls
(String... removedImageUrls) List of image URLs which were removed during the Publish update action.removedImageUrls
(List<String> removedImageUrls) List of image URLs which were removed during the Publish update action.scope
(ProductPublishScope scope) Publishing Scope that was used during the Publish update action.Current Product Projection of the Product at the time of creation.
-
Constructor Details
-
ProductPublishedMessagePayloadBuilder
public ProductPublishedMessagePayloadBuilder()
-
-
Method Details
-
removedImageUrls
List of image URLs which were removed during the Publish update action.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
removedImageUrls
List of image URLs which were removed during the Publish update action.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
plusRemovedImageUrls
List of image URLs which were removed during the Publish update action.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
productProjection
public ProductPublishedMessagePayloadBuilder productProjection(Function<ProductProjectionBuilder, ProductProjectionBuilder> builder) Current Product Projection of the Product at the time of creation.
- Parameters:
builder
- function to build the productProjection value- Returns:
- Builder
-
withProductProjection
public ProductPublishedMessagePayloadBuilder withProductProjection(Function<ProductProjectionBuilder, ProductProjection> builder) Current Product Projection of the Product at the time of creation.
- Parameters:
builder
- function to build the productProjection value- Returns:
- Builder
-
productProjection
Current Product Projection of the Product at the time of creation.
- Parameters:
productProjection
- value to be set- Returns:
- Builder
-
scope
Publishing Scope that was used during the Publish update action.
- Parameters:
scope
- value to be set- Returns:
- Builder
-
getRemovedImageUrls
List of image URLs which were removed during the Publish update action.
- Returns:
- removedImageUrls
-
getProductProjection
Current Product Projection of the Product at the time of creation.
- Returns:
- productProjection
-
getScope
Publishing Scope that was used during the Publish update action.
- Returns:
- scope
-
build
builds ProductPublishedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductPublishedMessagePayload>
- Returns:
- ProductPublishedMessagePayload
-
buildUnchecked
builds ProductPublishedMessagePayload without checking for non-null required values- Returns:
- ProductPublishedMessagePayload
-
of
factory method for an instance of ProductPublishedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ProductPublishedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-