Class ProductChangeAssetOrderActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductChangeAssetOrderActionBuilder
- All Implemented Interfaces:
Builder<ProductChangeAssetOrderAction>
public class ProductChangeAssetOrderActionBuilder
extends Object
implements Builder<ProductChangeAssetOrderAction>
ProductChangeAssetOrderActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductChangeAssetOrderAction productChangeAssetOrderAction = ProductChangeAssetOrderAction.builder()
.plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassetOrder(String... assetOrder) All existing Assetids of the ProductVariant in the desired new order.assetOrder(List<String> assetOrder) All existing Assetids of the ProductVariant in the desired new order.build()builds ProductChangeAssetOrderAction with checking for non-null required valuesbuilds ProductChangeAssetOrderAction without checking for non-null required valuesAll existing Assetids of the ProductVariant in the desired new order.getSku()Theskuof the ProductVariant to update.Iftrue, only the stagedassetsis updated.Theidof the ProductVariant to update.of()factory method for an instance of ProductChangeAssetOrderActionBuilderof(ProductChangeAssetOrderAction template) create builder for ProductChangeAssetOrderAction instanceplusAssetOrder(String... assetOrder) All existing Assetids of the ProductVariant in the desired new order.Theskuof the ProductVariant to update.Iftrue, only the stagedassetsis updated.Theidof the ProductVariant to update.
-
Constructor Details
-
ProductChangeAssetOrderActionBuilder
public ProductChangeAssetOrderActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the ProductVariant to update.- Parameters:
sku- value to be set- Returns:
- Builder
-
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 ProductVariant in the desired new order.- Parameters:
assetOrder- value to be set- Returns:
- Builder
-
assetOrder
All existing Asset
ids of the ProductVariant in the desired new order.- Parameters:
assetOrder- value to be set- Returns:
- Builder
-
plusAssetOrder
All existing Asset
ids of the ProductVariant in the desired new order.- Parameters:
assetOrder- value to be set- Returns:
- Builder
-
getVariantId
The
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the ProductVariant to update.- Returns:
- sku
-
getStaged
If
true, only the stagedassetsis updated. Iffalse, both the current and stagedassetsare updated.- Returns:
- staged
-
getAssetOrder
All existing Asset
ids of the ProductVariant in the desired new order.- Returns:
- assetOrder
-
build
builds ProductChangeAssetOrderAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductChangeAssetOrderAction>- Returns:
- ProductChangeAssetOrderAction
-
buildUnchecked
builds ProductChangeAssetOrderAction without checking for non-null required values- Returns:
- ProductChangeAssetOrderAction
-
of
factory method for an instance of ProductChangeAssetOrderActionBuilder- Returns:
- builder
-
of
create builder for ProductChangeAssetOrderAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-