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 SummaryConstructors
- 
Method SummaryModifier 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- 
ProductPublishedMessagePayloadBuilderpublic ProductPublishedMessagePayloadBuilder()
 
- 
- 
Method Details- 
removedImageUrlsList of image URLs which were removed during the Publish update action. - Parameters:
- removedImageUrls- value to be set
- Returns:
- Builder
 
- 
removedImageUrlsList of image URLs which were removed during the Publish update action. - Parameters:
- removedImageUrls- value to be set
- Returns:
- Builder
 
- 
plusRemovedImageUrlsList of image URLs which were removed during the Publish update action. - Parameters:
- removedImageUrls- value to be set
- Returns:
- Builder
 
- 
productProjectionpublic 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
 
- 
withProductProjectionpublic 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
 
- 
productProjectionCurrent Product Projection of the Product at the time of creation. - Parameters:
- productProjection- value to be set
- Returns:
- Builder
 
- 
scopePublishing Scope that was used during the Publish update action. - Parameters:
- scope- value to be set
- Returns:
- Builder
 
- 
getRemovedImageUrlsList of image URLs which were removed during the Publish update action. - Returns:
- removedImageUrls
 
- 
getProductProjectionCurrent Product Projection of the Product at the time of creation. - Returns:
- productProjection
 
- 
getScopePublishing Scope that was used during the Publish update action. - Returns:
- scope
 
- 
buildbuilds ProductPublishedMessagePayload with checking for non-null required values- Specified by:
- buildin interface- Builder<ProductPublishedMessagePayload>
- Returns:
- ProductPublishedMessagePayload
 
- 
buildUncheckedbuilds ProductPublishedMessagePayload without checking for non-null required values- Returns:
- ProductPublishedMessagePayload
 
- 
offactory method for an instance of ProductPublishedMessagePayloadBuilder- Returns:
- builder
 
- 
ofcreate builder for ProductPublishedMessagePayload instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
 
-