Interface CategoryAddAssetAction
- All Superinterfaces:
CategoryUpdateAction,ResourceUpdateAction<CategoryUpdateAction>
CategoryAddAssetAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategoryAddAssetAction categoryAddAssetAction = CategoryAddAssetAction.builder()
.asset(assetBuilder -> assetBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategoryAddAssetActionbuilder(CategoryAddAssetAction template) create builder for CategoryAddAssetAction instancecopyDeep()static CategoryAddAssetActiondeepCopy(CategoryAddAssetAction template) factory method to create a deep copy of CategoryAddAssetAction@NotNull @Valid AssetDraftgetAsset()Value to append.Position in the array at which the Asset should be put.static CategoryAddAssetActionof()factory methodstatic CategoryAddAssetActionof(CategoryAddAssetAction template) factory method to create a shallow copy CategoryAddAssetActionvoidsetAsset(AssetDraft asset) Value to append.voidsetPosition(Integer position) Position in the array at which the Asset should be put.static com.fasterxml.jackson.core.type.TypeReference<CategoryAddAssetAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.category.CategoryUpdateAction
getAction, withCategoryUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_ASSET
discriminator value for CategoryAddAssetAction- See Also:
-
-
Method Details
-
getAsset
Value to append.
- Returns:
- asset
-
getPosition
Integer getPosition()Position in the array at which the Asset should be put. When specified, the value must be between
0and the total number of Assets minus1.- Returns:
- position
-
setAsset
Value to append.
- Parameters:
asset- value to be set
-
setPosition
Position in the array at which the Asset should be put. When specified, the value must be between
0and the total number of Assets minus1.- Parameters:
position- value to be set
-
of
factory method- Returns:
- instance of CategoryAddAssetAction
-
of
factory method to create a shallow copy CategoryAddAssetAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategoryAddAssetAction copyDeep()- Specified by:
copyDeepin interfaceCategoryUpdateAction
-
deepCopy
factory method to create a deep copy of CategoryAddAssetAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategoryAddAssetAction- Returns:
- builder
-
builder
create builder for CategoryAddAssetAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategoryAddAssetAction
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
-