Class ProductVariantImportDraftBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductVariantImportDraft>
Example to create an instance using the builder pattern
ProductVariantImportDraft productVariantImportDraft = ProductVariantImportDraft.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(Function<AttributeBuilder, Attribute> builder) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.addImages
(Function<ImageBuilder, Image> builder) If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.addPrices
(Function<PriceDraftBuilder, PriceDraft> builder) The Embedded Prices of the variant.attributes
(Attribute... attributes) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.attributes
(List<Attribute> attributes) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.build()
builds ProductVariantImportDraft with checking for non-null required valuesbuilds ProductVariantImportDraft without checking for non-null required valuesIf this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.getId()
The sequential ID of the variant within the product.If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.The Embedded Prices of the variant.getSku()
The SKU of the existing variant.The sequential ID of the variant within the product.If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.of()
factory method for an instance of ProductVariantImportDraftBuilderof
(ProductVariantImportDraft template) create builder for ProductVariantImportDraft instanceplusAttributes
(Attribute... attributes) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.plusImages
(Image... images) If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.plusImages
(Function<ImageBuilder, ImageBuilder> builder) If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.plusPrices
(PriceDraft... prices) The Embedded Prices of the variant.plusPrices
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices of the variant.prices
(PriceDraft... prices) The Embedded Prices of the variant.prices
(List<PriceDraft> prices) The Embedded Prices of the variant.setAttributes
(Function<AttributeBuilder, Attribute> builder) If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.setImages
(Function<ImageBuilder, Image> builder) If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.setPrices
(Function<PriceDraftBuilder, PriceDraft> builder) The Embedded Prices of the variant.The SKU of the existing variant.If this property is defined, then it will override theattributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.withImages
(Function<ImageBuilder, ImageBuilder> builder) If this property is defined, then it will override theimages
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.withPrices
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices of the variant.
-
Constructor Details
-
ProductVariantImportDraftBuilder
public ProductVariantImportDraftBuilder()
-
-
Method Details
-
id
The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.
- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
The SKU of the existing variant.
- Parameters:
sku
- value to be set- Returns:
- Builder
-
prices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
prices
- value to be set- Returns:
- Builder
-
prices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
public ProductVariantImportDraftBuilder plusPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
withPrices
public ProductVariantImportDraftBuilder withPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
addPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
setPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
attributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public ProductVariantImportDraftBuilder plusAttributes(Function<AttributeBuilder, AttributeBuilder> builder) If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public ProductVariantImportDraftBuilder withAttributes(Function<AttributeBuilder, AttributeBuilder> builder) If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
addAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
setAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
images
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
images
- value to be set- Returns:
- Builder
-
images
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
getId
The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.
- Returns:
- id
-
getSku
The SKU of the existing variant.
- Returns:
- sku
-
getPrices
The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the
prices
property from the original product variant, otherwiseprices
property from the original product variant would be copied in the resulting order.- Returns:
- prices
-
getAttributes
If this property is defined, then it will override the
attributes
property from the original product variant, otherwiseattributes
property from the original product variant would be copied in the resulting order.- Returns:
- attributes
-
getImages
If this property is defined, then it will override the
images
property from the original product variant, otherwiseimages
property from the original product variant would be copied in the resulting order.- Returns:
- images
-
build
builds ProductVariantImportDraft with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<ProductVariantImportDraft>
- Returns:
- ProductVariantImportDraft
-
buildUnchecked
builds ProductVariantImportDraft without checking for non-null required values- Returns:
- ProductVariantImportDraft
-
of
factory method for an instance of ProductVariantImportDraftBuilder- Returns:
- builder
-
of
create builder for ProductVariantImportDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-