Class ProductTailoringChangeAssetNameActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringChangeAssetNameActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringChangeAssetNameAction>
public class ProductTailoringChangeAssetNameActionBuilder
extends Object
implements Builder<ProductTailoringChangeAssetNameAction>
ProductTailoringChangeAssetNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringChangeAssetNameAction productTailoringChangeAssetNameAction = ProductTailoringChangeAssetNameAction.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 ProductTailoringChangeAssetNameAction with checking for non-null required valuesbuilds ProductTailoringChangeAssetNameAction 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 tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of the tailored ProductVariant to update.name
(LocalizedString name) New value to set.New value to set.of()
factory method for an instance of ProductTailoringChangeAssetNameActionBuilderof
(ProductTailoringChangeAssetNameAction template) create builder for ProductTailoringChangeAssetNameAction instanceThesku
of the tailored ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of the tailored ProductVariant to update.New value to set.
-
Constructor Details
-
ProductTailoringChangeAssetNameActionBuilder
public ProductTailoringChangeAssetNameActionBuilder()
-
-
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
-
name
public ProductTailoringChangeAssetNameActionBuilder 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 ProductTailoringChangeAssetNameActionBuilder 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 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
-
getName
New value to set. Must not be empty.
- Returns:
- name
-
build
builds ProductTailoringChangeAssetNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringChangeAssetNameAction>
- Returns:
- ProductTailoringChangeAssetNameAction
-
buildUnchecked
builds ProductTailoringChangeAssetNameAction without checking for non-null required values- Returns:
- ProductTailoringChangeAssetNameAction
-
of
factory method for an instance of ProductTailoringChangeAssetNameActionBuilder- Returns:
- builder
-
of
public static ProductTailoringChangeAssetNameActionBuilder of(ProductTailoringChangeAssetNameAction template) create builder for ProductTailoringChangeAssetNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-