Class VariantRemoveAssetActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantRemoveAssetActionBuilder
- All Implemented Interfaces:
Builder<VariantRemoveAssetAction>
public class VariantRemoveAssetActionBuilder
extends Object
implements Builder<VariantRemoveAssetAction>
VariantRemoveAssetActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantRemoveAssetAction variantRemoveAssetAction = VariantRemoveAssetAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTheidof the Asset to remove.Thekeyof the Asset to remove.build()builds VariantRemoveAssetAction with checking for non-null required valuesbuilds VariantRemoveAssetAction without checking for non-null required valuesTheidof the Asset to remove.Thekeyof the Asset to remove.Iftrue, only the staged Asset is removed.of()factory method for an instance of VariantRemoveAssetActionBuilderof(VariantRemoveAssetAction template) create builder for VariantRemoveAssetAction instanceIftrue, only the staged Asset is removed.
-
Constructor Details
-
VariantRemoveAssetActionBuilder
public VariantRemoveAssetActionBuilder()
-
-
Method Details
-
staged
If
true, only the staged Asset is removed. Iffalse, both the current and staged Asset is removed.- Parameters:
staged- value to be set- Returns:
- Builder
-
assetId
The
idof the Asset to remove.- Parameters:
assetId- value to be set- Returns:
- Builder
-
assetKey
The
keyof the Asset to remove.- Parameters:
assetKey- value to be set- Returns:
- Builder
-
getStaged
If
true, only the staged Asset is removed. Iffalse, both the current and staged Asset is removed.- Returns:
- staged
-
getAssetId
The
idof the Asset to remove.- Returns:
- assetId
-
getAssetKey
The
keyof the Asset to remove.- Returns:
- assetKey
-
build
builds VariantRemoveAssetAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantRemoveAssetAction>- Returns:
- VariantRemoveAssetAction
-
buildUnchecked
builds VariantRemoveAssetAction without checking for non-null required values- Returns:
- VariantRemoveAssetAction
-
of
factory method for an instance of VariantRemoveAssetActionBuilder- Returns:
- builder
-
of
create builder for VariantRemoveAssetAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-