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