Class ProductRemoveImageActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductRemoveImageActionBuilder
- All Implemented Interfaces:
Builder<ProductRemoveImageAction>
public class ProductRemoveImageActionBuilder
extends Object
implements Builder<ProductRemoveImageAction>
ProductRemoveImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRemoveImageAction productRemoveImageAction = ProductRemoveImageAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductRemoveImageAction with checking for non-null required valuesbuilds ProductRemoveImageAction without checking for non-null required valuesThe URL of the image to remove.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged image is removed.Theid
of the ProductVariant to update.The URL of the image to remove.of()
factory method for an instance of ProductRemoveImageActionBuilderof
(ProductRemoveImageAction template) create builder for ProductRemoveImageAction instanceThesku
of the ProductVariant to update.Iftrue
, only the staged image is removed.Theid
of the ProductVariant to update.
-
Constructor Details
-
ProductRemoveImageActionBuilder
public ProductRemoveImageActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
imageUrl
The URL of the image to remove.
- Parameters:
imageUrl
- value to be set- Returns:
- Builder
-
staged
If
true
, only the staged image is removed. Iffalse
, both the current and staged image is removed.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Returns:
- sku
-
getImageUrl
The URL of the image to remove.
- Returns:
- imageUrl
-
getStaged
If
true
, only the staged image is removed. Iffalse
, both the current and staged image is removed.- Returns:
- staged
-
build
builds ProductRemoveImageAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductRemoveImageAction>
- Returns:
- ProductRemoveImageAction
-
buildUnchecked
builds ProductRemoveImageAction without checking for non-null required values- Returns:
- ProductRemoveImageAction
-
of
factory method for an instance of ProductRemoveImageActionBuilder- Returns:
- builder
-
of
create builder for ProductRemoveImageAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-