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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringChangeAssetOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringChangeAssetOrderActioncreate builder for ProductTailoringChangeAssetOrderAction instancecopyDeep()factory method to create a deep copy of ProductTailoringChangeAssetOrderActionAll 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 methodof(ProductTailoringChangeAssetOrderAction template) factory method to create a shallow copy ProductTailoringChangeAssetOrderActionvoidsetAssetOrder(String... assetOrder) All existing Assetids of the ProductVariantTailoring in the desired new order.voidsetAssetOrder(List<String> assetOrder) All existing Assetids of the ProductVariantTailoring in the desired new order.voidTheskuof the tailored ProductVariant to update.voidIftrue, only the stagedassetsis updated.voidsetVariantId(Long variantId) Theidof the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringChangeAssetOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTailoringChangeAssetOrderAction(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
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
skuof the tailored ProductVariant to update.- Returns:
- sku
-
getStaged
Boolean 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
-
setVariantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set
-
setSku
The
skuof the tailored ProductVariant to update.- Parameters:
sku- value to be set
-
setStaged
If
true, only the stagedassetsis updated. Iffalse, both the current and stagedassetsare updated.- Parameters:
staged- value to be set
-
setAssetOrder
All existing Asset
ids of the ProductVariantTailoring in the desired new order.- Parameters:
assetOrder- values to be set
-
setAssetOrder
All existing Asset
ids 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
-
copyDeep
ProductTailoringChangeAssetOrderAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
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
-