Interface CategoryChangeAssetOrderAction
- All Superinterfaces:
CategoryUpdateAction
,ResourceUpdateAction<CategoryUpdateAction>
This update action changes the order of the assets
array. The new order is defined by listing the id
s of the Assets.
Example to create an instance using the builder pattern
CategoryChangeAssetOrderAction categoryChangeAssetOrderAction = CategoryChangeAssetOrderAction.builder()
.plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CategoryChangeAssetOrderAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategoryChangeAssetOrderActionbuilder
(CategoryChangeAssetOrderAction template) create builder for CategoryChangeAssetOrderAction instancedeepCopy
(CategoryChangeAssetOrderAction template) factory method to create a deep copy of CategoryChangeAssetOrderActionNew value to set.of()
factory methodof
(CategoryChangeAssetOrderAction template) factory method to create a shallow copy CategoryChangeAssetOrderActionvoid
setAssetOrder
(String... assetOrder) New value to set.void
setAssetOrder
(List<String> assetOrder) New value to set.static com.fasterxml.jackson.core.type.TypeReference<CategoryChangeAssetOrderAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_ASSET_ORDER
discriminator value for CategoryChangeAssetOrderAction- See Also:
-
-
Method Details
-
getAssetOrder
New value to set. Must contain all Asset
id
s.- Returns:
- assetOrder
-
setAssetOrder
New value to set. Must contain all Asset
id
s.- Parameters:
assetOrder
- values to be set
-
setAssetOrder
New value to set. Must contain all Asset
id
s.- Parameters:
assetOrder
- values to be set
-
of
factory method- Returns:
- instance of CategoryChangeAssetOrderAction
-
of
factory method to create a shallow copy CategoryChangeAssetOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CategoryChangeAssetOrderAction deepCopy(@Nullable CategoryChangeAssetOrderAction template) factory method to create a deep copy of CategoryChangeAssetOrderAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryChangeAssetOrderAction- Returns:
- builder
-
builder
create builder for CategoryChangeAssetOrderAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryChangeAssetOrderAction
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<CategoryChangeAssetOrderAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-