Interface VariantSetAssetsAction
- All Superinterfaces:
VariantUpdateAction
Sets the assets of the Variant. Existing assets will be replaced with the new ones.
Example to create an instance using the builder pattern
VariantSetAssetsAction variantSetAssetsAction = VariantSetAssetsAction.builder()
.plusAssets(assetsBuilder -> assetsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantSetAssetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantSetAssetsActionbuilder(VariantSetAssetsAction template) create builder for VariantSetAssetsAction instancecopyDeep()static VariantSetAssetsActiondeepCopy(VariantSetAssetsAction template) factory method to create a deep copy of VariantSetAssetsAction@NotNull @Valid List<AssetDraft>Assets to set for the Variant.Iftrue, only the staged assets are set.static VariantSetAssetsActionof()factory methodstatic VariantSetAssetsActionof(VariantSetAssetsAction template) factory method to create a shallow copy VariantSetAssetsActionvoidsetAssets(AssetDraft... assets) Assets to set for the Variant.voidsetAssets(List<AssetDraft> assets) Assets to set for the Variant.voidIftrue, only the staged assets are set.static tools.jackson.core.type.TypeReference<VariantSetAssetsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
SET_ASSETS
discriminator value for VariantSetAssetsAction- See Also:
-
-
Method Details
-
getAssets
Assets to set for the Variant.
- Returns:
- assets
-
getStaged
Boolean getStaged()If
true, only the staged assets are set. Iffalse, both the current and staged assets are updated.- Returns:
- staged
-
setAssets
Assets to set for the Variant.
- Parameters:
assets- values to be set
-
setAssets
Assets to set for the Variant.
- Parameters:
assets- values to be set
-
setStaged
If
true, only the staged assets are set. Iffalse, both the current and staged assets are updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of VariantSetAssetsAction
-
of
factory method to create a shallow copy VariantSetAssetsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantSetAssetsAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantSetAssetsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantSetAssetsAction- Returns:
- builder
-
builder
create builder for VariantSetAssetsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantSetAssetsAction
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
-