Class ProductVariantImportDraftBuilder
- All Implemented Interfaces:
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) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.addImages
(Function<ImageBuilder, Image> builder) The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.addPrices
(Function<PriceDraftBuilder, PriceDraft> builder) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.attributes
(Attribute... attributes) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.attributes
(List<Attribute> attributes) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.build()
builds ProductVariantImportDraft with checking for non-null required valuesbuilds ProductVariantImportDraft without checking for non-null required valuesThe Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.getId()
Theid
of the ProductVariant.The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.getSku()
Thesku
of the ProductVariant.Theid
of the ProductVariant.The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.of()
factory method for an instance of ProductVariantImportDraftBuilderof
(ProductVariantImportDraft template) create builder for ProductVariantImportDraft instanceplusAttributes
(Attribute... attributes) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.plusImages
(Image... images) The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.plusImages
(Function<ImageBuilder, ImageBuilder> builder) The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.plusPrices
(PriceDraft... prices) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.plusPrices
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.prices
(PriceDraft... prices) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.prices
(List<PriceDraft> prices) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.setAttributes
(Function<AttributeBuilder, Attribute> builder) The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.setImages
(Function<ImageBuilder, Image> builder) The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.setPrices
(Function<PriceDraftBuilder, PriceDraft> builder) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.Thesku
of the ProductVariant.The Attributes of the Product Variant if you want to override theattributes
property in the referenced ProductVariant.withImages
(Function<ImageBuilder, ImageBuilder> builder) The Images of the Product Variant if you want to override theimages
property in the referenced ProductVariant.withPrices
(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Prices of the Product Variant if you want to override theprices
property in the referenced ProductVariant.
-
Constructor Details
-
ProductVariantImportDraftBuilder
public ProductVariantImportDraftBuilder()
-
-
Method Details
-
id
The
id
of the ProductVariant. Required if you do not set a value forsku
. If set, you must specify aproductId
in the LineItemImportDraft also.- Parameters:
id
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant. Required if you do not set a value forid
.- Parameters:
sku
- value to be set- Returns:
- Builder
-
prices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
prices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
public ProductVariantImportDraftBuilder plusPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
withPrices
public ProductVariantImportDraftBuilder withPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
addPrices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
setPrices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
attributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public ProductVariantImportDraftBuilder plusAttributes(Function<AttributeBuilder, AttributeBuilder> builder) The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public ProductVariantImportDraftBuilder withAttributes(Function<AttributeBuilder, AttributeBuilder> builder) The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
addAttributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
setAttributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
images
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
images
- value to be set- Returns:
- Builder
-
images
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
getId
The
id
of the ProductVariant. Required if you do not set a value forsku
. If set, you must specify aproductId
in the LineItemImportDraft also.- Returns:
- id
-
getSku
The
sku
of the ProductVariant. Required if you do not set a value forid
.- Returns:
- sku
-
getPrices
The Prices of the Product Variant if you want to override the
prices
property in the referenced ProductVariant. If not set, theprices
from the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode
,country
,customerGroup
,channel
,validFrom
andvalidUntil
).- Returns:
- prices
-
getAttributes
The Attributes of the Product Variant if you want to override the
attributes
property in the referenced ProductVariant. If not set, theattributes
from the referenced ProductVariant are copied to the resulting Order.- Returns:
- attributes
-
getImages
The Images of the Product Variant if you want to override the
images
property in the referenced ProductVariant. If not set, theimages
from the referenced ProductVariant are copied to the resulting Order.- Returns:
- images
-
build
builds ProductVariantImportDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<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
-