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.Whether only the staged Asset is updated.of()factory method for an instance of VariantSetAssetKeyActionBuilderof(VariantSetAssetKeyAction template) create builder for VariantSetAssetKeyAction instanceWhether only the staged Asset is updated.
-
Constructor Details
-
VariantSetAssetKeyActionBuilder
public VariantSetAssetKeyActionBuilder()
-
-
Method Details
-
staged
Whether only the staged Asset is updated. If
false, 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 omitted, any existing value is removed.
- Parameters:
assetKey- value to be set- Returns:
- Builder
-
getStaged
Whether only the staged Asset is updated. If
false, both the current and staged Asset is updated.- Returns:
- staged
-
getAssetId
The
idof the Asset to update.- Returns:
- assetId
-
getAssetKey
Value to set. If omitted, any existing value is 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
-