Class VariantRemoveImageActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantRemoveImageActionBuilder
- All Implemented Interfaces:
Builder<VariantRemoveImageAction>
public class VariantRemoveImageActionBuilder
extends Object
implements Builder<VariantRemoveImageAction>
VariantRemoveImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantRemoveImageAction variantRemoveImageAction = VariantRemoveImageAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantRemoveImageAction with checking for non-null required valuesbuilds VariantRemoveImageAction without checking for non-null required valuesThe URL of the image to remove.Iftrue, only the staged image is removed.The URL of the image to remove.of()factory method for an instance of VariantRemoveImageActionBuilderof(VariantRemoveImageAction template) create builder for VariantRemoveImageAction instanceIftrue, only the staged image is removed.
-
Constructor Details
-
VariantRemoveImageActionBuilder
public VariantRemoveImageActionBuilder()
-
-
Method Details
-
imageUrl
The URL of the image to remove.
- Parameters:
imageUrl- value to be set- Returns:
- Builder
-
staged
If
true, only the staged image is removed. Iffalse, both the current and staged image is removed.- Parameters:
staged- value to be set- Returns:
- Builder
-
getImageUrl
The URL of the image to remove.
- Returns:
- imageUrl
-
getStaged
If
true, only the staged image is removed. Iffalse, both the current and staged image is removed.- Returns:
- staged
-
build
builds VariantRemoveImageAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantRemoveImageAction>- Returns:
- VariantRemoveImageAction
-
buildUnchecked
builds VariantRemoveImageAction without checking for non-null required values- Returns:
- VariantRemoveImageAction
-
of
factory method for an instance of VariantRemoveImageActionBuilder- Returns:
- builder
-
of
create builder for VariantRemoveImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-