Class ProductTailoringSetAssetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetAssetKeyActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetAssetKeyAction>
public class ProductTailoringSetAssetKeyActionBuilder
extends Object
implements Builder<ProductTailoringSetAssetKeyAction>
ProductTailoringSetAssetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetAssetKeyAction productTailoringSetAssetKeyAction = ProductTailoringSetAssetKeyAction.builder()
.assetId("{assetId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Value to set.build()builds ProductTailoringSetAssetKeyAction with checking for non-null required valuesbuilds ProductTailoringSetAssetKeyAction without checking for non-null required valuesTheidof the Asset to update.Value to set.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the tailored ProductVariant to update.of()factory method for an instance of ProductTailoringSetAssetKeyActionBuilderof(ProductTailoringSetAssetKeyAction template) create builder for ProductTailoringSetAssetKeyAction instanceTheskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringSetAssetKeyActionBuilder
public ProductTailoringSetAssetKeyActionBuilder()
-
-
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 updated. Iffalse, both the current and staged Asset is updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
assetId
The
idof the Asset to update.- Parameters:
assetId- value to be set- Returns:
- Builder
-
assetKey
Value to set. If empty, any existing value will be removed.
- 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 updated. Iffalse, both the current and staged Asset is updated.- Returns:
- staged
-
getAssetId
The
idof the Asset to update.- Returns:
- assetId
-
getAssetKey
Value to set. If empty, any existing value will be removed.
- Returns:
- assetKey
-
build
builds ProductTailoringSetAssetKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductTailoringSetAssetKeyAction>- Returns:
- ProductTailoringSetAssetKeyAction
-
buildUnchecked
builds ProductTailoringSetAssetKeyAction without checking for non-null required values- Returns:
- ProductTailoringSetAssetKeyAction
-
of
factory method for an instance of ProductTailoringSetAssetKeyActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetAssetKeyActionBuilder of(ProductTailoringSetAssetKeyAction template) create builder for ProductTailoringSetAssetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-