Class ProductTailoringImageAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductTailoringImageAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductTailoringImageAddedMessagePayload>
public class ProductTailoringImageAddedMessagePayloadBuilder
extends Object
implements Builder<ProductTailoringImageAddedMessagePayload>
ProductTailoringImageAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringImageAddedMessagePayload productTailoringImageAddedMessagePayload = ProductTailoringImageAddedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.product(productBuilder -> productBuilder)
.variantId(0.3)
.image(imageBuilder -> imageBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductTailoringImageAddedMessagePayload with checking for non-null required valuesbuilds ProductTailoringImageAddedMessagePayload without checking for non-null required valuesgetImage()Image that was added.Reference to the tailored Product.keyof the tailored Product.getStore()The Store to which the Product Tailoring belongs.idof the tailored ProductVariant.Image that was added.image(Function<ImageBuilder, ImageBuilder> builder) Image that was added.of()factory method for an instance of ProductTailoringImageAddedMessagePayloadBuilderof(ProductTailoringImageAddedMessagePayload template) create builder for ProductTailoringImageAddedMessagePayload instanceproduct(ProductReference product) Reference to the tailored Product.Reference to the tailored Product.productKey(String productKey) keyof the tailored Product.store(StoreKeyReference store) The Store to which the Product Tailoring belongs.The Store to which the Product Tailoring belongs.idof the tailored ProductVariant.withImage(Function<ImageBuilder, Image> builder) Image that was added.Reference to the tailored Product.The Store to which the Product Tailoring belongs.
-
Constructor Details
-
ProductTailoringImageAddedMessagePayloadBuilder
public ProductTailoringImageAddedMessagePayloadBuilder()
-
-
Method Details
-
store
public ProductTailoringImageAddedMessagePayloadBuilder 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 ProductTailoringImageAddedMessagePayloadBuilder 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
keyof the tailored Product.- Parameters:
productKey- value to be set- Returns:
- Builder
-
product
public ProductTailoringImageAddedMessagePayloadBuilder product(Function<ProductReferenceBuilder, ProductReferenceBuilder> builder) Reference to the tailored Product.
- Parameters:
builder- function to build the product value- Returns:
- Builder
-
withProduct
public ProductTailoringImageAddedMessagePayloadBuilder withProduct(Function<ProductReferenceBuilder, ProductReference> builder) Reference to the tailored Product.
- Parameters:
builder- function to build the product value- Returns:
- Builder
-
product
Reference to the tailored Product.
- Parameters:
product- value to be set- Returns:
- Builder
-
variantId
idof the tailored ProductVariant.- Parameters:
variantId- value to be set- Returns:
- Builder
-
image
public ProductTailoringImageAddedMessagePayloadBuilder image(Function<ImageBuilder, ImageBuilder> builder) Image that was added.
- Parameters:
builder- function to build the image value- Returns:
- Builder
-
withImage
public ProductTailoringImageAddedMessagePayloadBuilder withImage(Function<ImageBuilder, Image> builder) Image that was added.
- Parameters:
builder- function to build the image value- Returns:
- Builder
-
image
Image that was added.
- Parameters:
image- value to be set- Returns:
- Builder
-
getStore
The Store to which the Product Tailoring belongs.
- Returns:
- store
-
getProductKey
keyof the tailored Product.- Returns:
- productKey
-
getProduct
Reference to the tailored Product.
- Returns:
- product
-
getVariantId
idof the tailored ProductVariant.- Returns:
- variantId
-
getImage
Image that was added.
- Returns:
- image
-
build
builds ProductTailoringImageAddedMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTailoringImageAddedMessagePayload>- Returns:
- ProductTailoringImageAddedMessagePayload
-
buildUnchecked
builds ProductTailoringImageAddedMessagePayload without checking for non-null required values- Returns:
- ProductTailoringImageAddedMessagePayload
-
of
factory method for an instance of ProductTailoringImageAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductTailoringImageAddedMessagePayloadBuilder of(ProductTailoringImageAddedMessagePayload template) create builder for ProductTailoringImageAddedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-