Interface CategorySetAssetKeyAction
- All Superinterfaces:
CategoryUpdateAction,ResourceUpdateAction<CategoryUpdateAction>
Set or remove the key of an Asset.
Example to create an instance using the builder pattern
CategorySetAssetKeyAction categorySetAssetKeyAction = CategorySetAssetKeyAction.builder()
.assetId("{assetId}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CategorySetAssetKeyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategorySetAssetKeyActionbuilder(CategorySetAssetKeyAction template) create builder for CategorySetAssetKeyAction instancecopyDeep()static CategorySetAssetKeyActiondeepCopy(CategorySetAssetKeyAction template) factory method to create a deep copy of CategorySetAssetKeyAction@NotNull StringValue to set.Value to set.static CategorySetAssetKeyActionof()factory methodstatic CategorySetAssetKeyActionof(CategorySetAssetKeyAction template) factory method to create a shallow copy CategorySetAssetKeyActionvoidsetAssetId(String assetId) Value to set.voidsetAssetKey(String assetKey) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetKeyAction>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
-
SET_ASSET_KEY
discriminator value for CategorySetAssetKeyAction- See Also:
-
-
Method Details
-
getAssetId
Value to set.
- Returns:
- assetId
-
getAssetKey
String getAssetKey()Value to set. If empty, any existing value will be removed.
- Returns:
- assetKey
-
setAssetId
Value to set.
- Parameters:
assetId- value to be set
-
setAssetKey
Value to set. If empty, any existing value will be removed.
- Parameters:
assetKey- value to be set
-
of
factory method- Returns:
- instance of CategorySetAssetKeyAction
-
of
factory method to create a shallow copy CategorySetAssetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategorySetAssetKeyAction copyDeep()- Specified by:
copyDeepin interfaceCategoryUpdateAction
-
deepCopy
factory method to create a deep copy of CategorySetAssetKeyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetAssetKeyAction- Returns:
- builder
-
builder
create builder for CategorySetAssetKeyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetAssetKeyAction
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
-