Interface VariantChangeAssetOrderAction
- All Superinterfaces:
VariantUpdateAction
Changes the order of Assets on a Variant.
Example to create an instance using the builder pattern
VariantChangeAssetOrderAction variantChangeAssetOrderAction = VariantChangeAssetOrderAction.builder()
.plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantChangeAssetOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantChangeAssetOrderActionbuilder(VariantChangeAssetOrderAction template) create builder for VariantChangeAssetOrderAction instancecopyDeep()deepCopy(VariantChangeAssetOrderAction template) factory method to create a deep copy of VariantChangeAssetOrderActionAll existing Assetids of the Variant in the desired new order.Iftrue, only the stagedassetsis updated.of()factory methodof(VariantChangeAssetOrderAction template) factory method to create a shallow copy VariantChangeAssetOrderActionvoidsetAssetOrder(String... assetOrder) All existing Assetids of the Variant in the desired new order.voidsetAssetOrder(List<String> assetOrder) All existing Assetids of the Variant in the desired new order.voidIftrue, only the stagedassetsis updated.static tools.jackson.core.type.TypeReference<VariantChangeAssetOrderAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
CHANGE_ASSET_ORDER
discriminator value for VariantChangeAssetOrderAction- See Also:
-
-
Method Details
-
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 Variant in the desired new order.- Returns:
- assetOrder
-
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 Variant in the desired new order.- Parameters:
assetOrder- values to be set
-
setAssetOrder
All existing Asset
ids of the Variant in the desired new order.- Parameters:
assetOrder- values to be set
-
of
factory method- Returns:
- instance of VariantChangeAssetOrderAction
-
of
factory method to create a shallow copy VariantChangeAssetOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantChangeAssetOrderAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
@Nullable static VariantChangeAssetOrderAction deepCopy(@Nullable VariantChangeAssetOrderAction template) factory method to create a deep copy of VariantChangeAssetOrderAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantChangeAssetOrderAction- Returns:
- builder
-
builder
create builder for VariantChangeAssetOrderAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantChangeAssetOrderAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-