Class ProductRemovedFromCategoryMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductRemovedFromCategoryMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductRemovedFromCategoryMessagePayload>
public class ProductRemovedFromCategoryMessagePayloadBuilder
extends Object
implements Builder<ProductRemovedFromCategoryMessagePayload>
ProductRemovedFromCategoryMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRemovedFromCategoryMessagePayload productRemovedFromCategoryMessagePayload = ProductRemovedFromCategoryMessagePayload.builder()
.category(categoryBuilder -> categoryBuilder)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductRemovedFromCategoryMessagePayload with checking for non-null required valuesbuilds ProductRemovedFromCategoryMessagePayload without checking for non-null required valuescategory
(CategoryReference category) Category the Product was removed from.Category the Product was removed from.Category the Product was removed from.Whether the update was only applied to the staged Product Projection.of()
factory method for an instance of ProductRemovedFromCategoryMessagePayloadBuilderof
(ProductRemovedFromCategoryMessagePayload template) create builder for ProductRemovedFromCategoryMessagePayload instanceWhether the update was only applied to the staged Product Projection.Category the Product was removed from.
-
Constructor Details
-
ProductRemovedFromCategoryMessagePayloadBuilder
public ProductRemovedFromCategoryMessagePayloadBuilder()
-
-
Method Details
-
category
public ProductRemovedFromCategoryMessagePayloadBuilder category(Function<CategoryReferenceBuilder, CategoryReferenceBuilder> builder) Category the Product was removed from.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
withCategory
public ProductRemovedFromCategoryMessagePayloadBuilder withCategory(Function<CategoryReferenceBuilder, CategoryReference> builder) Category the Product was removed from.
- Parameters:
builder
- function to build the category value- Returns:
- Builder
-
category
Category the Product was removed from.
- Parameters:
category
- value to be set- Returns:
- Builder
-
staged
Whether the update was only applied to the staged Product Projection.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
getCategory
Category the Product was removed from.
- Returns:
- category
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
build
builds ProductRemovedFromCategoryMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductRemovedFromCategoryMessagePayload>
- Returns:
- ProductRemovedFromCategoryMessagePayload
-
buildUnchecked
builds ProductRemovedFromCategoryMessagePayload without checking for non-null required values- Returns:
- ProductRemovedFromCategoryMessagePayload
-
of
factory method for an instance of ProductRemovedFromCategoryMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductRemovedFromCategoryMessagePayloadBuilder of(ProductRemovedFromCategoryMessagePayload template) create builder for ProductRemovedFromCategoryMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-