public final class ProductVariantDraftBuilder extends Base
| Modifier and Type | Method and Description |
|---|---|
T |
assets(List<AssetDraft> assets)
Sets the
assets property of this builder. |
ProductVariantDraftBuilder |
attributes(AttributeDraft... attributes) |
T |
attributes(List<AttributeDraft> attributes)
Sets the
attributes property of this builder. |
ProductVariantDraftDsl |
build()
Creates a new instance of
ProductVariantDraftDsl with the values of this builder. |
List<AssetDraft> |
getAssets() |
List<AttributeDraft> |
getAttributes() |
List<Image> |
getImages() |
String |
getKey() |
List<PriceDraft> |
getPrices() |
String |
getSku() |
ProductVariantDraftBuilder |
images(Image image) |
T |
images(List<Image> images)
Sets the
images property of this builder. |
T |
key(String key)
Sets the
key property of this builder. |
static ProductVariantDraftBuilder |
of()
Creates a new object initialized with the given values.
|
static ProductVariantDraftBuilder |
of(ProductVariant template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductVariantDraftBuilder |
of(ProductVariantDraft template)
Creates a new object initialized with the fields of the template parameter.
|
T |
plusAssets(AssetDraft assets)
Adds
assets parameter to the assets list property of this builder. |
T |
plusAssets(List<AssetDraft> assets)
Concatenate
assets parameter to the assets list property of this builder. |
ProductVariantDraftBuilder |
plusAttribute(AttributeDraft attribute) |
<T> ProductVariantDraftBuilder |
plusAttribute(NamedAttributeAccess<T> namedAccess,
T value) |
<T> ProductVariantDraftBuilder |
plusAttribute(String name,
T value) |
T |
plusAttributes(AttributeDraft attributes)
Adds
attributes parameter to the attributes list property of this builder. |
T |
plusAttributes(List<AttributeDraft> attributes)
Concatenate
attributes parameter to the attributes list property of this builder. |
T |
plusImages(Image images)
Adds
images parameter to the images list property of this builder. |
T |
plusImages(List<Image> images)
Concatenate
images parameter to the images list property of this builder. |
T |
plusPrices(List<PriceDraft> prices)
Concatenate
prices parameter to the prices list property of this builder. |
T |
plusPrices(PriceDraft prices)
Adds
prices parameter to the prices list property of this builder. |
ProductVariantDraftBuilder |
price(PriceDraft price) |
T |
prices(List<PriceDraft> prices)
Sets the
prices property of this builder. |
ProductVariantDraftBuilder |
prices(PriceDraft... prices) |
T |
sku(String sku)
Sets the
sku property of this builder. |
public ProductVariantDraftBuilder images(Image image)
public ProductVariantDraftBuilder prices(PriceDraft... prices)
public ProductVariantDraftBuilder price(PriceDraft price)
public ProductVariantDraftBuilder attributes(AttributeDraft... attributes)
public <T> ProductVariantDraftBuilder plusAttribute(NamedAttributeAccess<T> namedAccess, T value)
public <T> ProductVariantDraftBuilder plusAttribute(String name, T value)
public ProductVariantDraftBuilder plusAttribute(AttributeDraft attribute)
public T assets(@Nullable List<AssetDraft> assets)
assets property of this builder.assets - the value for ProductVariantDraft.getAssets()public T attributes(@Nullable List<AttributeDraft> attributes)
attributes property of this builder.attributes - the value for ProductVariantDraft.getAttributes()public T images(@Nullable List<Image> images)
images property of this builder.images - the value for ProductVariantDraft.getImages()public T key(@Nullable String key)
key property of this builder.key - the value for ProductVariantDraft.getKey()public T prices(@Nullable List<PriceDraft> prices)
prices property of this builder.prices - the value for ProductVariantDraft.getPrices()public T sku(@Nullable String sku)
sku property of this builder.sku - the value for ProductVariantDraft.getSku()@Nullable public List<AssetDraft> getAssets()
@Nullable public List<AttributeDraft> getAttributes()
@Nullable public List<PriceDraft> getPrices()
public T plusAssets(List<AssetDraft> assets)
assets parameter to the assets list property of this builder.assets - the value for ProductVariantDraft.getAssets()public T plusAttributes(List<AttributeDraft> attributes)
attributes parameter to the attributes list property of this builder.attributes - the value for ProductVariantDraft.getAttributes()public T plusImages(List<Image> images)
images parameter to the images list property of this builder.images - the value for ProductVariantDraft.getImages()public T plusPrices(List<PriceDraft> prices)
prices parameter to the prices list property of this builder.prices - the value for ProductVariantDraft.getPrices()public T plusAssets(AssetDraft assets)
assets parameter to the assets list property of this builder.assets - the value of the element to add to ProductVariantDraft.getAssets()public T plusAttributes(AttributeDraft attributes)
attributes parameter to the attributes list property of this builder.attributes - the value of the element to add to ProductVariantDraft.getAttributes()public T plusImages(Image images)
images parameter to the images list property of this builder.images - the value of the element to add to ProductVariantDraft.getImages()public T plusPrices(PriceDraft prices)
prices parameter to the prices list property of this builder.prices - the value of the element to add to ProductVariantDraft.getPrices()public ProductVariantDraftDsl build()
ProductVariantDraftDsl with the values of this builder.build in interface Builder<ProductVariantDraftDsl>public static ProductVariantDraftBuilder of()
public static ProductVariantDraftBuilder of(ProductVariantDraft template)
template - the templatepublic static ProductVariantDraftBuilder of(ProductVariant template)
template - the template