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