Interface VariantAddExternalImageAction
- All Superinterfaces:
VariantUpdateAction
Adds an image to existing variant's images. Generates the VariantImageAdded Message.
Example to create an instance using the builder pattern
VariantAddExternalImageAction variantAddExternalImageAction = VariantAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantAddExternalImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantAddExternalImageActionbuilder(VariantAddExternalImageAction template) create builder for VariantAddExternalImageAction instancecopyDeep()deepCopy(VariantAddExternalImageAction template) factory method to create a deep copy of VariantAddExternalImageAction@NotNull @Valid ImagegetImage()Value to add toimages.Iftrue, only the stagedimagesis updated.of()factory methodof(VariantAddExternalImageAction template) factory method to create a shallow copy VariantAddExternalImageActionvoidValue to add toimages.voidIftrue, only the stagedimagesis updated.static tools.jackson.core.type.TypeReference<VariantAddExternalImageAction>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
-
ADD_EXTERNAL_IMAGE
discriminator value for VariantAddExternalImageAction- See Also:
-
-
Method Details
-
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
-
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 VariantAddExternalImageAction
-
of
factory method to create a shallow copy VariantAddExternalImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantAddExternalImageAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
@Nullable static VariantAddExternalImageAction deepCopy(@Nullable VariantAddExternalImageAction template) factory method to create a deep copy of VariantAddExternalImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantAddExternalImageAction- Returns:
- builder
-
builder
create builder for VariantAddExternalImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantAddExternalImageAction
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
-