Class ProductVariantDraftImportBuilder
java.lang.Object
com.commercetools.importapi.models.productdrafts.ProductVariantDraftImportBuilder
- All Implemented Interfaces:
Builder<ProductVariantDraftImport>
public class ProductVariantDraftImportBuilder
extends Object
implements Builder<ProductVariantDraftImport>
ProductVariantDraftImportBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantDraftImport productVariantDraftImport = ProductVariantDraftImport.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAssets
(Function<AssetBuilder, Asset> builder) add the value to the assets using the builder functionaddImages
(Function<ImageBuilder, Image> builder) add the value to the images using the builder functionadd the value to the prices using the builder functionset values to the assetsset value to the assetsattributes
(Attribute... attributes) set values to the attributesattributes
(List<Attribute> attributes) set value to the attributesbuild()
builds ProductVariantDraftImport with checking for non-null required valuesbuilds ProductVariantDraftImport without checking for non-null required valuesvalue of assets}value of attributes}value of images}getKey()
value of key}value of prices}getSku()
value of sku}set values to the imagesset value to the imagesset the value to the keyof()
factory method for an instance of ProductVariantDraftImportBuilderof
(ProductVariantDraftImport template) create builder for ProductVariantDraftImport instanceplusAssets
(Asset... assets) add values to the assetsplusAssets
(Function<AssetBuilder, AssetBuilder> builder) add the value to the assets using the builder functionplusAttributes
(Attribute... attributes) add values to the attributesplusAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) add a value to the attributes using the builder functionplusImages
(Image... images) add values to the imagesplusImages
(Function<ImageBuilder, ImageBuilder> builder) add the value to the images using the builder functionplusPrices
(PriceDraftImport... prices) add values to the pricesadd the value to the prices using the builder functionprices
(PriceDraftImport... prices) set values to the pricesprices
(List<PriceDraftImport> prices) set value to the pricessetAssets
(Function<AssetBuilder, Asset> builder) set the value to the assets using the builder functionsetImages
(Function<ImageBuilder, Image> builder) set the value to the images using the builder functionset the value to the prices using the builder functionset the value to the skuwithAssets
(Function<AssetBuilder, AssetBuilder> builder) set the value to the assets using the builder functionwithAttributes
(Function<AttributeBuilder, Builder<? extends Attribute>> builder) set the value to the attributes using the builder functionwithImages
(Function<ImageBuilder, ImageBuilder> builder) set the value to the images using the builder functionset the value to the prices using the builder function
-
Constructor Details
-
ProductVariantDraftImportBuilder
public ProductVariantDraftImportBuilder()
-
-
Method Details
-
sku
set the value to the sku- Parameters:
sku
- value to be set- Returns:
- Builder
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
prices
set values to the prices- Parameters:
prices
- value to be set- Returns:
- Builder
-
prices
set value to the prices- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
add values to the prices- Parameters:
prices
- value to be set- Returns:
- Builder
-
plusPrices
public ProductVariantDraftImportBuilder plusPrices(Function<PriceDraftImportBuilder, PriceDraftImportBuilder> builder) add the value to the prices using the builder function- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
withPrices
public ProductVariantDraftImportBuilder withPrices(Function<PriceDraftImportBuilder, PriceDraftImportBuilder> builder) set the value to the prices using the builder function- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
addPrices
public ProductVariantDraftImportBuilder addPrices(Function<PriceDraftImportBuilder, PriceDraftImport> builder) add the value to the prices using the builder function- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
setPrices
public ProductVariantDraftImportBuilder setPrices(Function<PriceDraftImportBuilder, PriceDraftImport> builder) set the value to the prices using the builder function- Parameters:
builder
- function to build the prices value- Returns:
- Builder
-
attributes
set values to the attributes- Parameters:
attributes
- value to be set- Returns:
- Builder
-
attributes
set value to the attributes- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
add values to the attributes- Parameters:
attributes
- value to be set- Returns:
- Builder
-
plusAttributes
public ProductVariantDraftImportBuilder plusAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) add a value to the attributes using the builder function- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
withAttributes
public ProductVariantDraftImportBuilder withAttributes(Function<AttributeBuilder, Builder<? extends Attribute>> builder) set the value to the attributes using the builder function- Parameters:
builder
- function to build the attributes value- Returns:
- Builder
-
images
set values to the images- Parameters:
images
- value to be set- Returns:
- Builder
-
images
set value to the images- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
add values to the images- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
add the value to the images using the builder function- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
set the value to the images using the builder function- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
add the value to the images using the builder function- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
set the value to the images using the builder function- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
assets
set values to the assets- Parameters:
assets
- value to be set- Returns:
- Builder
-
assets
set value to the assets- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
add values to the assets- Parameters:
assets
- value to be set- Returns:
- Builder
-
plusAssets
add the value to the assets using the builder function- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
withAssets
set the value to the assets using the builder function- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
addAssets
add the value to the assets using the builder function- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
setAssets
set the value to the assets using the builder function- Parameters:
builder
- function to build the assets value- Returns:
- Builder
-
getSku
value of sku}- Returns:
- sku
-
getKey
value of key}- Returns:
- key
-
getPrices
value of prices}- Returns:
- prices
-
getAttributes
value of attributes}- Returns:
- attributes
-
getImages
value of images}- Returns:
- images
-
getAssets
value of assets}- Returns:
- assets
-
build
builds ProductVariantDraftImport with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantDraftImport>
- Returns:
- ProductVariantDraftImport
-
buildUnchecked
builds ProductVariantDraftImport without checking for non-null required values- Returns:
- ProductVariantDraftImport
-
of
factory method for an instance of ProductVariantDraftImportBuilder- Returns:
- builder
-
of
create builder for ProductVariantDraftImport instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-