Class LineItemProductVariantImportDraftBuilder
- All Implemented Interfaces:
Builder<LineItemProductVariantImportDraft>
Example to create an instance using the builder pattern
LineItemProductVariantImportDraft lineItemProductVariantImportDraft = LineItemProductVariantImportDraft.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddImages
(Function<ImageBuilder, Image> builder) Maps toProductVariantImportDraft.images
.addPrices
(Function<LineItemPriceBuilder, LineItemPrice> builder) Maps toProductVariantImportDraft.prices
attributes
(Attribute... attributes) Maps toProductVariantImportDraft.attributes
attributes
(List<Attribute> attributes) Maps toProductVariantImportDraft.attributes
build()
builds LineItemProductVariantImportDraft with checking for non-null required valuesbuilds LineItemProductVariantImportDraft without checking for non-null required valuesMaps toProductVariantImportDraft.attributes
Maps toProductVariantImportDraft.images
.Maps toProductVariantImportDraft.prices
Maps toProductVariant.product
.getSku()
Maps toProductVariantImportDraft.sku
.Maps toProductVariantImportDraft.images
.Maps toProductVariantImportDraft.images
.of()
factory method for an instance of LineItemProductVariantImportDraftBuilderof
(LineItemProductVariantImportDraft template) create builder for LineItemProductVariantImportDraft instanceplusAttributes
(Attribute... attributes) Maps toProductVariantImportDraft.attributes
plusAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Maps toProductVariantImportDraft.attributes
plusImages
(Image... images) Maps toProductVariantImportDraft.images
.plusImages
(Function<ImageBuilder, ImageBuilder> builder) Maps toProductVariantImportDraft.images
.plusPrices
(LineItemPrice... prices) Maps toProductVariantImportDraft.prices
Maps toProductVariantImportDraft.prices
prices
(LineItemPrice... prices) Maps toProductVariantImportDraft.prices
prices
(List<LineItemPrice> prices) Maps toProductVariantImportDraft.prices
productVariant
(ProductVariantKeyReference productVariant) Maps toProductVariant.product
.productVariant
(Function<ProductVariantKeyReferenceBuilder, ProductVariantKeyReferenceBuilder> builder) Maps toProductVariant.product
.setImages
(Function<ImageBuilder, Image> builder) Maps toProductVariantImportDraft.images
.setPrices
(Function<LineItemPriceBuilder, LineItemPrice> builder) Maps toProductVariantImportDraft.prices
Maps toProductVariantImportDraft.sku
.withAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Maps toProductVariantImportDraft.attributes
withImages
(Function<ImageBuilder, ImageBuilder> builder) Maps toProductVariantImportDraft.images
.Maps toProductVariantImportDraft.prices
Maps toProductVariant.product
.
-
Constructor Details
-
LineItemProductVariantImportDraftBuilder
public LineItemProductVariantImportDraftBuilder()
-
-
Method Details
-
productVariant
public LineItemProductVariantImportDraftBuilder productVariant(Function<ProductVariantKeyReferenceBuilder, ProductVariantKeyReferenceBuilder> builder) Maps to
ProductVariant.product
.- Parameters:
builder
- function to build the productVariant value- Returns:
- Builder
-
withProductVariant
public LineItemProductVariantImportDraftBuilder withProductVariant(Function<ProductVariantKeyReferenceBuilder, ProductVariantKeyReference> builder) Maps to
ProductVariant.product
.- Parameters:
builder
- function to build the productVariant value- Returns:
- Builder
-
productVariant
public LineItemProductVariantImportDraftBuilder productVariant(@Nullable ProductVariantKeyReference productVariant) Maps to
ProductVariant.product
.- Parameters:
productVariant
- value to be set- Returns:
- Builder
-
sku
Maps to
ProductVariantImportDraft.sku
.- Parameters:
sku
- value to be set- Returns:
- Builder
-
prices
Maps to
ProductVariantImportDraft.prices
- Parameters:
prices
- value to be set- Returns:
- Builder
-
prices
Maps to
ProductVariantImportDraft.prices
- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
Maps to
ProductVariantImportDraft.prices
- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
public LineItemProductVariantImportDraftBuilder plusPrices(Function<LineItemPriceBuilder, LineItemPriceBuilder> builder) Maps to
ProductVariantImportDraft.prices
- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
withPrices
public LineItemProductVariantImportDraftBuilder withPrices(Function<LineItemPriceBuilder, LineItemPriceBuilder> builder) Maps to
ProductVariantImportDraft.prices
- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
addPrices
public LineItemProductVariantImportDraftBuilder addPrices(Function<LineItemPriceBuilder, LineItemPrice> builder) Maps to
ProductVariantImportDraft.prices
- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
setPrices
public LineItemProductVariantImportDraftBuilder setPrices(Function<LineItemPriceBuilder, LineItemPrice> builder) Maps to
ProductVariantImportDraft.prices
- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
attributes
Maps to
ProductVariantImportDraft.attributes
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
Maps to
ProductVariantImportDraft.attributes
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
Maps to
ProductVariantImportDraft.attributes
- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public LineItemProductVariantImportDraftBuilder plusAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Maps to
ProductVariantImportDraft.attributes
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public LineItemProductVariantImportDraftBuilder withAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) Maps to
ProductVariantImportDraft.attributes
- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
images
Maps to
ProductVariantImportDraft.images
.- Parameters:
images
- value to be set- Returns:
- Builder
-
images
Maps to
ProductVariantImportDraft.images
.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Maps to
ProductVariantImportDraft.images
.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
public LineItemProductVariantImportDraftBuilder plusImages(Function<ImageBuilder, ImageBuilder> builder) Maps to
ProductVariantImportDraft.images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
public LineItemProductVariantImportDraftBuilder withImages(Function<ImageBuilder, ImageBuilder> builder) Maps to
ProductVariantImportDraft.images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
Maps to
ProductVariantImportDraft.images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
Maps to
ProductVariantImportDraft.images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
getProductVariant
Maps to
ProductVariant.product
.- Returns:
- productVariant
-
getSku
Maps to
ProductVariantImportDraft.sku
.- Returns:
- sku
-
getPrices
Maps to
ProductVariantImportDraft.prices
- Returns:
- prices
-
getAttributes
Maps to
ProductVariantImportDraft.attributes
- Returns:
- attributes
-
getImages
Maps to
ProductVariantImportDraft.images
.- Returns:
- images
-
build
builds LineItemProductVariantImportDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<LineItemProductVariantImportDraft>
- Returns:
- LineItemProductVariantImportDraft
-
buildUnchecked
builds LineItemProductVariantImportDraft without checking for non-null required values- Returns:
- LineItemProductVariantImportDraft
-
of
factory method for an instance of LineItemProductVariantImportDraftBuilder- Returns:
- builder
-
of
public static LineItemProductVariantImportDraftBuilder of(LineItemProductVariantImportDraft template) create builder for LineItemProductVariantImportDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-