Class ProductTailoringRemoveImageActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringRemoveImageActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringRemoveImageAction>
public class ProductTailoringRemoveImageActionBuilder
extends Object
implements Builder<ProductTailoringRemoveImageAction>
ProductTailoringRemoveImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringRemoveImageAction productTailoringRemoveImageAction = ProductTailoringRemoveImageAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductTailoringRemoveImageAction with checking for non-null required valuesbuilds ProductTailoringRemoveImageAction without checking for non-null required valuesThe URL of the image to remove.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the staged image is removed.Theidof the tailored ProductVariant to update.The URL of the image to remove.of()factory method for an instance of ProductTailoringRemoveImageActionBuilderof(ProductTailoringRemoveImageAction template) create builder for ProductTailoringRemoveImageAction instanceTheskuof the tailored ProductVariant to update.Iftrue, only the staged image is removed.Theidof the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringRemoveImageActionBuilder
public ProductTailoringRemoveImageActionBuilder()
-
-
Method Details
-
variantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the tailored 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
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the tailored 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 ProductTailoringRemoveImageAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTailoringRemoveImageAction>- Returns:
- ProductTailoringRemoveImageAction
-
buildUnchecked
builds ProductTailoringRemoveImageAction without checking for non-null required values- Returns:
- ProductTailoringRemoveImageAction
-
of
factory method for an instance of ProductTailoringRemoveImageActionBuilder- Returns:
- builder
-
of
public static ProductTailoringRemoveImageActionBuilder of(ProductTailoringRemoveImageAction template) create builder for ProductTailoringRemoveImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-