Class ProductAddExternalImageActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductAddExternalImageActionBuilder
- All Implemented Interfaces:
Builder<ProductAddExternalImageAction>
public class ProductAddExternalImageActionBuilder
extends Object
implements Builder<ProductAddExternalImageAction>
ProductAddExternalImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductAddExternalImageAction productAddExternalImageAction = ProductAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductAddExternalImageAction with checking for non-null required valuesbuilds ProductAddExternalImageAction without checking for non-null required valuesgetImage()Value to add toimages.getSku()Theskuof the ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the ProductVariant to update.Value to add toimages.image(Function<ImageBuilder, ImageBuilder> builder) Value to add toimages.of()factory method for an instance of ProductAddExternalImageActionBuilderof(ProductAddExternalImageAction template) create builder for ProductAddExternalImageAction instanceTheskuof the ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the ProductVariant to update.withImage(Function<ImageBuilder, Image> builder) Value to add toimages.
-
Constructor Details
-
ProductAddExternalImageActionBuilder
public ProductAddExternalImageActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the ProductVariant to update.- Parameters:
sku- value to be set- Returns:
- Builder
-
image
Value to add to
images.- Parameters:
builder- function to build the image value- Returns:
- Builder
-
withImage
Value to add to
images.- Parameters:
builder- function to build the image value- Returns:
- Builder
-
image
Value to add to
images.- Parameters:
image- value to be set- Returns:
- Builder
-
staged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
getVariantId
The
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the ProductVariant to update.- Returns:
- sku
-
getImage
Value to add to
images.- Returns:
- image
-
getStaged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Returns:
- staged
-
build
builds ProductAddExternalImageAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductAddExternalImageAction>- Returns:
- ProductAddExternalImageAction
-
buildUnchecked
builds ProductAddExternalImageAction without checking for non-null required values- Returns:
- ProductAddExternalImageAction
-
of
factory method for an instance of ProductAddExternalImageActionBuilder- Returns:
- builder
-
of
create builder for ProductAddExternalImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-