public final class ProductVariantImportDraftBuilder extends Base implements Builder<ProductVariantImportDraft>
Modifier and Type | Method and Description |
---|---|
ProductVariantImportDraftBuilder |
attributes(AttributeImportDraft... attributes) |
ProductVariantImportDraftBuilder |
attributes(List<AttributeImportDraft> attributes) |
ProductVariantImportDraft |
build()
Creates a new instance of T with the values of this builder.
|
ProductVariantImportDraftBuilder |
images(List<Image> images) |
static ProductVariantImportDraftBuilder |
of(String productId,
Integer variantId) |
static ProductVariantImportDraftBuilder |
of(String productId,
Integer variantId,
String sku) |
static ProductVariantImportDraftBuilder |
ofSku(String sku) |
ProductVariantImportDraftBuilder |
prices(List<PriceDraft> prices)
The prices of the variant.
|
public ProductVariantImportDraftBuilder prices(@Nullable List<PriceDraft> prices)
prices
- the prices to setpublic ProductVariantImportDraftBuilder attributes(@Nullable List<AttributeImportDraft> attributes)
public ProductVariantImportDraftBuilder attributes(AttributeImportDraft... attributes)
public ProductVariantImportDraftBuilder images(@Nullable List<Image> images)
public static ProductVariantImportDraftBuilder ofSku(String sku)
public static ProductVariantImportDraftBuilder of(String productId, Integer variantId, String sku)
public static ProductVariantImportDraftBuilder of(String productId, Integer variantId)
public ProductVariantImportDraft build()
Builder
build
in interface Builder<ProductVariantImportDraft>