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