Class ProductTailoringSetAssetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetAssetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetAssetDescriptionAction>
public class ProductTailoringSetAssetDescriptionActionBuilder
extends Object
implements Builder<ProductTailoringSetAssetDescriptionAction>
ProductTailoringSetAssetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetAssetDescriptionAction productTailoringSetAssetDescriptionAction = ProductTailoringSetAssetDescriptionAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductTailoringSetAssetDescriptionAction with checking for non-null required valuesbuilds ProductTailoringSetAssetDescriptionAction without checking for non-null required valuesdescription
(LocalizedString description) Value to set.Value to set.Theid
of the Asset to update.Thekey
of the Asset to update.Value to set.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of the tailored ProductVariant to update.of()
factory method for an instance of ProductTailoringSetAssetDescriptionActionBuilderof
(ProductTailoringSetAssetDescriptionAction template) create builder for ProductTailoringSetAssetDescriptionAction instanceThesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of the tailored ProductVariant to update.Value to set.
-
Constructor Details
-
ProductTailoringSetAssetDescriptionActionBuilder
public ProductTailoringSetAssetDescriptionActionBuilder()
-
-
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 updated. Iffalse
, both the current and staged Asset is updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
assetId
The
id
of the Asset to update.- Parameters:
assetId
- value to be set- Returns:
- Builder
-
assetKey
The
key
of the Asset to update.- Parameters:
assetKey
- value to be set- Returns:
- Builder
-
description
public ProductTailoringSetAssetDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ProductTailoringSetAssetDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
public ProductTailoringSetAssetDescriptionActionBuilder description(@Nullable LocalizedString description) Value to set. If empty, any existing value will be removed.
- Parameters:
description
- 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 updated. Iffalse
, both the current and staged Asset is updated.- Returns:
- staged
-
getAssetId
The
id
of the Asset to update.- Returns:
- assetId
-
getAssetKey
The
key
of the Asset to update.- Returns:
- assetKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
build
builds ProductTailoringSetAssetDescriptionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetAssetDescriptionAction>
- Returns:
- ProductTailoringSetAssetDescriptionAction
-
buildUnchecked
builds ProductTailoringSetAssetDescriptionAction without checking for non-null required values- Returns:
- ProductTailoringSetAssetDescriptionAction
-
of
factory method for an instance of ProductTailoringSetAssetDescriptionActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetAssetDescriptionActionBuilder of(ProductTailoringSetAssetDescriptionAction template) create builder for ProductTailoringSetAssetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-