Class ProductTailoringRemoveAssetActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringRemoveAssetActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringRemoveAssetAction>
public class ProductTailoringRemoveAssetActionBuilder
extends Object
implements Builder<ProductTailoringRemoveAssetAction>
ProductTailoringRemoveAssetActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringRemoveAssetAction productTailoringRemoveAssetAction = ProductTailoringRemoveAssetAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to remove.Thekey
of the Asset to remove.build()
builds ProductTailoringRemoveAssetAction with checking for non-null required valuesbuilds ProductTailoringRemoveAssetAction without checking for non-null required valuesTheid
of the Asset to remove.Thekey
of the Asset to remove.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is removed.Theid
of the tailored ProductVariant to update.of()
factory method for an instance of ProductTailoringRemoveAssetActionBuilderof
(ProductTailoringRemoveAssetAction template) create builder for ProductTailoringRemoveAssetAction instanceThesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is removed.Theid
of the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringRemoveAssetActionBuilder
public ProductTailoringRemoveAssetActionBuilder()
-
-
Method Details
-
variantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the tailored 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 tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the tailored 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 ProductTailoringRemoveAssetAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringRemoveAssetAction>
- Returns:
- ProductTailoringRemoveAssetAction
-
buildUnchecked
builds ProductTailoringRemoveAssetAction without checking for non-null required values- Returns:
- ProductTailoringRemoveAssetAction
-
of
factory method for an instance of ProductTailoringRemoveAssetActionBuilder- Returns:
- builder
-
of
public static ProductTailoringRemoveAssetActionBuilder of(ProductTailoringRemoveAssetAction template) create builder for ProductTailoringRemoveAssetAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-