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
-
Method Summary
Modifier and TypeMethodDescriptionTheid
of the Asset to update.Thekey
of the Asset to update.build()
builds ProductChangeAssetNameAction with checking for non-null required valuesbuilds ProductChangeAssetNameAction without checking for non-null required valuesTheid
of the Asset to update.Thekey
of the Asset to update.getName()
New value to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of 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 instanceThesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of the ProductVariant to update.New value to set.
-
Constructor Details
-
ProductChangeAssetNameActionBuilder
public ProductChangeAssetNameActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of 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
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
-
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
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of 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
id
of the Asset to update.- Returns:
- assetId
-
getAssetKey
The
key
of 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:
build
in 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
-