Class ProductSetAssetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetAssetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<ProductSetAssetDescriptionAction>
public class ProductSetAssetDescriptionActionBuilder
extends Object
implements Builder<ProductSetAssetDescriptionAction>
ProductSetAssetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetAssetDescriptionAction productSetAssetDescriptionAction = ProductSetAssetDescriptionAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds ProductSetAssetDescriptionAction with checking for non-null required valuesbuilds ProductSetAssetDescriptionAction without checking for non-null required valuesdescription(LocalizedString description) Value to set.Value to set.Theidof the Asset to update.Thekeyof the Asset to update.Value to set.getSku()Theskuof the ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the ProductVariant to update.of()factory method for an instance of ProductSetAssetDescriptionActionBuilderof(ProductSetAssetDescriptionAction template) create builder for ProductSetAssetDescriptionAction instanceTheskuof the ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the ProductVariant to update.Value to set.
-
Constructor Details
-
ProductSetAssetDescriptionActionBuilder
public ProductSetAssetDescriptionActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the 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
The
keyof the Asset to update.- Parameters:
assetKey- value to be set- Returns:
- Builder
-
description
public ProductSetAssetDescriptionActionBuilder 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 ProductSetAssetDescriptionActionBuilder 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
Value to set. If empty, any existing value will be removed.
- Parameters:
description- value to be set- Returns:
- Builder
-
getVariantId
The
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the 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
The
keyof the Asset to update.- Returns:
- assetKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
build
builds ProductSetAssetDescriptionAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductSetAssetDescriptionAction>- Returns:
- ProductSetAssetDescriptionAction
-
buildUnchecked
builds ProductSetAssetDescriptionAction without checking for non-null required values- Returns:
- ProductSetAssetDescriptionAction
-
of
factory method for an instance of ProductSetAssetDescriptionActionBuilder- Returns:
- builder
-
of
create builder for ProductSetAssetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-