Class ProductImageAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.ProductImageAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductImageAddedMessagePayload>
public class ProductImageAddedMessagePayloadBuilder
extends Object
implements Builder<ProductImageAddedMessagePayload>
ProductImageAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductImageAddedMessagePayload productImageAddedMessagePayload = ProductImageAddedMessagePayload.builder()
.variantId(0.3)
.image(imageBuilder -> imageBuilder)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductImageAddedMessagePayload with checking for non-null required valuesbuilds ProductImageAddedMessagePayload without checking for non-null required valuesgetImage()
Image that was added.Whether the update was only applied to the staged Product Projection.Unique identifier of the Product Variant to which the Image was added.Image that was added.image
(Function<ImageBuilder, ImageBuilder> builder) Image that was added.of()
factory method for an instance of ProductImageAddedMessagePayloadBuilderof
(ProductImageAddedMessagePayload template) create builder for ProductImageAddedMessagePayload instanceWhether the update was only applied to the staged Product Projection.Unique identifier of the Product Variant to which the Image was added.withImage
(Function<ImageBuilder, Image> builder) Image that was added.
-
Constructor Details
-
ProductImageAddedMessagePayloadBuilder
public ProductImageAddedMessagePayloadBuilder()
-
-
Method Details
-
variantId
Unique identifier of the Product Variant to which the Image was added.
- Parameters:
variantId
- value to be set- Returns:
- Builder
-
image
Image that was added.
- Parameters:
builder
- function to build the image value- Returns:
- Builder
-
withImage
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
-
staged
Whether the update was only applied to the staged Product Projection.
- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
Unique identifier of the Product Variant to which the Image was added.
- Returns:
- variantId
-
getImage
Image that was added.
- Returns:
- image
-
getStaged
Whether the update was only applied to the staged Product Projection.
- Returns:
- staged
-
build
builds ProductImageAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductImageAddedMessagePayload>
- Returns:
- ProductImageAddedMessagePayload
-
buildUnchecked
builds ProductImageAddedMessagePayload without checking for non-null required values- Returns:
- ProductImageAddedMessagePayload
-
of
factory method for an instance of ProductImageAddedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for ProductImageAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-