Interface ProductTailoringAddExternalImageAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImageAdded Message.
Example to create an instance using the builder pattern
ProductTailoringAddExternalImageAction productTailoringAddExternalImageAction = ProductTailoringAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringAddExternalImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringAddExternalImageActioncreate builder for ProductTailoringAddExternalImageAction instancecopyDeep()factory method to create a deep copy of ProductTailoringAddExternalImageAction@NotNull @Valid ImagegetImage()Value to add toimages.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the tailored ProductVariant to update.of()factory methodof(ProductTailoringAddExternalImageAction template) factory method to create a shallow copy ProductTailoringAddExternalImageActionvoidValue to add toimages.voidTheskuof the tailored ProductVariant to update.voidIftrue, only the stagedimagesis updated.voidsetVariantId(Long variantId) Theidof the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringAddExternalImageAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTailoringAddExternalImageAction(Function<ProductTailoringAddExternalImageAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
ADD_EXTERNAL_IMAGE
discriminator value for ProductTailoringAddExternalImageAction- See Also:
-
-
Method Details
-
getVariantId
Long getVariantId()The
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
skuof the tailored ProductVariant to update.- Returns:
- sku
-
getImage
Value to add to
images.- Returns:
- image
-
getStaged
Boolean getStaged()If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Returns:
- staged
-
setVariantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set
-
setSku
The
skuof the tailored ProductVariant to update.- Parameters:
sku- value to be set
-
setImage
Value to add to
images.- Parameters:
image- value to be set
-
setStaged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringAddExternalImageAction
-
of
factory method to create a shallow copy ProductTailoringAddExternalImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringAddExternalImageAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringAddExternalImageAction deepCopy(@Nullable ProductTailoringAddExternalImageAction template) factory method to create a deep copy of ProductTailoringAddExternalImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringAddExternalImageAction- Returns:
- builder
-
builder
static ProductTailoringAddExternalImageActionBuilder builder(ProductTailoringAddExternalImageAction template) create builder for ProductTailoringAddExternalImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringAddExternalImageAction
default <T> T withProductTailoringAddExternalImageAction(Function<ProductTailoringAddExternalImageAction, 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<ProductTailoringAddExternalImageAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-