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
-
Method Summary
Modifier and TypeMethodDescriptionassetOrder
(String... assetOrder) All existing Assetid
s of the ProductVariantTailoring in the desired new order.assetOrder
(List<String> assetOrder) All existing Assetid
s 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 Assetid
s of the ProductVariantTailoring in the desired new order.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedassets
is updated.Theid
of the tailored ProductVariant to update.of()
factory method for an instance of ProductTailoringChangeAssetOrderActionBuilderof
(ProductTailoringChangeAssetOrderAction template) create builder for ProductTailoringChangeAssetOrderAction instanceplusAssetOrder
(String... assetOrder) All existing Assetid
s of the ProductVariantTailoring in the desired new order.Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedassets
is updated.Theid
of the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringChangeAssetOrderActionBuilder
public ProductTailoringChangeAssetOrderActionBuilder()
-
-
Method Details
-
variantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the tailored ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stagedassets
is updated. Iffalse
, both the current and stagedassets
are updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
assetOrder
All existing Asset
id
s of the ProductVariantTailoring in the desired new order.- Parameters:
assetOrder
- value to be set- Returns:
- Builder
-
assetOrder
All existing Asset
id
s of the ProductVariantTailoring in the desired new order.- Parameters:
assetOrder
- value to be set- Returns:
- Builder
-
plusAssetOrder
All existing Asset
id
s of the ProductVariantTailoring in the desired new order.- Parameters:
assetOrder
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getStaged
If
true
, only the stagedassets
is updated. Iffalse
, both the current and stagedassets
are updated.- Returns:
- staged
-
getAssetOrder
All existing Asset
id
s of the ProductVariantTailoring in the desired new order.- Returns:
- assetOrder
-
build
builds ProductTailoringChangeAssetOrderAction with checking for non-null required values- Specified by:
build
in 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
-