Class ProductRemoveAssetActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductRemoveAssetActionBuilder
- All Implemented Interfaces:
Builder<ProductRemoveAssetAction>
public class ProductRemoveAssetActionBuilder
extends Object
implements Builder<ProductRemoveAssetAction>
ProductRemoveAssetActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductRemoveAssetAction productRemoveAssetAction = ProductRemoveAssetAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to remove.Thekeyof the Asset to remove.build()builds ProductRemoveAssetAction with checking for non-null required valuesbuilds ProductRemoveAssetAction without checking for non-null required valuesTheidof the Asset to remove.Thekeyof the Asset to remove.getSku()Theskuof the ProductVariant to update.Iftrue, only the staged Asset is removed.Theidof the ProductVariant to update.of()factory method for an instance of ProductRemoveAssetActionBuilderof(ProductRemoveAssetAction template) create builder for ProductRemoveAssetAction instanceTheskuof the ProductVariant to update.Iftrue, only the staged Asset is removed.Theidof the ProductVariant to update.
-
Constructor Details
-
ProductRemoveAssetActionBuilder
public ProductRemoveAssetActionBuilder()
-
-
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
-
staged
If
true, only the staged Asset is removed. Iffalse, both the current and staged Asset is removed.- Parameters:
staged- value to be set- Returns:
- Builder
-
assetId
The
idof the Asset to remove.- Parameters:
assetId- value to be set- Returns:
- Builder
-
assetKey
The
keyof the Asset to remove.- Parameters:
assetKey- value to be set- Returns:
- Builder
-
getVariantId
The
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the ProductVariant to update.- Returns:
- sku
-
getStaged
If
true, only the staged Asset is removed. Iffalse, both the current and staged Asset is removed.- Returns:
- staged
-
getAssetId
The
idof the Asset to remove.- Returns:
- assetId
-
getAssetKey
The
keyof the Asset to remove.- Returns:
- assetKey
-
build
builds ProductRemoveAssetAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductRemoveAssetAction>- Returns:
- ProductRemoveAssetAction
-
buildUnchecked
builds ProductRemoveAssetAction without checking for non-null required values- Returns:
- ProductRemoveAssetAction
-
of
factory method for an instance of ProductRemoveAssetActionBuilder- Returns:
- builder
-
of
create builder for ProductRemoveAssetAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-