Interface ProductTailoringSetImageLabelAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId or sku is required to reference a ProductVariant that exists.
Example to create an instance using the builder pattern
ProductTailoringSetImageLabelAction productTailoringSetImageLabelAction = ProductTailoringSetImageLabelAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringSetImageLabelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringSetImageLabelActionbuilder(ProductTailoringSetImageLabelAction template) create builder for ProductTailoringSetImageLabelAction instancecopyDeep()deepCopy(ProductTailoringSetImageLabelAction template) factory method to create a deep copy of ProductTailoringSetImageLabelAction@NotNull StringThe URL of the image to set the label.getLabel()Value to set.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the staged image is updated.Theidof the tailored ProductVariant to update.of()factory methodof(ProductTailoringSetImageLabelAction template) factory method to create a shallow copy ProductTailoringSetImageLabelActionvoidsetImageUrl(String imageUrl) The URL of the image to set the label.voidValue to set.voidTheskuof the tailored ProductVariant to update.voidIftrue, only the staged image is updated.voidsetVariantId(Long variantId) Theidof the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringSetImageLabelAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
SET_IMAGE_LABEL
discriminator value for ProductTailoringSetImageLabelAction- See Also:
-
-
Method Details
-
getSku
String getSku()The
skuof the tailored ProductVariant to update.- Returns:
- sku
-
getVariantId
Long getVariantId()The
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getImageUrl
The URL of the image to set the label.
- Returns:
- imageUrl
-
getLabel
String getLabel()Value to set. If empty, any existing value will be removed.
- Returns:
- label
-
getStaged
Boolean getStaged()If
true, only the staged image is updated. Iffalse, both the current and staged image is updated.- Returns:
- staged
-
setSku
The
skuof the tailored ProductVariant to update.- Parameters:
sku- value to be set
-
setVariantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set
-
setImageUrl
The URL of the image to set the label.
- Parameters:
imageUrl- value to be set
-
setLabel
Value to set. If empty, any existing value will be removed.
- Parameters:
label- value to be set
-
setStaged
If
true, only the staged image is updated. Iffalse, both the current and staged image is updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringSetImageLabelAction
-
of
factory method to create a shallow copy ProductTailoringSetImageLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringSetImageLabelAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringSetImageLabelAction deepCopy(@Nullable ProductTailoringSetImageLabelAction template) factory method to create a deep copy of ProductTailoringSetImageLabelAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringSetImageLabelAction- Returns:
- builder
-
builder
static ProductTailoringSetImageLabelActionBuilder builder(ProductTailoringSetImageLabelAction template) create builder for ProductTailoringSetImageLabelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringSetImageLabelAction
default <T> T withProductTailoringSetImageLabelAction(Function<ProductTailoringSetImageLabelAction, 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<ProductTailoringSetImageLabelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-