Interface ProductTailoringChangeAssetOrderAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId
or sku
is required to reference a ProductVariant that exists.
Example to create an instance using the builder pattern
ProductTailoringChangeAssetOrderAction productTailoringChangeAssetOrderAction = ProductTailoringChangeAssetOrderAction.builder()
.plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringChangeAssetOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringChangeAssetOrderActioncreate builder for ProductTailoringChangeAssetOrderAction instancefactory method to create a deep copy of ProductTailoringChangeAssetOrderActionAll 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 methodof
(ProductTailoringChangeAssetOrderAction template) factory method to create a shallow copy ProductTailoringChangeAssetOrderActionvoid
setAssetOrder
(String... assetOrder) All existing Assetid
s of the ProductVariantTailoring in the desired new order.void
setAssetOrder
(List<String> assetOrder) All existing Assetid
s of the ProductVariantTailoring in the desired new order.void
Thesku
of the tailored ProductVariant to update.void
Iftrue
, only the stagedassets
is updated.void
setVariantId
(Long variantId) Theid
of the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringChangeAssetOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTailoringChangeAssetOrderAction
(Function<ProductTailoringChangeAssetOrderAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
CHANGE_ASSET_ORDER
discriminator value for ProductTailoringChangeAssetOrderAction- See Also:
-
-
Method Details
-
getVariantId
Long getVariantId()The
id
of the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getStaged
Boolean 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
-
setVariantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set
-
setSku
The
sku
of the tailored ProductVariant to update.- Parameters:
sku
- value to be set
-
setStaged
If
true
, only the stagedassets
is updated. Iffalse
, both the current and stagedassets
are updated.- Parameters:
staged
- value to be set
-
setAssetOrder
All existing Asset
id
s of the ProductVariantTailoring in the desired new order.- Parameters:
assetOrder
- values to be set
-
setAssetOrder
All existing Asset
id
s of the ProductVariantTailoring in the desired new order.- Parameters:
assetOrder
- values to be set
-
of
factory method- Returns:
- instance of ProductTailoringChangeAssetOrderAction
-
of
factory method to create a shallow copy ProductTailoringChangeAssetOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringChangeAssetOrderAction deepCopy(@Nullable ProductTailoringChangeAssetOrderAction template) factory method to create a deep copy of ProductTailoringChangeAssetOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringChangeAssetOrderAction- Returns:
- builder
-
builder
static ProductTailoringChangeAssetOrderActionBuilder builder(ProductTailoringChangeAssetOrderAction template) create builder for ProductTailoringChangeAssetOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringChangeAssetOrderAction
default <T> T withProductTailoringChangeAssetOrderAction(Function<ProductTailoringChangeAssetOrderAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringChangeAssetOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-