Interface CategorySetAssetCustomTypeAction
- All Superinterfaces:
CategoryUpdateAction,ResourceUpdateAction<CategoryUpdateAction>
CategorySetAssetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CategorySetAssetCustomTypeAction categorySetAssetCustomTypeAction = CategorySetAssetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CategorySetAssetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CategorySetAssetCustomTypeActionbuilder(CategorySetAssetCustomTypeAction template) create builder for CategorySetAssetCustomTypeAction instancecopyDeep()deepCopy(CategorySetAssetCustomTypeAction template) factory method to create a deep copy of CategorySetAssetCustomTypeActionNew value to set.New value to set.@Valid FieldContainerSets the Custom Fields fields for the Asset.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the Asset with Custom Fields.of()factory methodof(CategorySetAssetCustomTypeAction template) factory method to create a shallow copy CategorySetAssetCustomTypeActionvoidsetAssetId(String assetId) New value to set.voidsetAssetKey(String assetKey) New value to set.voidsetFields(FieldContainer fields) Sets the Custom Fields fields for the Asset.voidDefines the Type that extends the Asset with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<CategorySetAssetCustomTypeAction>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_CUSTOM_TYPE
discriminator value for CategorySetAssetCustomTypeAction- See Also:
-
-
Method Details
-
getAssetId
String getAssetId()New value to set. Either
assetIdorassetKeyis required.- Returns:
- assetId
-
getAssetKey
String getAssetKey()New value to set. Either
assetIdorassetKeyis required.- Returns:
- assetKey
-
getType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Asset.
- Returns:
- fields
-
setAssetId
New value to set. Either
assetIdorassetKeyis required.- Parameters:
assetId- value to be set
-
setAssetKey
New value to set. Either
assetIdorassetKeyis required.- Parameters:
assetKey- value to be set
-
setType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the Asset.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of CategorySetAssetCustomTypeAction
-
of
factory method to create a shallow copy CategorySetAssetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CategorySetAssetCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceCategoryUpdateAction
-
deepCopy
@Nullable static CategorySetAssetCustomTypeAction deepCopy(@Nullable CategorySetAssetCustomTypeAction template) factory method to create a deep copy of CategorySetAssetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CategorySetAssetCustomTypeAction- Returns:
- builder
-
builder
create builder for CategorySetAssetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCategorySetAssetCustomTypeAction
default <T> T withCategorySetAssetCustomTypeAction(Function<CategorySetAssetCustomTypeAction, T> helper) 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<CategorySetAssetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-