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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds ProductTailoringChangeAssetNameAction with checking for non-null required valuesbuilds ProductTailoringChangeAssetNameAction without checking for non-null required valuesTheidof the Asset to update.Thekeyof the Asset to update.getName()New value to set.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof 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 instanceTheskuof the tailored ProductVariant to update.Iftrue, only the staged Asset is updated.Theidof the tailored ProductVariant to update.New value to set.
-
Constructor Details
-
ProductTailoringChangeAssetNameActionBuilder
public ProductTailoringChangeAssetNameActionBuilder()
-
-
Method Details
-
variantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof 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
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 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
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof 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
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 ProductTailoringChangeAssetNameAction with checking for non-null required values- Specified by:
buildin 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
-