Class VariantSetAssetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantSetAssetKeyActionBuilder
- All Implemented Interfaces:
Builder<VariantSetAssetKeyAction>
public class VariantSetAssetKeyActionBuilder
extends Object
implements Builder<VariantSetAssetKeyAction>
VariantSetAssetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantSetAssetKeyAction variantSetAssetKeyAction = VariantSetAssetKeyAction.builder()
.assetId("{assetId}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to update.Value to set.build()builds VariantSetAssetKeyAction with checking for non-null required valuesbuilds VariantSetAssetKeyAction without checking for non-null required valuesTheidof the Asset to update.Value to set.Iftrue, only the staged Asset is updated.of()factory method for an instance of VariantSetAssetKeyActionBuilderof(VariantSetAssetKeyAction template) create builder for VariantSetAssetKeyAction instanceIftrue, only the staged Asset is updated.
-
Constructor Details
-
VariantSetAssetKeyActionBuilder
public VariantSetAssetKeyActionBuilder()
-
-
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
Value to set. If empty, any existing value will be removed.
- Parameters:
assetKey- 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
Value to set. If empty, any existing value will be removed.
- Returns:
- assetKey
-
build
builds VariantSetAssetKeyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetAssetKeyAction>- Returns:
- VariantSetAssetKeyAction
-
buildUnchecked
builds VariantSetAssetKeyAction without checking for non-null required values- Returns:
- VariantSetAssetKeyAction
-
of
factory method for an instance of VariantSetAssetKeyActionBuilder- Returns:
- builder
-
of
create builder for VariantSetAssetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-