Class ProductVariantDeletedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<ProductVariantDeletedMessagePayload>
Example to create an instance using the builder pattern
ProductVariantDeletedMessagePayload productVariantDeletedMessagePayload = ProductVariantDeletedMessagePayload.builder()
.plusRemovedImageUrls(removedImageUrlsBuilder -> removedImageUrlsBuilder)
.staged(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductVariantDeletedMessagePayload with checking for non-null required valuesbuilds ProductVariantDeletedMessagePayload without checking for non-null required valuesList of image URLs that were removed with the Remove Product Variant update action.Iftrue
, this message informs that only the staged ProductVariant has been removed by the update action.Unique identifier of the Product Variant that was added.of()
factory method for an instance of ProductVariantDeletedMessagePayloadBuilderof
(ProductVariantDeletedMessagePayload template) create builder for ProductVariantDeletedMessagePayload instanceplusRemovedImageUrls
(String... removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.removedImageUrls
(String... removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.removedImageUrls
(List<String> removedImageUrls) List of image URLs that were removed with the Remove Product Variant update action.Iftrue
, this message informs that only the staged ProductVariant has been removed by the update action.variant
(ProductVariant variant) Unique identifier of the Product Variant that was added.Unique identifier of the Product Variant that was added.Unique identifier of the Product Variant that was added.
-
Constructor Details
-
ProductVariantDeletedMessagePayloadBuilder
public ProductVariantDeletedMessagePayloadBuilder()
-
-
Method Details
-
variant
public ProductVariantDeletedMessagePayloadBuilder variant(Function<ProductVariantBuilder, ProductVariantBuilder> builder) Unique identifier of the Product Variant that was added.
- Parameters:
builder
- function to build the variant value- Returns:
- Builder
-
withVariant
public ProductVariantDeletedMessagePayloadBuilder withVariant(Function<ProductVariantBuilder, ProductVariant> builder) Unique identifier of the Product Variant that was added.
- Parameters:
builder
- function to build the variant value- Returns:
- Builder
-
variant
Unique identifier of the Product Variant that was added.
- Parameters:
variant
- value to be set- Returns:
- Builder
-
removedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
removedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
plusRemovedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Parameters:
removedImageUrls
- value to be set- Returns:
- Builder
-
staged
If
true
, this message informs that only the staged ProductVariant has been removed by the update action. Iffalse
, both the current and staged ProductVariant have been removed.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariant
Unique identifier of the Product Variant that was added.
- Returns:
- variant
-
getRemovedImageUrls
List of image URLs that were removed with the Remove Product Variant update action.
- Returns:
- removedImageUrls
-
getStaged
If
true
, this message informs that only the staged ProductVariant has been removed by the update action. Iffalse
, both the current and staged ProductVariant have been removed.- Returns:
- staged
-
build
builds ProductVariantDeletedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantDeletedMessagePayload>
- Returns:
- ProductVariantDeletedMessagePayload
-
buildUnchecked
builds ProductVariantDeletedMessagePayload without checking for non-null required values- Returns:
- ProductVariantDeletedMessagePayload
-
of
factory method for an instance of ProductVariantDeletedMessagePayloadBuilder- Returns:
- builder
-
of
public static ProductVariantDeletedMessagePayloadBuilder of(ProductVariantDeletedMessagePayload template) create builder for ProductVariantDeletedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-