Class ProductTailoringPublishedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductTailoringPublishedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringPublishedMessagePayload>
public class ProductTailoringPublishedMessagePayloadBuilder
extends Object
implements Builder<ProductTailoringPublishedMessagePayload>
ProductTailoringPublishedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringPublishedMessagePayload productTailoringPublishedMessagePayload = ProductTailoringPublishedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringPublishedMessagePayload with checking for non-null required valuesbuilds ProductTailoringPublishedMessagePayload 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 ProductTailoringPublishedMessagePayloadBuilderof
(ProductTailoringPublishedMessagePayload template) create builder for ProductTailoringPublishedMessagePayload 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
-
ProductTailoringPublishedMessagePayloadBuilder
public ProductTailoringPublishedMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductTailoringPublishedMessagePayloadBuilder 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 ProductTailoringPublishedMessagePayloadBuilder 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 ProductTailoringPublishedMessagePayloadBuilder 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 ProductTailoringPublishedMessagePayloadBuilder 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 ProductTailoringPublishedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringPublishedMessagePayload>
- Returns:
- ProductTailoringPublishedMessagePayload
-
buildUnchecked
builds ProductTailoringPublishedMessagePayload without checking for non-null required values- Returns:
- ProductTailoringPublishedMessagePayload
-
of
factory method for an instance of ProductTailoringPublishedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringPublishedMessagePayloadBuilder of(ProductTailoringPublishedMessagePayload template) create builder for ProductTailoringPublishedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-