Class VariantChangeAssetOrderActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantChangeAssetOrderActionBuilder
- All Implemented Interfaces:
Builder<VariantChangeAssetOrderAction>
public class VariantChangeAssetOrderActionBuilder
extends Object
implements Builder<VariantChangeAssetOrderAction>
VariantChangeAssetOrderActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantChangeAssetOrderAction variantChangeAssetOrderAction = VariantChangeAssetOrderAction.builder()
.plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassetOrder(String... assetOrder) All existing Assetids of the Variant in the desired new order.assetOrder(List<String> assetOrder) All existing Assetids of the Variant in the desired new order.build()builds VariantChangeAssetOrderAction with checking for non-null required valuesbuilds VariantChangeAssetOrderAction without checking for non-null required valuesAll existing Assetids of the Variant in the desired new order.Iftrue, only the stagedassetsis updated.of()factory method for an instance of VariantChangeAssetOrderActionBuilderof(VariantChangeAssetOrderAction template) create builder for VariantChangeAssetOrderAction instanceplusAssetOrder(String... assetOrder) All existing Assetids of the Variant in the desired new order.Iftrue, only the stagedassetsis updated.
-
Constructor Details
-
VariantChangeAssetOrderActionBuilder
public VariantChangeAssetOrderActionBuilder()
-
-
Method Details
-
staged
If
true, only the stagedassetsis updated. Iffalse, both the current and stagedassetsare updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
assetOrder
All existing Asset
ids of the Variant in the desired new order.- Parameters:
assetOrder- value to be set- Returns:
- Builder
-
assetOrder
All existing Asset
ids of the Variant in the desired new order.- Parameters:
assetOrder- value to be set- Returns:
- Builder
-
plusAssetOrder
All existing Asset
ids of the Variant in the desired new order.- Parameters:
assetOrder- value to be set- Returns:
- Builder
-
getStaged
If
true, only the stagedassetsis updated. Iffalse, both the current and stagedassetsare updated.- Returns:
- staged
-
getAssetOrder
All existing Asset
ids of the Variant in the desired new order.- Returns:
- assetOrder
-
build
builds VariantChangeAssetOrderAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantChangeAssetOrderAction>- Returns:
- VariantChangeAssetOrderAction
-
buildUnchecked
builds VariantChangeAssetOrderAction without checking for non-null required values- Returns:
- VariantChangeAssetOrderAction
-
of
factory method for an instance of VariantChangeAssetOrderActionBuilder- Returns:
- builder
-
of
create builder for VariantChangeAssetOrderAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-