Class VariantAddExternalImageActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantAddExternalImageActionBuilder
- All Implemented Interfaces:
Builder<VariantAddExternalImageAction>
public class VariantAddExternalImageActionBuilder
extends Object
implements Builder<VariantAddExternalImageAction>
VariantAddExternalImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantAddExternalImageAction variantAddExternalImageAction = VariantAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantAddExternalImageAction with checking for non-null required valuesbuilds VariantAddExternalImageAction without checking for non-null required valuesgetImage()Value to add toimages.Iftrue, only the stagedimagesis updated.Value to add toimages.image(Function<ImageBuilder, ImageBuilder> builder) Value to add toimages.of()factory method for an instance of VariantAddExternalImageActionBuilderof(VariantAddExternalImageAction template) create builder for VariantAddExternalImageAction instanceIftrue, only the stagedimagesis updated.withImage(Function<ImageBuilder, Image> builder) Value to add toimages.
-
Constructor Details
-
VariantAddExternalImageActionBuilder
public VariantAddExternalImageActionBuilder()
-
-
Method Details
-
image
Value to add to
images.- Parameters:
builder- function to build the image value- Returns:
- Builder
-
withImage
Value to add to
images.- Parameters:
builder- function to build the image value- Returns:
- Builder
-
image
Value to add to
images.- Parameters:
image- value to be set- Returns:
- Builder
-
staged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
getImage
Value to add to
images.- Returns:
- image
-
getStaged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Returns:
- staged
-
build
builds VariantAddExternalImageAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantAddExternalImageAction>- Returns:
- VariantAddExternalImageAction
-
buildUnchecked
builds VariantAddExternalImageAction without checking for non-null required values- Returns:
- VariantAddExternalImageAction
-
of
factory method for an instance of VariantAddExternalImageActionBuilder- Returns:
- builder
-
of
create builder for VariantAddExternalImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-