Class ProductTailoringDeletedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductTailoringDeletedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringDeletedMessagePayload>
public class ProductTailoringDeletedMessagePayloadBuilder
extends Object
implements Builder<ProductTailoringDeletedMessagePayload>
ProductTailoringDeletedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringDeletedMessagePayload productTailoringDeletedMessagePayload = ProductTailoringDeletedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringDeletedMessagePayload with checking for non-null required valuesbuilds ProductTailoringDeletedMessagePayload without checking for non-null required valuesReference to the Product the Product Tailoring belongs to.User-defined unique identifier of the Product this Product Tailoring belongs to.getStore()
The Store to which the Product Tailoring belongs.of()
factory method for an instance of ProductTailoringDeletedMessagePayloadBuilderof
(ProductTailoringDeletedMessagePayload template) create builder for ProductTailoringDeletedMessagePayload instanceproduct
(ProductReference product) Reference to the Product the Product Tailoring belongs to.Reference to the Product the Product Tailoring belongs to.productKey
(String productKey) User-defined unique identifier of the Product this Product Tailoring belongs to.store
(StoreKeyReference store) The Store to which the Product Tailoring belongs.The Store to which the Product Tailoring belongs.Reference to the Product the Product Tailoring belongs to.The Store to which the Product Tailoring belongs.
-
Constructor Details
-
ProductTailoringDeletedMessagePayloadBuilder
public ProductTailoringDeletedMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductTailoringDeletedMessagePayloadBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store to which the Product Tailoring belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public ProductTailoringDeletedMessagePayloadBuilder withStore(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Store to which the Product Tailoring belongs.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store to which the Product Tailoring belongs.
- Parameters:
store
- value to be set- Returns:
- Builder
-
productKey
User-defined unique identifier of the Product this Product Tailoring belongs to.
- Parameters:
productKey
- value to be set- Returns:
- Builder
-
product
public ProductTailoringDeletedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the Product the Product Tailoring belongs to.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
withProduct
public ProductTailoringDeletedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the Product the Product Tailoring belongs to.
- Parameters:
builder
- function to build the product value- Returns:
- Builder
-
product
Reference to the Product the Product Tailoring belongs to.
- Parameters:
product
- value to be set- Returns:
- Builder
-
getStore
The Store to which the Product Tailoring belongs.
- Returns:
- store
-
getProductKey
User-defined unique identifier of the Product this Product Tailoring belongs to.
- Returns:
- productKey
-
getProduct
Reference to the Product the Product Tailoring belongs to.
- Returns:
- product
-
build
builds ProductTailoringDeletedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringDeletedMessagePayload>
- Returns:
- ProductTailoringDeletedMessagePayload
-
buildUnchecked
builds ProductTailoringDeletedMessagePayload without checking for non-null required values- Returns:
- ProductTailoringDeletedMessagePayload
-
of
factory method for an instance of ProductTailoringDeletedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringDeletedMessagePayloadBuilder of(ProductTailoringDeletedMessagePayload template) create builder for ProductTailoringDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-