Class ProductVariantTailoringBuilder
- All Implemented Interfaces:
Builder<ProductVariantTailoring>
Example to create an instance using the builder pattern
ProductVariantTailoring productVariantTailoring = ProductVariantTailoring.builder()
.id(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAssets
(Function<AssetBuilder, Asset> builder) Media assets of the tailored Product Variant.Attributes of the tailored Product Variant.addImages
(Function<ImageBuilder, Image> builder) Images of the tailored Product Variant.Media assets of the tailored Product Variant.Media assets of the tailored Product Variant.attributes
(ProductTailoringAttribute... attributes) Attributes of the tailored Product Variant.attributes
(List<ProductTailoringAttribute> attributes) Attributes of the tailored Product Variant.build()
builds ProductVariantTailoring with checking for non-null required valuesbuilds ProductVariantTailoring without checking for non-null required valuesMedia assets of the tailored Product Variant.Attributes of the tailored Product Variant.getId()
Theid
of the tailored ProductVariant.Images of the tailored Product Variant.Theid
of the tailored ProductVariant.Images of the tailored Product Variant.Images of the tailored Product Variant.of()
factory method for an instance of ProductVariantTailoringBuilderof
(ProductVariantTailoring template) create builder for ProductVariantTailoring instanceplusAssets
(Asset... assets) Media assets of the tailored Product Variant.plusAssets
(Function<AssetBuilder, AssetBuilder> builder) Media assets of the tailored Product Variant.plusAttributes
(ProductTailoringAttribute... attributes) Attributes of the tailored Product Variant.Attributes of the tailored Product Variant.plusImages
(Image... images) Images of the tailored Product Variant.plusImages
(Function<ImageBuilder, ImageBuilder> builder) Images of the tailored Product Variant.setAssets
(Function<AssetBuilder, Asset> builder) Media assets of the tailored Product Variant.Attributes of the tailored Product Variant.setImages
(Function<ImageBuilder, Image> builder) Images of the tailored Product Variant.withAssets
(Function<AssetBuilder, AssetBuilder> builder) Media assets of the tailored Product Variant.Attributes of the tailored Product Variant.withImages
(Function<ImageBuilder, ImageBuilder> builder) Images of the tailored Product Variant.
-
Constructor Details
-
ProductVariantTailoringBuilder
public ProductVariantTailoringBuilder()
-
-
Method Details
-
id
The
id
of the tailored ProductVariant.- Parameters:
id
- value to be set- Returns:
- Builder
-
images
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
images
- value to be set- Returns:
- Builder
-
images
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
assets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
assets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
withAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
addAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
setAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
attributes
Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
attributes
- value to be set- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
attributes
public ProductVariantTailoringBuilder attributes(@Nullable List<ProductTailoringAttribute> attributes) Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
attributes
- value to be set- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
plusAttributes
public ProductVariantTailoringBuilder plusAttributes(@Nullable ProductTailoringAttribute... attributes) Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
attributes
- value to be set- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
plusAttributes
public ProductVariantTailoringBuilder plusAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttributeBuilder> builder) Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
withAttributes
public ProductVariantTailoringBuilder withAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttributeBuilder> builder) Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
addAttributes
public ProductVariantTailoringBuilder addAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttribute> builder) Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
setAttributes
public ProductVariantTailoringBuilder setAttributes(Function<ProductTailoringAttributeBuilder, ProductTailoringAttribute> builder) Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
- If the ProductVariant contains an Attribute with the same
-
getId
The
id
of the tailored ProductVariant.- Returns:
- id
-
getImages
Images of the tailored Product Variant. If present, these images will override the images of the corresponding ProductVariant in total.
- Returns:
- images
-
getAssets
Media assets of the tailored Product Variant. If present, these assets will override the assets of the corresponding ProductVariant in total.
- Returns:
- assets
-
getAttributes
Attributes of the tailored Product Variant. If present, these Attributes are selectively merged into the
attributes
of the corresponding ProductVariant:- If the ProductVariant contains an Attribute with the same
name
, itsvalue
is overwritten, - otherwise the Attribute and its value are added to the ProductVariant.
- Returns:
- attributes
- If the ProductVariant contains an Attribute with the same
-
build
builds ProductVariantTailoring with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantTailoring>
- Returns:
- ProductVariantTailoring
-
buildUnchecked
builds ProductVariantTailoring without checking for non-null required values- Returns:
- ProductVariantTailoring
-
of
factory method for an instance of ProductVariantTailoringBuilder- Returns:
- builder
-
of
create builder for ProductVariantTailoring instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-