Class ProductChangeAssetNameActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductChangeAssetNameActionBuilder
- All Implemented Interfaces:
Builder<ProductChangeAssetNameAction>
public class ProductChangeAssetNameActionBuilder
extends Object
implements Builder<ProductChangeAssetNameAction>
ProductChangeAssetNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductChangeAssetNameAction productChangeAssetNameAction = ProductChangeAssetNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds ProductChangeAssetNameAction with checking for non-null required valuesbuilds ProductChangeAssetNameAction without checking for non-null required valuesTheidof the Asset to update.Thekeyof the Asset to update.getName()New value to set.getSku()Theskuof the ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the ProductVariant to update.name(LocalizedString name) New value to set.New value to set.of()factory method for an instance of ProductChangeAssetNameActionBuilderof(ProductChangeAssetNameAction template) create builder for ProductChangeAssetNameAction instanceTheskuof the ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the ProductVariant to update.New value to set.
-
Constructor Details
-
ProductChangeAssetNameActionBuilder
public ProductChangeAssetNameActionBuilder()
-
-
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
-
name
public ProductChangeAssetNameActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) New value to set. Must not be empty.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
withName
public ProductChangeAssetNameActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) New value to set. Must not be empty.
- Parameters:
builder- function to build the name value- Returns:
- Builder
-
name
New value to set. Must not be empty.
- Parameters:
name- 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
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds ProductChangeAssetNameAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductChangeAssetNameAction>- Returns:
- ProductChangeAssetNameAction
-
buildUnchecked
builds ProductChangeAssetNameAction without checking for non-null required values- Returns:
- ProductChangeAssetNameAction
-
of
factory method for an instance of ProductChangeAssetNameActionBuilder- Returns:
- builder
-
of
create builder for ProductChangeAssetNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-