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
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to remove.Thekey
of the Asset to remove.build()
builds ProductRemoveAssetAction with checking for non-null required valuesbuilds ProductRemoveAssetAction without checking for non-null required valuesTheid
of the Asset to remove.Thekey
of the Asset to remove.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Asset is removed.Theid
of the ProductVariant to update.of()
factory method for an instance of ProductRemoveAssetActionBuilderof
(ProductRemoveAssetAction template) create builder for ProductRemoveAssetAction instanceThesku
of the ProductVariant to update.Iftrue
, only the staged Asset is removed.Theid
of the ProductVariant to update.
-
Constructor Details
-
ProductRemoveAssetActionBuilder
public ProductRemoveAssetActionBuilder()
-
-
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
-
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
id
of the Asset to remove.- Parameters:
assetId
- value to be set- Returns:
- Builder
-
assetKey
The
key
of the Asset to remove.- Parameters:
assetKey
- 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
-
getStaged
If
true
, only the staged Asset is removed. Iffalse
, both the current and staged Asset is removed.- Returns:
- staged
-
getAssetId
The
id
of the Asset to remove.- Returns:
- assetId
-
getAssetKey
The
key
of the Asset to remove.- Returns:
- assetKey
-
build
builds ProductRemoveAssetAction with checking for non-null required values- Specified by:
build
in 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
-