Class VariantChangeAssetNameActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantChangeAssetNameActionBuilder
- All Implemented Interfaces:
Builder<VariantChangeAssetNameAction>
public class VariantChangeAssetNameActionBuilder
extends Object
implements Builder<VariantChangeAssetNameAction>
VariantChangeAssetNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantChangeAssetNameAction variantChangeAssetNameAction = VariantChangeAssetNameAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Thekeyof the Asset to update.build()builds VariantChangeAssetNameAction with checking for non-null required valuesbuilds VariantChangeAssetNameAction without checking for non-null required valuesTheidof the Asset to update.Thekeyof the Asset to update.getName()New value to set.Iftrue, only the staged Asset is updated.name(LocalizedString name) New value to set.New value to set.of()factory method for an instance of VariantChangeAssetNameActionBuilderof(VariantChangeAssetNameAction template) create builder for VariantChangeAssetNameAction instanceIftrue, only the staged Asset is updated.New value to set.
-
Constructor Details
-
VariantChangeAssetNameActionBuilder
public VariantChangeAssetNameActionBuilder()
-
-
Method Details
-
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 VariantChangeAssetNameActionBuilder 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 VariantChangeAssetNameActionBuilder 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
-
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 VariantChangeAssetNameAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantChangeAssetNameAction>- Returns:
- VariantChangeAssetNameAction
-
buildUnchecked
builds VariantChangeAssetNameAction without checking for non-null required values- Returns:
- VariantChangeAssetNameAction
-
of
factory method for an instance of VariantChangeAssetNameActionBuilder- Returns:
- builder
-
of
create builder for VariantChangeAssetNameAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-