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
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CategoryAddAssetActionbuilder
(CategoryAddAssetAction template) create builder for CategoryAddAssetAction instancestatic CategoryAddAssetAction
deepCopy
(CategoryAddAssetAction template) factory method to create a deep copy of CategoryAddAssetAction@NotNull @Valid AssetDraft
getAsset()
Value to append.Position in the array at which the Asset should be put.static CategoryAddAssetAction
of()
factory methodstatic CategoryAddAssetAction
of
(CategoryAddAssetAction template) factory method to create a shallow copy CategoryAddAssetActionvoid
setAsset
(AssetDraft asset) Value to append.void
setPosition
(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> 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
-
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
0
and 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
0
and 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
-
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
-