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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to remove.Thekeyof the Asset to remove.build()builds ProductTailoringRemoveAssetAction with checking for non-null required valuesbuilds ProductTailoringRemoveAssetAction without checking for non-null required valuesTheidof the Asset to remove.Thekeyof the Asset to remove.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is removed.Theidof the tailored ProductVariant to update.of()factory method for an instance of ProductTailoringRemoveAssetActionBuilderof(ProductTailoringRemoveAssetAction template) create builder for ProductTailoringRemoveAssetAction instanceTheskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is removed.Theidof the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringRemoveAssetActionBuilder
public ProductTailoringRemoveAssetActionBuilder()
-
-
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
-
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 tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof 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
idof the Asset to remove.- Returns:
- assetId
-
getAssetKey
The
keyof the Asset to remove.- Returns:
- assetKey
-
build
builds ProductTailoringRemoveAssetAction with checking for non-null required values- Specified by:
buildin 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
-