Class ProductVariantImportDraftBuilder
- All Implemented Interfaces:
Builder<ProductVariantImportDraft>
Example to create an instance using the builder pattern
ProductVariantImportDraft productVariantImportDraft = ProductVariantImportDraft.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributes(Function<AttributeBuilder, Attribute> builder) The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.addImages(Function<ImageBuilder, Image> builder) The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.addPrices(Function<PriceDraftBuilder, PriceDraft> builder) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.attributes(Attribute... attributes) The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.attributes(List<Attribute> attributes) The Attributes of the Product Variant if you want to override theattributesproperty 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 theattributesproperty in the referenced ProductVariant.getId()Theidof the ProductVariant.The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.getSku()Theskuof the ProductVariant.Theidof the ProductVariant.The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.The Images of the Product Variant if you want to override theimagesproperty 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 theattributesproperty in the referenced ProductVariant.The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.plusImages(Image... images) The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.plusImages(Function<ImageBuilder, ImageBuilder> builder) The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.plusPrices(PriceDraft... prices) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.plusPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.prices(PriceDraft... prices) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.prices(List<PriceDraft> prices) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.setAttributes(Function<AttributeBuilder, Attribute> builder) The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.setImages(Function<ImageBuilder, Image> builder) The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.setPrices(Function<PriceDraftBuilder, PriceDraft> builder) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.Theskuof the ProductVariant.The Attributes of the Product Variant if you want to override theattributesproperty in the referenced ProductVariant.withImages(Function<ImageBuilder, ImageBuilder> builder) The Images of the Product Variant if you want to override theimagesproperty in the referenced ProductVariant.withPrices(Function<PriceDraftBuilder, PriceDraftBuilder> builder) The Prices of the Product Variant if you want to override thepricesproperty in the referenced ProductVariant.
-
Constructor Details
-
ProductVariantImportDraftBuilder
public ProductVariantImportDraftBuilder()
-
-
Method Details
-
id
The
idof the ProductVariant. Required if you do not set a value forsku. If set, you must specify aproductIdin the LineItemImportDraft also.- Parameters:
id- value to be set- Returns:
- Builder
-
sku
The
skuof 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
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
prices- value to be set- Returns:
- Builder
-
prices
The Prices of the Product Variant if you want to override the
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
prices- value to be set- Returns:
- Builder
-
plusPrices
The Prices of the Product Variant if you want to override the
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- 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
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- 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
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
builder- function to build the prices value- Returns:
- Builder
-
addPrices
The Prices of the Product Variant if you want to override the
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
builder- function to build the prices value- Returns:
- Builder
-
setPrices
The Prices of the Product Variant if you want to override the
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Parameters:
builder- function to build the prices value- Returns:
- Builder
-
attributes
The Attributes of the Product Variant if you want to override the
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom 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
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom the referenced ProductVariant are copied to the resulting Order.- Parameters:
builder- function to build the images value- Returns:
- Builder
-
getId
The
idof the ProductVariant. Required if you do not set a value forsku. If set, you must specify aproductIdin the LineItemImportDraft also.- Returns:
- id
-
getSku
The
skuof 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
pricesproperty in the referenced ProductVariant. If not set, thepricesfrom the referenced ProductVariant are used in the resulting Order. If set, each Price must have its unique price scope (samevalue.currencyCode,country,customerGroup,channel,validFromandvalidUntil).- Returns:
- prices
-
getAttributes
The Attributes of the Product Variant if you want to override the
attributesproperty in the referenced ProductVariant. If not set, theattributesfrom the referenced ProductVariant are copied to the resulting Order.- Returns:
- attributes
-
getImages
The Images of the Product Variant if you want to override the
imagesproperty in the referenced ProductVariant. If not set, theimagesfrom the referenced ProductVariant are copied to the resulting Order.- Returns:
- images
-
build
builds ProductVariantImportDraft with checking for non-null required values- Specified by:
buildin 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
-