Class VariantSetAssetDescriptionActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantSetAssetDescriptionActionBuilder
- All Implemented Interfaces:
Builder<VariantSetAssetDescriptionAction>
public class VariantSetAssetDescriptionActionBuilder
extends Object
implements Builder<VariantSetAssetDescriptionAction>
VariantSetAssetDescriptionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantSetAssetDescriptionAction variantSetAssetDescriptionAction = VariantSetAssetDescriptionAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds VariantSetAssetDescriptionAction with checking for non-null required valuesbuilds VariantSetAssetDescriptionAction 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.Whether only the staged Asset is updated.of()factory method for an instance of VariantSetAssetDescriptionActionBuilderof(VariantSetAssetDescriptionAction template) create builder for VariantSetAssetDescriptionAction instanceWhether only the staged Asset is updated.Value to set.
-
Constructor Details
-
VariantSetAssetDescriptionActionBuilder
public VariantSetAssetDescriptionActionBuilder()
-
-
Method Details
-
staged
Whether only the staged Asset is updated. If
false, 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 VariantSetAssetDescriptionActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If omitted, any existing value is removed.
- Parameters:
builder- function to build the description value- Returns:
- Builder
-
withDescription
public VariantSetAssetDescriptionActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If omitted, any existing value is removed.
- Parameters:
builder- function to build the description value- Returns:
- Builder
-
description
Value to set. If omitted, any existing value is removed.
- Parameters:
description- value to be set- Returns:
- Builder
-
getStaged
Whether only the staged Asset is updated. If
false, 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 omitted, any existing value is removed.
- Returns:
- description
-
build
builds VariantSetAssetDescriptionAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetAssetDescriptionAction>- Returns:
- VariantSetAssetDescriptionAction
-
buildUnchecked
builds VariantSetAssetDescriptionAction without checking for non-null required values- Returns:
- VariantSetAssetDescriptionAction
-
of
factory method for an instance of VariantSetAssetDescriptionActionBuilder- Returns:
- builder
-
of
create builder for VariantSetAssetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-